Documentation
¶
Index ¶
- Constants
- Variables
- type App
- type AppOption
- type Attachment
- type AvatarOptions
- type ButtonOpt
- type ButtonOptions
- type Channel
- type ChannelAction
- type ChannelOptions
- type ChannelSuite
- type Choice
- type Command
- type CommandType
- type Component
- type ComponentEmoji
- type ComponentRegistration
- type ComponentType
- type Config
- type Context
- type CooldownConfig
- type CooldownError
- type CooldownOption
- type CooldownScope
- type CooldownStore
- type CrashLogger
- type Embed
- type EmbedBuilder
- type File
- type FileLogger
- type GuardConfig
- type GuardOption
- type Guild
- type Handler
- type Intent
- type Interaction
- type InteractionCallbackType
- type InteractionData
- type InteractionResponse
- type InteractionResponseData
- type InteractionType
- type LogFormat
- type Logger
- type LoggerConfig
- type Member
- type MemberOptions
- type MemberSuite
- type Message
- type MessageAction
- type MessageOptions
- type MessageSuite
- type Middleware
- type ModType
- type Modal
- type ModalRegistration
- type Mode
- type Module
- type Option
- type OptionType
- type OptionVal
- type Options
- type PanicHandler
- type Permission
- type PermissionConfig
- type PermissionError
- type PermissionOption
- type PermissionTarget
- type Pipeline
- type Policy
- type ReadyEvent
- type Response
- type Role
- type RoleAction
- type RoleOptions
- type RoleSuite
- type Scope
- type SelectMenuOption
- type SelectOpt
- type Snowflake
- type Subcommand
- type SubcommandGroup
- type SyncResult
- type TextInputOpt
- type TimeItem
- type User
Constants ¶
View Source
const ( ModeGateway = app.ModeGateway ModeWebhook = app.ModeWebhook CommandTypeChatInput = command.CommandTypeChatInput CommandTypeUser = command.CommandTypeUser CommandTypeMessage = command.CommandTypeMessage OptionTypeSubcommand = command.OptionTypeSubcommand OptionTypeSubcommandGroup = command.OptionTypeSubcommandGroup OptionTypeString = command.OptionTypeString OptionTypeInteger = command.OptionTypeInteger OptionTypeBoolean = command.OptionTypeBoolean OptionTypeUser = command.OptionTypeUser OptionTypeChannel = command.OptionTypeChannel OptionTypeRole = command.OptionTypeRole OptionTypeMentionable = command.OptionTypeMentionable OptionTypeNumber = command.OptionTypeNumber OptionTypeAttachment = command.OptionTypeAttachment LogFormatText = util.LogFormatText LogFormatJSON = util.LogFormatJSON LogFormatCSV = util.LogFormatCSV MaxTimeoutDuration = context.MaxTimeoutDuration MaxBanDeleteSec = context.MaxBanDeleteSec MaxSlowmodeSeconds = context.MaxSlowmodeSeconds Day = util.Day Month = util.Month Year = util.Year ModKick = context.ModKick ModBan = context.ModBan ModUnban = context.ModUnban ModTimeout = context.ModTimeout ModRemoveTimeout = context.ModRemoveTimeout ChannelCreate = context.ChannelCreate ChannelEdit = context.ChannelEdit ChannelDelete = context.ChannelDelete ChannelPurge = context.ChannelPurge ChannelLock = context.ChannelLock RoleCreate = context.RoleCreate RoleEdit = context.RoleEdit RoleDelete = context.RoleDelete MsgPin = context.MsgPin MsgUnpin = context.MsgUnpin MsgDelete = context.MsgDelete MsgCrosspost = context.MsgCrosspost MsgReact = context.MsgReact MsgUnreact = context.MsgUnreact MsgClearReactions = context.MsgClearReactions MsgEdit = context.MsgEdit MsgPurge = context.MsgPurge DefaultDMReceipt = defaults.DMReceipt DefaultPanicMessage = defaults.PanicMessage DefaultCooldownMessage = defaults.CooldownMessage DefaultUserMissingPerms = defaults.UserMissingPerms DefaultBotMissingPerms = defaults.BotMissingPerms ColorBlurple = component.ColorBlurple ColorGreen = component.ColorGreen ColorYellow = component.ColorYellow ColorFuchsia = component.ColorFuchsia ColorRed = component.ColorRed ColorWhite = component.ColorWhite ColorBlack = component.ColorBlack ColorDark = component.ColorDark ColorAqua = component.ColorAqua ColorTeal = component.ColorTeal ColorOlive = component.ColorOlive ColorLime = component.ColorLime ColorOrange = component.ColorOrange ColorMaroon = component.ColorMaroon ColorPurple = component.ColorPurple ButtonStylePrimary = component.ButtonStylePrimary ButtonStyleSecondary = component.ButtonStyleSecondary ButtonStyleSuccess = component.ButtonStyleSuccess ButtonStyleDanger = component.ButtonStyleDanger ButtonStyleLink = component.ButtonStyleLink TextInputStyleShort = component.TextInputStyleShort TextInputStyleParagraph = component.TextInputStyleParagraph MaxActionRows = component.MaxActionRows MaxButtonsPerRow = component.MaxButtonsPerRow MaxSelectsPerRow = component.MaxSelectsPerRow MaxTextInputsPerRow = component.MaxTextInputsPerRow CooldownScopeUser = command.CooldownScopeUser CooldownScopeChannel = command.CooldownScopeChannel CooldownScopeGuild = command.CooldownScopeGuild CooldownScopeGlobal = command.CooldownScopeGlobal ScopeUser = middleware.ScopeUser ScopeChannel = middleware.ScopeChannel ScopeGuild = middleware.ScopeGuild ScopeGlobal = middleware.ScopeGlobal TargetUser = middleware.TargetUser TargetBot = middleware.TargetBot PermissionAdministrator = types.PermissionAdministrator PermissionManageGuild = types.PermissionManageGuild PermissionManageRoles = types.PermissionManageRoles PermissionManageChannels = types.PermissionManageChannels PermissionKickMembers = types.PermissionKickMembers PermissionBanMembers = types.PermissionBanMembers PermissionModerateMembers = types.PermissionModerateMembers PermissionManageMessages = types.PermissionManageMessages PermissionSendMessages = types.PermissionSendMessages PermissionViewChannel = types.PermissionViewChannel IntentGuilds = types.IntentGuilds IntentGuildMembers = types.IntentGuildMembers IntentGuildMessages = types.IntentGuildMessages IntentMessageContent = types.IntentMessageContent IntentsDefault = types.IntentsDefault IntentsNonPrivileged = types.IntentsNonPrivileged InteractionTypePing = types.InteractionTypePing InteractionTypeApplicationCommand = types.InteractionTypeApplicationCommand InteractionTypeMessageComponent = types.InteractionTypeMessageComponent InteractionTypeApplicationCommandAutocomplete = types.InteractionTypeApplicationCommandAutocomplete InteractionTypeModalSubmit = types.InteractionTypeModalSubmit CallbackTypePong = types.CallbackTypePong CallbackTypeChannelMessageWithSource = types.CallbackTypeChannelMessageWithSource CallbackTypeDeferredChannelMessageWithSource = types.CallbackTypeDeferredChannelMessageWithSource CallbackTypeDeferredUpdateMessage = types.CallbackTypeDeferredUpdateMessage CallbackTypeUpdateMessage = types.CallbackTypeUpdateMessage CallbackTypeApplicationCommandAutocompleteResult = types.CallbackTypeApplicationCommandAutocompleteResult CallbackTypeModal = types.CallbackTypeModal ComponentTypeActionRow = types.ComponentTypeActionRow ComponentTypeButton = types.ComponentTypeButton ComponentTypeStringSelect = types.ComponentTypeStringSelect ComponentTypeTextInput = types.ComponentTypeTextInput ComponentTypeUserSelect = types.ComponentTypeUserSelect ComponentTypeRoleSelect = types.ComponentTypeRoleSelect ComponentTypeMentionableSelect = types.ComponentTypeMentionableSelect ComponentTypeChannelSelect = types.ComponentTypeChannelSelect )
Variables ¶
View Source
var ( ParseSnowflake = types.ParseSnowflake StringOption = command.StringOption IntOption = command.IntOption NumberOption = command.NumberOption BoolOption = command.BoolOption UserOption = command.UserOption ChannelOption = command.ChannelOption RoleOption = command.RoleOption MentionableOption = command.MentionableOption AttachmentOption = command.AttachmentOption ValidateCommand = command.Validate ErrInvalidName = command.ErrInvalidName ErrNameTooLong = command.ErrNameTooLong ErrEmptyName = command.ErrEmptyName ErrEmptyDescription = command.ErrEmptyDescription ErrDescriptionTooLong = command.ErrDescriptionTooLong ErrSubcommandTopOptions = command.ErrSubcommandTopOptions ErrTooManyOptions = command.ErrTooManyOptions ErrTooManyChoices = command.ErrTooManyChoices ErrAutocompleteWithChoices = command.ErrAutocompleteWithChoices ErrEmptySubcommandGroup = command.ErrEmptySubcommandGroup ErrEmptyChoiceName = command.ErrEmptyChoiceName ErrChoiceNameTooLong = command.ErrChoiceNameTooLong ErrInvalidChoiceValue = command.ErrInvalidChoiceValue ErrRequiredOptionAfterOptional = command.ErrRequiredOptionAfterOptional ErrDuplicateOptionName = command.ErrDuplicateOptionName ErrDuplicateChoiceName = command.ErrDuplicateChoiceName ErrContextMenuHasDescription = command.ErrContextMenuHasDescription ErrContextMenuHasOptions = command.ErrContextMenuHasOptions ErrNotInGuild = context.ErrNotInGuild ErrNoRESTClient = context.ErrNoRESTClient ErrCannotModerateSelf = context.ErrCannotModerateSelf ErrCannotModerateOwner = context.ErrCannotModerateOwner ErrTargetOutranksUser = context.ErrTargetOutranksUser ErrTargetOutranksBot = context.ErrTargetOutranksBot ErrInvalidTarget = context.ErrInvalidTarget ErrInvalidModType = context.ErrInvalidModType ErrAlreadyResponded = context.ErrAlreadyResponded ErrModalAfterDefer = context.ErrModalAfterDefer ErrNoInteraction = context.ErrNoInteraction ErrEmptyMessage = context.ErrEmptyMessage ErrEmptyMemberUpdate = context.ErrEmptyMemberUpdate ErrTimeoutTooLong = context.ErrTimeoutTooLong ErrTimeoutTooShort = context.ErrTimeoutTooShort ErrBanDeleteTooLong = context.ErrBanDeleteTooLong ErrInvalidChannelID = context.ErrInvalidChannelID ErrChannelNameRequired = context.ErrChannelNameRequired ErrSlowmodeTooLong = context.ErrSlowmodeTooLong ErrSlowmodeNegative = context.ErrSlowmodeNegative ErrInvalidPurgeCount = context.ErrInvalidPurgeCount ErrMessagesTooOld = context.ErrMessagesTooOld ErrInvalidChannelAction = context.ErrInvalidChannelAction ErrInvalidRoleID = context.ErrInvalidRoleID ErrRoleNotFound = context.ErrRoleNotFound ErrRoleOutranksBot = context.ErrRoleOutranksBot ErrRoleOutranksUser = context.ErrRoleOutranksUser ErrCannotModifyEveryoneRole = context.ErrCannotModifyEveryoneRole ErrInvalidRoleAction = context.ErrInvalidRoleAction ErrInvalidMessageID = context.ErrInvalidMessageID ErrInvalidMessageAction = context.ErrInvalidMessageAction ErrEmojiRequired = context.ErrEmojiRequired Time = util.New FormatTime = util.Format ParseDuration = util.ParseDuration FormatDuration = util.FormatDuration FormatDurationHuman = util.FormatDurationHuman ErrInvalidDuration = util.ErrInvalidDuration ErrEmptyDuration = util.ErrEmptyDuration ErrUnknownUnit = util.ErrUnknownUnit ErrInvalidTime = util.ErrInvalidTime ErrUnsupportedType = util.ErrUnsupportedType NewEmbed = component.NewEmbed RGB = component.RGB Hex = component.Hex ResolveColor = component.ResolveColor Button = component.Button WithButtonEmoji = component.WithButtonEmoji WithButtonDisabled = component.WithButtonDisabled StringSelect = component.StringSelect UserSelect = component.UserSelect RoleSelect = component.RoleSelect MentionableSelect = component.MentionableSelect ChannelSelect = component.ChannelSelect WithRange = component.WithRange WithSelectDisabled = component.WithSelectDisabled WithChannelTypes = component.WithChannelTypes SelectOption = component.SelectOption WithOptionEmoji = component.WithOptionEmoji WithOptionDefault = component.WithOptionDefault TextInputShort = component.TextInputShort TextInputParagraph = component.TextInputParagraph WithPlaceholder = component.WithPlaceholder WithValue = component.WithValue WithMinLength = component.WithMinLength WithMaxLength = component.WithMaxLength WithRequired = component.WithRequired ActionRow = component.ActionRow Row = component.Row PackRows = component.PackRows ValidateRows = component.ValidateRows ErrInvalidColor = component.ErrInvalidColor ErrColorOutOfRange = component.ErrColorOutOfRange ErrEmbedTitleTooLong = component.ErrEmbedTitleTooLong ErrEmbedDescriptionTooLong = component.ErrEmbedDescriptionTooLong ErrEmbedTooManyFields = component.ErrEmbedTooManyFields ErrEmbedFieldNameTooLong = component.ErrEmbedFieldNameTooLong ErrEmbedFieldValueTooLong = component.ErrEmbedFieldValueTooLong ErrEmbedFieldMissingName = component.ErrEmbedFieldMissingName ErrEmbedFieldMissingValue = component.ErrEmbedFieldMissingValue ErrEmbedAuthorTooLong = component.ErrEmbedAuthorTooLong ErrEmbedTotalLengthTooLong = component.ErrEmbedTotalLengthTooLong ErrTooManyActionRows = component.ErrTooManyActionRows ErrRowTooManyButtons = component.ErrRowTooManyButtons ErrRowMixedComponents = component.ErrRowMixedComponents ErrRowMultipleSelects = component.ErrRowMultipleSelects ErrRowMultipleInputs = component.ErrRowMultipleInputs ErrEmptyActionRow = component.ErrEmptyActionRow ErrNonActionRowAtRoot = component.ErrNonActionRowAtRoot ErrSelectMissingOptions = component.ErrSelectMissingOptions ErrSelectTooManyOptions = component.ErrSelectTooManyOptions Guard = middleware.Guard WithPanicHandler = middleware.WithPanicHandler WithGuardLogger = middleware.WithGuardLogger WithMessage = middleware.WithMessage WithEphemeral = middleware.WithEphemeral Cooldown = middleware.Cooldown UserCooldown = middleware.UserCooldown ChannelCooldown = middleware.ChannelCooldown GuildCooldown = middleware.GuildCooldown GlobalCooldown = middleware.GlobalCooldown NewCooldownStore = middleware.NewCooldownStore WithCooldownStore = middleware.WithCooldownStore WithCooldownAutoRespond = middleware.WithCooldownAutoRespond WithCooldownMessage = middleware.WithCooldownMessage WithKeyPrefix = middleware.WithKeyPrefix RequireUser = middleware.RequireUser RequireBot = middleware.RequireBot RequirePermissions = middleware.RequirePermissions PermissionNames = middleware.PermissionNames WithPermissionAutoRespond = middleware.WithPermissionAutoRespond WithPermissionMessage = middleware.WithPermissionMessage NewPipeline = middleware.NewPipeline Chain = middleware.Chain ErrPanicRecovered = middleware.ErrPanicRecovered ErrOnCooldown = middleware.ErrOnCooldown ErrInvalidCooldown = middleware.ErrInvalidCooldown ErrMissingGuildInfo = middleware.ErrMissingGuildInfo ErrMissingPermissions = middleware.ErrMissingPermissions ErrNoMemberPermissions = middleware.ErrNoMemberPermissions ErrNoBotPermissions = middleware.ErrNoBotPermissions NewApp = app.New DefaultConfig = app.DefaultConfig WithMode = app.WithMode WithIntents = app.WithIntents WithDevMode = app.WithDevMode WithAutoDefer = app.WithAutoDefer WithAutoSync = app.WithAutoSync WithTimeout = app.WithTimeout WithWebhook = app.WithWebhook Register = app.Register RegisteredCommands = app.RegisteredCommands RegisterComponent = app.RegisterComponent RegisteredComponents = app.RegisteredComponents RegisterModal = app.RegisterModal RegisteredModals = app.RegisteredModals ErrTokenRequired = app.ErrTokenRequired ErrAppIDRequired = app.ErrAppIDRequired ErrCommandNotFound = app.ErrCommandNotFound ErrComponentNotFound = app.ErrComponentNotFound ErrModalNotFound = app.ErrModalNotFound ErrAlreadyRunning = app.ErrAlreadyRunning ErrInvalidSignature = app.ErrInvalidSignature ErrPublicKeyRequired = app.ErrPublicKeyRequired ErrDuplicateCommand = app.ErrDuplicateCommand ErrDevGuildRequired = app.ErrDevGuildRequired ErrNilModule = app.ErrNilModule NewLogger = util.NewLogger ParseLogFormat = util.ParseLogFormat )
Functions ¶
This section is empty.
Types ¶
type Attachment ¶
type Attachment = types.Attachment
type AvatarOptions ¶
type AvatarOptions = types.AvatarOptions
type ButtonOptions ¶
type ButtonOptions = component.ButtonOptions
type ChannelAction ¶
type ChannelAction = context.ChannelAction
type ChannelOptions ¶
type ChannelOptions = context.ChannelOptions
type ChannelSuite ¶
type ChannelSuite = context.ChannelSuite
type CommandType ¶
type CommandType = command.CommandType
type ComponentEmoji ¶
type ComponentEmoji = types.ComponentEmoji
type ComponentRegistration ¶
type ComponentRegistration = app.ComponentRegistration
type ComponentType ¶
type ComponentType = types.ComponentType
type CooldownConfig ¶
type CooldownConfig = middleware.CooldownConfig
type CooldownError ¶
type CooldownError = middleware.CooldownError
type CooldownOption ¶
type CooldownOption = middleware.CooldownOption
type CooldownScope ¶
type CooldownScope = command.CooldownScope
type CooldownStore ¶
type CooldownStore = middleware.CooldownStore
type CrashLogger ¶
type CrashLogger = middleware.CrashLogger
type EmbedBuilder ¶
type EmbedBuilder = component.EmbedBuilder
type FileLogger ¶
type FileLogger = util.FileLogger
type GuardConfig ¶
type GuardConfig = middleware.GuardConfig
type GuardOption ¶
type GuardOption = middleware.GuardOption
type Handler ¶
type Handler = middleware.Handler
type Interaction ¶
type Interaction = types.Interaction
type InteractionCallbackType ¶
type InteractionCallbackType = types.InteractionCallbackType
type InteractionData ¶
type InteractionData = types.InteractionData
type InteractionResponse ¶
type InteractionResponse = types.InteractionResponse
type InteractionResponseData ¶
type InteractionResponseData = types.InteractionResponseData
type InteractionType ¶
type InteractionType = types.InteractionType
type LoggerConfig ¶
type LoggerConfig = util.LoggerConfig
type MemberOptions ¶
type MemberOptions = context.MemberOptions
type MemberSuite ¶
type MemberSuite = context.MemberSuite
type MessageAction ¶
type MessageAction = context.MessageAction
type MessageOptions ¶
type MessageOptions = context.MessageOptions
type MessageSuite ¶
type MessageSuite = context.MessageSuite
type Middleware ¶
type Middleware = middleware.Middleware
type ModalRegistration ¶
type ModalRegistration = app.ModalRegistration
type OptionType ¶
type OptionType = command.OptionType
type PanicHandler ¶
type PanicHandler = middleware.PanicHandler
type Permission ¶
type Permission = types.Permission
type PermissionConfig ¶
type PermissionConfig = middleware.PermissionConfig
type PermissionError ¶
type PermissionError = middleware.PermissionError
type PermissionOption ¶
type PermissionOption = middleware.PermissionOption
type PermissionTarget ¶
type PermissionTarget = middleware.PermissionTarget
type Pipeline ¶
type Pipeline = middleware.Pipeline
type Policy ¶
type Policy = middleware.Policy
type ReadyEvent ¶
type ReadyEvent = types.ReadyEvent
type RoleAction ¶
type RoleAction = context.RoleAction
type RoleOptions ¶
type RoleOptions = context.RoleOptions
type Scope ¶
type Scope = middleware.Scope
type SelectMenuOption ¶
type SelectMenuOption = types.SelectOption
type Subcommand ¶
type Subcommand = command.Subcommand
type SubcommandGroup ¶
type SubcommandGroup = command.SubcommandGroup
type SyncResult ¶
type SyncResult = app.SyncResult
type TextInputOpt ¶
type TextInputOpt = component.TextInputOpt
Click to show internal directories.
Click to hide internal directories.