Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MustBeAdmin = &command.Permission{ Name: "be server admin", Checker: func(ctx *command.Context) bool { if ctx.GuildID == "" { return false } member, err := ctx.Bot.GetMember(ctx.GuildID, "", ctx.AuthorID) if err != nil { return false } return member.Permissions().Has(model.PermissionAdministrator) }, }
View Source
var MustBeOwner = &command.Permission{ Name: "be the bot owner", Checker: func(ctx *command.Context) bool { return ctx.AuthorID == config.Config.OwnerID }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.