Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionDerivedPermissions ¶
type ActionDerivedPermissions struct { UserID string `json:"user_id"` GuildIsOwner bool `json:"guild_is_owner"` GuildPermissions int64 `json:"guild_permissions"` ChannelPermissions int64 `json:"channel_permissions"` AllowedRoleIDs []string `json:"lower_role_ids"` }
func (*ActionDerivedPermissions) CanManageRole ¶
func (a *ActionDerivedPermissions) CanManageRole(roleID string) bool
func (*ActionDerivedPermissions) HasChannelPermission ¶
func (a *ActionDerivedPermissions) HasChannelPermission(permission int64) bool
func (*ActionDerivedPermissions) HasGuildPermission ¶
func (a *ActionDerivedPermissions) HasGuildPermission(permission int64) bool
type ActionRowWithActions ¶
type ActionRowWithActions struct {
Components []ComponentWithActions `json:"components"`
}
type ActionType ¶
type ActionType int
const ( ActionTypeTextResponse ActionType = 1 ActionTypeToggleRole ActionType = 2 ActionTypeAddRole ActionType = 3 ActionTypeRemoveRole ActionType = 4 ActionTypeSavedMessageResponse ActionType = 5 ActionTypeTextDM ActionType = 6 ActionTypeSavedMessageDM ActionType = 7 ActionTypeTextEdit ActionType = 8 ActionTypeSavedMessageEdit ActionType = 9 ActionTypePermissionCheck ActionType = 10 )
type ComponentWithActions ¶
type ComponentWithActions struct { Type discordgo.ComponentType `json:"type"` Disabled bool `json:"disabled"` // Button Style discordgo.ButtonStyle `json:"style"` Label string `json:"label"` Emoji *discordgo.ComponentEmoji `json:"emoji"` URL string `json:"url"` ActionSetID string `json:"action_set_id"` // Select Menu Placeholder string `json:"placeholder"` MinValues *int `json:"min_values"` MaxValues int `json:"max_values"` Options []ComponentSelectOptionWithActions `json:"options"` }
type MessageWithActions ¶
type MessageWithActions struct { Content string `json:"content,omitempty"` Username string `json:"username,omitempty"` AvatarURL string `json:"avatar_url,omitempty"` TTS bool `json:"tts,omitempty"` Embeds []*discordgo.MessageEmbed `json:"embeds,omitempty"` AllowedMentions *discordgo.MessageAllowedMentions `json:"allowed_mentions,omitempty"` Components []ActionRowWithActions `json:"components,omitempty"` Actions map[string]ActionSet `json:"actions,omitempty"` }
Click to show internal directories.
Click to hide internal directories.