Documentation ¶
Index ¶
- Variables
- func ParseMessage(session disgord.Session, event *disgord.MessageCreate, guild *disgord.Guild, ...)
- type Command
- func (command *Command) Register() Command
- func (command *Command) SetArgumentsRequirements(requireArguments bool, minimumArgumentsSize int, maximumArgumentsSize int)
- func (command *Command) SetHelpMessage(message string)
- func (command *Command) SetPermissions(requirePermissions bool, guildOwnerOnly bool, ...)
- type GuildCaller
Constants ¶
This section is empty.
Variables ¶
View Source
var Log = &logrus.Logger{ Out: os.Stderr, Formatter: new(logrus.TextFormatter), Hooks: make(logrus.LevelHooks), Level: logrus.InfoLevel, }
Functions ¶
func ParseMessage ¶
Types ¶
type Command ¶
type Command struct { Name string HelpMessage string GuildOwnerOnly bool RequirePermissions bool PermissionsLevel disgord.PermissionBit RequireArguments bool MinimumArgumentsSize int MaximumArgumentsSize int NSFW bool Exec func(disgord.Session, *disgord.MessageCreate, *disgord.Guild, []string) error }
func NewCommand ¶
func (*Command) SetArgumentsRequirements ¶
func (command *Command) SetArgumentsRequirements(requireArguments bool, minimumArgumentsSize int, maximumArgumentsSize int)
If MinimumArgumentsSize is set to -1 that means no limit If MinimumArgumentsSize is set to -1 that means no limit
func (*Command) SetHelpMessage ¶
func (*Command) SetPermissions ¶
func (command *Command) SetPermissions(requirePermissions bool, guildOwnerOnly bool, permissionsLevel disgord.PermissionBit)
type GuildCaller ¶
type GuildCaller struct {
// contains filtered or unexported fields
}
func (*GuildCaller) Guild ¶
func (caller *GuildCaller) Guild(id disgord.Snowflake) disgord.GuildQueryBuilder
Click to show internal directories.
Click to hide internal directories.