Add command to add guild to DB
This commit is contained in:
parent
867a3bad29
commit
61a1b7e8db
@ -123,11 +123,20 @@ func AddCommandHandlers(h *disgoman.CommandManager) {
|
|||||||
})
|
})
|
||||||
_ = h.AddCommand(&disgoman.Command{
|
_ = h.AddCommand(&disgoman.Command{
|
||||||
Name: "kick",
|
Name: "kick",
|
||||||
Aliases: []string{""},
|
Aliases: nil,
|
||||||
Description: "Kicks the given user with the given reason",
|
Description: "Kicks the given user with the given reason",
|
||||||
OwnerOnly: false,
|
OwnerOnly: false,
|
||||||
Hidden: false,
|
Hidden: false,
|
||||||
RequiredPermissions: disgoman.PermissionKickMembers,
|
RequiredPermissions: disgoman.PermissionKickMembers,
|
||||||
Invoke: kickUser,
|
Invoke: kickUser,
|
||||||
})
|
})
|
||||||
|
_ = h.AddCommand(&disgoman.Command{
|
||||||
|
Name: "addGuild",
|
||||||
|
Aliases: nil,
|
||||||
|
Description: "Adds the current guild to the database",
|
||||||
|
OwnerOnly: true,
|
||||||
|
Hidden: false,
|
||||||
|
RequiredPermissions: disgoman.PermissionManageServer,
|
||||||
|
Invoke: addGuild,
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user