Versions in this module Expand all Collapse all v0 v0.16.13 Apr 2, 2020 Changes in this version type Cache + Channels *crs.LFU + Guilds *crs.LFU + Users *crs.LFU + VoiceStates *crs.LFU type Client + func (c *Client) Cacher() Cacher v0.16.11 Apr 2, 2020 v0.16.9 Apr 2, 2020 v0.16.8 Apr 2, 2020 v0.16.7 Apr 2, 2020 Changes in this version + const ActivityFlagInstance + const ActivityFlagJoin + const ActivityFlagJoinRequest + const ActivityFlagPlay + const ActivityFlagSpectate + const ActivityFlagSync + const ActivityTypeCustom + const ActivityTypeGame + const ActivityTypeListening + const ActivityTypeStreaming + const AttachmentSpoilerPrefix + const ChannelCache + const ChannelTypeDM + const ChannelTypeGroupDM + const ChannelTypeGuildCategory + const ChannelTypeGuildNews + const ChannelTypeGuildStore + const ChannelTypeGuildText + const ChannelTypeGuildVoice + const EvtChannelCreate + const EvtChannelDelete + const EvtChannelPinsUpdate + const EvtChannelUpdate + const EvtGuildBanAdd + const EvtGuildBanRemove + const EvtGuildCreate + const EvtGuildDelete + const EvtGuildEmojisUpdate + const EvtGuildIntegrationsUpdate + const EvtGuildMemberAdd + const EvtGuildMemberRemove + const EvtGuildMemberUpdate + const EvtGuildMembersChunk + const EvtGuildRoleCreate + const EvtGuildRoleDelete + const EvtGuildRoleUpdate + const EvtGuildUpdate + const EvtMessageCreate + const EvtMessageDelete + const EvtMessageDeleteBulk + const EvtMessageReactionAdd + const EvtMessageReactionRemove + const EvtMessageReactionRemoveAll + const EvtMessageUpdate + const EvtPresenceUpdate + const EvtReady + const EvtResumed + const EvtTypingStart + const EvtUserUpdate + const EvtVoiceServerUpdate + const EvtVoiceStateUpdate + const EvtWebhooksUpdate + const GuildCache + const GuildEmojiCache + const GuildMembersCache + const GuildRoleCache + const GuildRolesCache + const MessageActivityTypeJoin + const MessageActivityTypeJoinRequest + const MessageActivityTypeListen + const MessageActivityTypeSpectate + const Name + const NoCacheSpecified + const PermissionAddReactions + const PermissionAdministrator + const PermissionAll + const PermissionAllVoice + const PermissionBanMembers + const PermissionChannelAll + const PermissionCreateInstantInvite + const PermissionKickMembers + const PermissionManageChannels + const PermissionManageServer + const PermissionTextAll + const PermissionViewAuditLogs + const RequestGuildMembers + const StatusDnd + const StatusIdle + const StatusOffline + const StatusOnline + const UpdateStatus + const UpdateVoiceState + const UserCache + const Version + const VoiceStateCache + func AllEvents(except ...string) []string + func CreateTermSigListener() <-chan os.Signal + func DefaultLogger(debug bool) *logger.LoggerZap + func DefaultLoggerWithInstance(log *zap.Logger) *logger.LoggerZap + func LibraryInfo() string + func ShardID(guildID Snowflake, nrOfShards uint) uint + func Sort(v interface{}, fs ...Flag) + func SortRoles(rs []*Role) + func ValidateHandlerInputs(inputs ...interface{}) (err error) + func ValidateUsername(name string) (err error) + type Activity struct + ApplicationID Snowflake + Assets *ActivityAssets + Details string + Emoji *ActivityEmoji + Flags activityFlag + Instance bool + Name string + Party *ActivityParty + Secrets *ActivitySecrets + State string + Timestamps *ActivityTimestamp + Type acitivityType + URL string + func NewActivity() (activity *Activity) + func (a *Activity) CopyOverTo(other interface{}) (err error) + func (a *Activity) DeepCopy() (copy interface{}) + func (a *Activity) Reset() + type ActivityAssets struct + LargeImage string + LargeText string + SmallImage string + SmallText string + func (a *ActivityAssets) CopyOverTo(other interface{}) (err error) + func (a *ActivityAssets) DeepCopy() (copy interface{}) + type ActivityEmoji struct + Animated bool + ID Snowflake + Name string + type ActivityParty struct + ID string + Size []int + func (ap *ActivityParty) CopyOverTo(other interface{}) (err error) + func (ap *ActivityParty) DeepCopy() (copy interface{}) + func (ap *ActivityParty) Limit() int + func (ap *ActivityParty) NumberOfPeople() int + type ActivitySecrets struct + Join string + Match string + Spectate string + func (a *ActivitySecrets) CopyOverTo(other interface{}) (err error) + func (a *ActivitySecrets) DeepCopy() (copy interface{}) + type ActivityTimestamp struct + End int + Start int + func (a *ActivityTimestamp) CopyOverTo(other interface{}) (err error) + func (a *ActivityTimestamp) DeepCopy() (copy interface{}) + type AddGuildMemberParams struct + AccessToken string + Deaf bool + Mute bool + Nick string + Roles []Snowflake + type Attachment struct + Filename string + Height uint + ID Snowflake + ProxyURL string + Size uint + SpoilerTag bool + URL string + Width uint + func (a *Attachment) DeepCopy() (copy interface{}) + type AuditLog struct + AuditLogEntries []*AuditLogEntry + Users []*User + Webhooks []*Webhook + func (l *AuditLog) Bans() (bans []*PartialBan) + func (l *AuditLog) CopyOverTo(other interface{}) (err error) + func (l *AuditLog) DeepCopy() (copy interface{}) + type AuditLogChange string + const AuditLogChangeAFKChannelID + const AuditLogChangeAFKTimeout + const AuditLogChangeAdd + const AuditLogChangeAllow + const AuditLogChangeApplicationID + const AuditLogChangeAvatarHash + const AuditLogChangeBitrate + const AuditLogChangeChannelID + const AuditLogChangeCode + const AuditLogChangeColor + const AuditLogChangeDeaf + const AuditLogChangeDefaultMessageNotifications + const AuditLogChangeDeny + const AuditLogChangeExplicitContentFilter + const AuditLogChangeHoist + const AuditLogChangeID + const AuditLogChangeIconHash + const AuditLogChangeInviterID + const AuditLogChangeMFALevel + const AuditLogChangeMaxAge + const AuditLogChangeMaxUses + const AuditLogChangeMentionable + const AuditLogChangeMute + const AuditLogChangeNSFW + const AuditLogChangeName + const AuditLogChangeNick + const AuditLogChangeOwnerID + const AuditLogChangePermissionOverwrites + const AuditLogChangePermissions + const AuditLogChangePosition + const AuditLogChangePruneDeleteDays + const AuditLogChangeRegion + const AuditLogChangeRemove + const AuditLogChangeSplashHash + const AuditLogChangeTemporary + const AuditLogChangeTopic + const AuditLogChangeType + const AuditLogChangeUses + const AuditLogChangeVanityURLCode + const AuditLogChangeVerificationLevel + const AuditLogChangeWidgetChannelID + const AuditLogChangeWidgetEnabled + type AuditLogChanges struct + Key string + NewValue interface{} + OldValue interface{} + func (l *AuditLogChanges) CopyOverTo(other interface{}) (err error) + func (l *AuditLogChanges) DeepCopy() (copy interface{}) + type AuditLogEntry struct + Changes []*AuditLogChanges + Event AuditLogEvt + ID Snowflake + Options *AuditLogOption + Reason string + TargetID Snowflake + UserID Snowflake + func (l *AuditLogEntry) CopyOverTo(other interface{}) (err error) + func (l *AuditLogEntry) DeepCopy() (copy interface{}) + type AuditLogEvt uint + const AuditLogEvtChannelCreate + const AuditLogEvtChannelDelete + const AuditLogEvtChannelUpdate + const AuditLogEvtEmojiCreate + const AuditLogEvtEmojiDelete + const AuditLogEvtEmojiUpdate + const AuditLogEvtGuildUpdate + const AuditLogEvtInviteCreate + const AuditLogEvtInviteDelete + const AuditLogEvtInviteUpdate + const AuditLogEvtMemberBanAdd + const AuditLogEvtMemberBanRemove + const AuditLogEvtMemberKick + const AuditLogEvtMemberPrune + const AuditLogEvtMemberRoleUpdate + const AuditLogEvtMemberUpdate + const AuditLogEvtMessageDelete + const AuditLogEvtOverwriteCreate + const AuditLogEvtOverwriteDelete + const AuditLogEvtOverwriteUpdate + const AuditLogEvtRoleCreate + const AuditLogEvtRoleDelete + const AuditLogEvtRoleUpdate + const AuditLogEvtWebhookCreate + const AuditLogEvtWebhookDelete + const AuditLogEvtWebhookUpdate + type AuditLogOption struct + ChannelID Snowflake + Count string + DeleteMemberDays string + ID Snowflake + MembersRemoved string + RoleName string + Type string + func (l *AuditLogOption) CopyOverTo(other interface{}) (err error) + func (l *AuditLogOption) DeepCopy() (copy interface{}) + type AvatarParamHolder interface + Empty func() bool + SetAvatar func(avatar string) + UseDefaultAvatar func() + type Ban struct + Reason string + User *User + func (b *Ban) CopyOverTo(other interface{}) (err error) + func (b *Ban) DeepCopy() (copy interface{}) + type BanMemberParams struct + DeleteMessageDays int + Reason string + func (b *BanMemberParams) FindErrors() error + func (b *BanMemberParams) URLQueryString() string + type BodyUserCreateDM struct + RecipientID Snowflake + type Cache struct + func (c *Cache) AddGuildChannel(guildID Snowflake, channelID Snowflake) + func (c *Cache) AddGuildMember(guildID Snowflake, member *Member) + func (c *Cache) AddGuildRole(guildID Snowflake, role *Role) + func (c *Cache) DeleteChannel(id Snowflake) + func (c *Cache) DeleteChannelPermissionOverwrite(channelID Snowflake, overwriteID Snowflake) error + func (c *Cache) DeleteGuild(id Snowflake) + func (c *Cache) DeleteGuildChannel(guildID, channelID Snowflake) + func (c *Cache) DeleteGuildEmoji(guildID, emojiID Snowflake) + func (c *Cache) DeleteGuildRole(guildID, roleID Snowflake) + func (c *Cache) DirectUpdate(registry cacheRegistry, id Snowflake, changes []byte) error + func (c *Cache) Get(key cacheRegistry, id Snowflake, args ...interface{}) (v interface{}, err error) + func (c *Cache) GetChannel(id Snowflake) (channel *Channel, err error) + func (c *Cache) GetGuild(id Snowflake) (guild *Guild, err error) + func (c *Cache) GetGuildEmojis(id Snowflake) (emojis []*Emoji, err error) + func (c *Cache) GetGuildMember(guildID, userID Snowflake) (member *Member, err error) + func (c *Cache) GetGuildMembersAfter(guildID, after Snowflake, limit int) (members []*Member, err error) + func (c *Cache) GetGuildRoles(id Snowflake) (roles []*Role, err error) + func (c *Cache) GetUser(id Snowflake) (user *User, err error) + func (c *Cache) GetVoiceState(guildID Snowflake, params *guildVoiceStateCacheParams) (state *VoiceState, err error) + func (c *Cache) PeekGuild(id Snowflake) (guild *Guild, err error) + func (c *Cache) PeekUser(id Snowflake) (*User, error) + func (c *Cache) RemoveGuildMember(guildID Snowflake, memberID Snowflake) + func (c *Cache) SetChannel(new *Channel) + func (c *Cache) SetGuild(guild *Guild) + func (c *Cache) SetGuildEmojis(guildID Snowflake, emojis []*Emoji) + func (c *Cache) SetGuildMember(guildID Snowflake, member *Member) + func (c *Cache) SetGuildMembers(guildID Snowflake, members []*Member) + func (c *Cache) SetGuildRoles(guildID Snowflake, roles []*Role) + func (c *Cache) SetUser(new *User) + func (c *Cache) SetVoiceState(state *VoiceState) + func (c *Cache) Update(key cacheRegistry, v interface{}) (err error) + func (c *Cache) UpdateChannelLastMessageID(channelID Snowflake, messageID Snowflake) + func (c *Cache) UpdateChannelPin(id Snowflake, timestamp Time) + func (c *Cache) UpdateGuildRole(guildID Snowflake, role *Role, data json.RawMessage) bool + func (c *Cache) UpdateMemberAndUser(guildID, userID Snowflake, data json.RawMessage) + func (c *Cache) UpdateOrAddGuildMembers(guildID Snowflake, members []*Member) + func (c *Cache) Updates(key cacheRegistry, vs []interface{}) (err error) + type CacheConfig struct + ChannelCacheAlgorithm string + ChannelCacheLifetime time.Duration + ChannelCacheMaxEntries uint + DisableChannelCaching bool + DisableGuildCaching bool + DisableUserCaching bool + DisableVoiceStateCaching bool + GuildCacheAlgorithm string + GuildCacheLifetime time.Duration + GuildCacheMaxEntries uint + Mutable bool + UserCacheAlgorithm string + UserCacheLifetime time.Duration + UserCacheMaxEntries uint + VoiceStateCacheAlgorithm string + VoiceStateCacheLifetime time.Duration + VoiceStateCacheMaxEntries uint + type Cacher interface + AddGuildChannel func(guildID Snowflake, channelID Snowflake) + AddGuildMember func(guildID Snowflake, member *Member) + AddGuildRole func(guildID Snowflake, role *Role) + DeleteChannel func(channelID Snowflake) + DeleteGuild func(guildID Snowflake) + DeleteGuildChannel func(guildID Snowflake, channelID Snowflake) + DeleteGuildRole func(guildID Snowflake, roleID Snowflake) + Get func(key cacheRegistry, id Snowflake, args ...interface{}) (v interface{}, err error) + RemoveGuildMember func(guildID Snowflake, memberID Snowflake) + SetGuildEmojis func(guildID Snowflake, emojis []*Emoji) + Update func(key cacheRegistry, v interface{}) (err error) + UpdateChannelLastMessageID func(channelID Snowflake, messageID Snowflake) + UpdateChannelPin func(channelID Snowflake, lastPinTimestamp Time) + UpdateGuildRole func(guildID Snowflake, role *Role, messages json.RawMessage) bool + UpdateMemberAndUser func(guildID, userID Snowflake, data json.RawMessage) + Updates func(key cacheRegistry, vs []interface{}) error + type Channel struct + ApplicationID Snowflake + Bitrate uint + GuildID Snowflake + ID Snowflake + Icon string + LastMessageID Snowflake + LastPinTimestamp Time + NSFW bool + Name string + OwnerID Snowflake + ParentID Snowflake + PermissionOverwrites []PermissionOverwrite + Position int + RateLimitPerUser uint + Recipients []*User + Topic string + Type uint + UserLimit uint + func NewChannel() *Channel + func (c *Channel) Compare(other *Channel) bool + func (c *Channel) CopyOverTo(other interface{}) (err error) + func (c *Channel) DeepCopy() (copy interface{}) + func (c *Channel) Mention() string + func (c *Channel) Reset() + func (c *Channel) SendMsg(ctx context.Context, client MessageSender, message *Message) (msg *Message, err error) + func (c *Channel) SendMsgString(ctx context.Context, client MessageSender, content string) (msg *Message, err error) + func (c *Channel) String() string + type ChannelCreate struct + Channel *Channel + Ctx context.Context + ShardID uint + func (obj *ChannelCreate) UnmarshalJSON(data []byte) error + type ChannelCreateHandler = func(s Session, h *ChannelCreate) + type ChannelDelete struct + Channel *Channel + Ctx context.Context + ShardID uint + func (obj *ChannelDelete) UnmarshalJSON(data []byte) error + type ChannelDeleteHandler = func(s Session, h *ChannelDelete) + type ChannelFetcher interface + GetChannel func(id Snowflake) (ret *Channel, err error) + type ChannelPinsUpdate struct + ChannelID Snowflake + Ctx context.Context + LastPinTimestamp Time + ShardID uint + type ChannelPinsUpdateHandler = func(s Session, h *ChannelPinsUpdate) + type ChannelUpdate struct + Channel *Channel + Ctx context.Context + ShardID uint + func (obj *ChannelUpdate) UnmarshalJSON(data []byte) error + type ChannelUpdateHandler = func(s Session, h *ChannelUpdate) + type Client struct + func New(conf Config) *Client + func NewClient(conf Config) (*Client, error) + func (c *Client) AddDMParticipant(ctx context.Context, channelID Snowflake, participant *GroupDMParticipant, ...) error + func (c *Client) AddGuildMember(ctx context.Context, guildID, userID Snowflake, accessToken string, ...) (member *Member, err error) + func (c *Client) AddGuildMemberRole(ctx context.Context, guildID, userID, roleID Snowflake, flags ...Flag) (err error) + func (c *Client) AddPermission(permission PermissionBit) (updatedPermissions PermissionBits) + func (c *Client) AvgHeartbeatLatency() (duration time.Duration, err error) + func (c *Client) BanMember(ctx context.Context, guildID, userID Snowflake, params *BanMemberParams, ...) (err error) + func (c *Client) Cache() Cacher + func (c *Client) Connect(ctx context.Context) (err error) + func (c *Client) CreateChannelInvites(ctx context.Context, channelID Snowflake, params *CreateChannelInvitesParams, ...) (ret *Invite, err error) + func (c *Client) CreateDM(ctx context.Context, recipientID Snowflake, flags ...Flag) (ret *Channel, err error) + func (c *Client) CreateGroupDM(ctx context.Context, params *CreateGroupDMParams, flags ...Flag) (ret *Channel, err error) + func (c *Client) CreateGuild(ctx context.Context, guildName string, params *CreateGuildParams, ...) (ret *Guild, err error) + func (c *Client) CreateGuildChannel(ctx context.Context, guildID Snowflake, channelName string, ...) (ret *Channel, err error) + func (c *Client) CreateGuildEmoji(ctx context.Context, guildID Snowflake, params *CreateGuildEmojiParams, ...) (emoji *Emoji, err error) + func (c *Client) CreateGuildIntegration(ctx context.Context, guildID Snowflake, params *CreateGuildIntegrationParams, ...) (err error) + func (c *Client) CreateGuildRole(ctx context.Context, id Snowflake, params *CreateGuildRoleParams, ...) (ret *Role, err error) + func (c *Client) CreateMessage(ctx context.Context, channelID Snowflake, params *CreateMessageParams, ...) (ret *Message, err error) + func (c *Client) CreateReaction(ctx context.Context, channelID, messageID Snowflake, emoji interface{}, ...) (err error) + func (c *Client) CreateWebhook(ctx context.Context, channelID Snowflake, params *CreateWebhookParams, ...) (ret *Webhook, err error) + func (c *Client) DeleteAllReactions(ctx context.Context, channelID, messageID Snowflake, flags ...Flag) (err error) + func (c *Client) DeleteChannel(ctx context.Context, channelID Snowflake, flags ...Flag) (channel *Channel, err error) + func (c *Client) DeleteChannelPermission(ctx context.Context, channelID, overwriteID Snowflake, flags ...Flag) (err error) + func (c *Client) DeleteFromDiscord(ctx context.Context, obj discordDeleter, flags ...Flag) (err error) + func (c *Client) DeleteGuild(ctx context.Context, id Snowflake, flags ...Flag) (err error) + func (c *Client) DeleteGuildEmoji(ctx context.Context, guildID, emojiID Snowflake, flags ...Flag) (err error) + func (c *Client) DeleteGuildIntegration(ctx context.Context, guildID, integrationID Snowflake, flags ...Flag) (err error) + func (c *Client) DeleteGuildRole(ctx context.Context, guildID, roleID Snowflake, flags ...Flag) (err error) + func (c *Client) DeleteInvite(ctx context.Context, inviteCode string, flags ...Flag) (deleted *Invite, err error) + func (c *Client) DeleteMessage(ctx context.Context, channelID, msgID Snowflake, flags ...Flag) (err error) + func (c *Client) DeleteMessages(ctx context.Context, chanID Snowflake, params *DeleteMessagesParams, ...) (err error) + func (c *Client) DeleteOwnReaction(ctx context.Context, channelID, messageID Snowflake, emoji interface{}, ...) (err error) + func (c *Client) DeleteUserReaction(ctx context.Context, channelID, messageID, userID Snowflake, emoji interface{}, ...) (err error) + func (c *Client) DeleteWebhook(ctx context.Context, id Snowflake, flags ...Flag) (err error) + func (c *Client) DeleteWebhookWithToken(ctx context.Context, id Snowflake, token string, flags ...Flag) (err error) + func (c *Client) Disconnect() (err error) + func (c *Client) DisconnectOnInterrupt() (err error) + func (c *Client) Emit(name gatewayCmdName, payload gatewayCmdPayload) (unchandledGuildIDs []Snowflake, err error) + func (c *Client) EstimatePruneMembersCount(ctx context.Context, id Snowflake, days int, flags ...Flag) (estimate int, err error) + func (c *Client) ExecuteGitHubWebhook(ctx context.Context, params *ExecuteWebhookParams, wait bool, flags ...Flag) (err error) + func (c *Client) ExecuteSlackWebhook(ctx context.Context, params *ExecuteWebhookParams, wait bool, flags ...Flag) (err error) + func (c *Client) ExecuteWebhook(ctx context.Context, params *ExecuteWebhookParams, wait bool, URLSuffix string, ...) (err error) + func (c *Client) GetChannel(ctx context.Context, channelID Snowflake, flags ...Flag) (ret *Channel, err error) + func (c *Client) GetChannelInvites(ctx context.Context, channelID Snowflake, flags ...Flag) (invites []*Invite, err error) + func (c *Client) GetChannelWebhooks(ctx context.Context, channelID Snowflake, flags ...Flag) (ret []*Webhook, err error) + func (c *Client) GetConnectedGuilds() []Snowflake + func (c *Client) GetCurrentUser(ctx context.Context, flags ...Flag) (user *User, err error) + func (c *Client) GetCurrentUserGuilds(ctx context.Context, params *GetCurrentUserGuildsParams, flags ...Flag) (ret []*PartialGuild, err error) + func (c *Client) GetGateway(ctx context.Context) (gateway *gateway.Gateway, err error) + func (c *Client) GetGatewayBot(ctx context.Context) (gateway *gateway.GatewayBot, err error) + func (c *Client) GetGuild(ctx context.Context, id Snowflake, flags ...Flag) (guild *Guild, err error) + func (c *Client) GetGuildAuditLogs(ctx context.Context, guildID Snowflake, flags ...Flag) (builder *guildAuditLogsBuilder) + func (c *Client) GetGuildBan(ctx context.Context, guildID, userID Snowflake, flags ...Flag) (ret *Ban, err error) + func (c *Client) GetGuildBans(ctx context.Context, id Snowflake, flags ...Flag) (bans []*Ban, err error) + func (c *Client) GetGuildChannels(ctx context.Context, guildID Snowflake, flags ...Flag) (ret []*Channel, err error) + func (c *Client) GetGuildEmbed(ctx context.Context, guildID Snowflake, flags ...Flag) (embed *GuildEmbed, err error) + func (c *Client) GetGuildEmoji(ctx context.Context, guildID, emojiID Snowflake, flags ...Flag) (*Emoji, error) + func (c *Client) GetGuildEmojis(ctx context.Context, guildID Snowflake, flags ...Flag) (emojis []*Emoji, err error) + func (c *Client) GetGuildIntegrations(ctx context.Context, id Snowflake, flags ...Flag) (ret []*Integration, err error) + func (c *Client) GetGuildInvites(ctx context.Context, id Snowflake, flags ...Flag) (ret []*Invite, err error) + func (c *Client) GetGuildRoles(ctx context.Context, guildID Snowflake, flags ...Flag) (ret []*Role, err error) + func (c *Client) GetGuildVanityURL(ctx context.Context, guildID Snowflake, flags ...Flag) (ret *PartialInvite, err error) + func (c *Client) GetGuildVoiceRegions(ctx context.Context, id Snowflake, flags ...Flag) (ret []*VoiceRegion, err error) + func (c *Client) GetGuildWebhooks(ctx context.Context, guildID Snowflake, flags ...Flag) (ret []*Webhook, err error) + func (c *Client) GetGuilds(ctx context.Context, params *GetCurrentUserGuildsParams, flags ...Flag) ([]*Guild, error) + func (c *Client) GetInvite(ctx context.Context, inviteCode string, params URLQueryStringer, flags ...Flag) (invite *Invite, err error) + func (c *Client) GetMember(ctx context.Context, guildID, userID Snowflake, flags ...Flag) (ret *Member, err error) + func (c *Client) GetMemberPermissions(ctx context.Context, guildID, userID Snowflake, flags ...Flag) (permissions PermissionBits, err error) + func (c *Client) GetMembers(ctx context.Context, guildID Snowflake, params *GetMembersParams, ...) (members []*Member, err error) + func (c *Client) GetMessage(ctx context.Context, channelID, messageID Snowflake, flags ...Flag) (message *Message, err error) + func (c *Client) GetMessages(ctx context.Context, channelID Snowflake, filter *GetMessagesParams, ...) (messages []*Message, err error) + func (c *Client) GetPermissions() (permissions PermissionBits) + func (c *Client) GetPinnedMessages(ctx context.Context, channelID Snowflake, flags ...Flag) (ret []*Message, err error) + func (c *Client) GetReaction(ctx context.Context, channelID, messageID Snowflake, emoji interface{}, ...) (ret []*User, err error) + func (c *Client) GetUser(ctx context.Context, id Snowflake, flags ...Flag) (*User, error) + func (c *Client) GetUserConnections(ctx context.Context, flags ...Flag) (connections []*UserConnection, err error) + func (c *Client) GetUserDMs(ctx context.Context, flags ...Flag) (ret []*Channel, err error) + func (c *Client) GetVoiceRegions(ctx context.Context, flags ...Flag) (regions []*VoiceRegion, err error) + func (c *Client) GetWebhook(ctx context.Context, id Snowflake, flags ...Flag) (ret *Webhook, err error) + func (c *Client) GetWebhookWithToken(ctx context.Context, id Snowflake, token string, flags ...Flag) (ret *Webhook, err error) + func (c *Client) GuildsReady(cb func()) + func (c *Client) HeartbeatLatencies() (latencies map[uint]time.Duration, err error) + func (c *Client) InviteURL(ctx context.Context) (u string, err error) + func (c *Client) KickMember(ctx context.Context, guildID, userID Snowflake, reason string, flags ...Flag) (err error) + func (c *Client) KickParticipant(ctx context.Context, channelID, userID Snowflake, flags ...Flag) (err error) + func (c *Client) KickVoiceParticipant(ctx context.Context, guildID, userID Snowflake) error + func (c *Client) LeaveGuild(ctx context.Context, id Snowflake, flags ...Flag) (err error) + func (c *Client) Logger() logger.Logger + func (c *Client) Myself(ctx context.Context) (user *User, err error) + func (c *Client) On(event string, inputs ...interface{}) + func (c *Client) OnChannelCreate(mdlws []Middleware, handlers []HandlerChannelCreate, ctrl ...HandlerCtrl) + func (c *Client) OnChannelDelete(mdlws []Middleware, handlers []HandlerChannelDelete, ctrl ...HandlerCtrl) + func (c *Client) OnChannelPinsUpdate(mdlws []Middleware, handlers []HandlerChannelPinsUpdate, ctrl ...HandlerCtrl) + func (c *Client) OnChannelUpdate(mdlws []Middleware, handlers []HandlerChannelUpdate, ctrl ...HandlerCtrl) + func (c *Client) OnGuildBanAdd(mdlws []Middleware, handlers []HandlerGuildBanAdd, ctrl ...HandlerCtrl) + func (c *Client) OnGuildBanRemove(mdlws []Middleware, handlers []HandlerGuildBanRemove, ctrl ...HandlerCtrl) + func (c *Client) OnGuildCreate(mdlws []Middleware, handlers []HandlerGuildCreate, ctrl ...HandlerCtrl) + func (c *Client) OnGuildDelete(mdlws []Middleware, handlers []HandlerGuildDelete, ctrl ...HandlerCtrl) + func (c *Client) OnGuildEmojisUpdate(mdlws []Middleware, handlers []HandlerGuildEmojisUpdate, ctrl ...HandlerCtrl) + func (c *Client) OnGuildIntegrationsUpdate(mdlws []Middleware, handlers []HandlerGuildIntegrationsUpdate, ...) + func (c *Client) OnGuildMemberAdd(mdlws []Middleware, handlers []HandlerGuildMemberAdd, ctrl ...HandlerCtrl) + func (c *Client) OnGuildMemberRemove(mdlws []Middleware, handlers []HandlerGuildMemberRemove, ctrl ...HandlerCtrl) + func (c *Client) OnGuildMemberUpdate(mdlws []Middleware, handlers []HandlerGuildMemberUpdate, ctrl ...HandlerCtrl) + func (c *Client) OnGuildMembersChunk(mdlws []Middleware, handlers []HandlerGuildMembersChunk, ctrl ...HandlerCtrl) + func (c *Client) OnGuildRoleCreate(mdlws []Middleware, handlers []HandlerGuildRoleCreate, ctrl ...HandlerCtrl) + func (c *Client) OnGuildRoleDelete(mdlws []Middleware, handlers []HandlerGuildRoleDelete, ctrl ...HandlerCtrl) + func (c *Client) OnGuildRoleUpdate(mdlws []Middleware, handlers []HandlerGuildRoleUpdate, ctrl ...HandlerCtrl) + func (c *Client) OnGuildUpdate(mdlws []Middleware, handlers []HandlerGuildUpdate, ctrl ...HandlerCtrl) + func (c *Client) OnMessageCreate(mdlws []Middleware, handlers []HandlerMessageCreate, ctrl ...HandlerCtrl) + func (c *Client) OnMessageDelete(mdlws []Middleware, handlers []HandlerMessageDelete, ctrl ...HandlerCtrl) + func (c *Client) OnMessageDeleteBulk(mdlws []Middleware, handlers []HandlerMessageDeleteBulk, ctrl ...HandlerCtrl) + func (c *Client) OnMessageReactionAdd(mdlws []Middleware, handlers []HandlerMessageReactionAdd, ctrl ...HandlerCtrl) + func (c *Client) OnMessageReactionRemove(mdlws []Middleware, handlers []HandlerMessageReactionRemove, ...) + func (c *Client) OnMessageReactionRemoveAll(mdlws []Middleware, handlers []HandlerMessageReactionRemoveAll, ...) + func (c *Client) OnMessageUpdate(mdlws []Middleware, handlers []HandlerMessageUpdate, ctrl ...HandlerCtrl) + func (c *Client) OnPresenceUpdate(mdlws []Middleware, handlers []HandlerPresenceUpdate, ctrl ...HandlerCtrl) + func (c *Client) OnReady(mdlws []Middleware, handlers []HandlerReady, ctrl ...HandlerCtrl) + func (c *Client) OnResumed(mdlws []Middleware, handlers []HandlerResumed, ctrl ...HandlerCtrl) + func (c *Client) OnTypingStart(mdlws []Middleware, handlers []HandlerTypingStart, ctrl ...HandlerCtrl) + func (c *Client) OnUserUpdate(mdlws []Middleware, handlers []HandlerUserUpdate, ctrl ...HandlerCtrl) + func (c *Client) OnVoiceServerUpdate(mdlws []Middleware, handlers []HandlerVoiceServerUpdate, ctrl ...HandlerCtrl) + func (c *Client) OnVoiceStateUpdate(mdlws []Middleware, handlers []HandlerVoiceStateUpdate, ctrl ...HandlerCtrl) + func (c *Client) OnWebhooksUpdate(mdlws []Middleware, handlers []HandlerWebhooksUpdate, ctrl ...HandlerCtrl) + func (c *Client) PinMessage(ctx context.Context, message *Message, flags ...Flag) error + func (c *Client) PinMessageID(ctx context.Context, channelID, messageID Snowflake, flags ...Flag) (err error) + func (c *Client) Pool() *pools + func (c *Client) PruneMembers(ctx context.Context, id Snowflake, days int, reason string, flags ...Flag) (err error) + func (c *Client) RESTBucketGrouping() (group map[string][]string) + func (c *Client) RESTRatelimitBuckets() (group map[string][]string) + func (c *Client) Ready(cb func()) + func (c *Client) RemoveGuildMemberRole(ctx context.Context, guildID, userID, roleID Snowflake, flags ...Flag) (err error) + func (c *Client) Req() httd.Requester + func (c *Client) SendMsg(ctx context.Context, channelID Snowflake, data ...interface{}) (msg *Message, err error) + func (c *Client) SetCurrentUserNick(ctx context.Context, id Snowflake, nick string, flags ...Flag) (newNick string, err error) + func (c *Client) SetMsgContent(ctx context.Context, chanID, msgID Snowflake, content string) (*Message, error) + func (c *Client) SetMsgEmbed(ctx context.Context, chanID, msgID Snowflake, embed *Embed) (*Message, error) + func (c *Client) StayConnectedUntilInterrupted(ctx context.Context) (err error) + func (c *Client) String() string + func (c *Client) Suspend() (err error) + func (c *Client) SyncGuildIntegration(ctx context.Context, guildID, integrationID Snowflake, flags ...Flag) (err error) + func (c *Client) TriggerTypingIndicator(ctx context.Context, channelID Snowflake, flags ...Flag) (err error) + func (c *Client) UnbanMember(ctx context.Context, guildID, userID Snowflake, reason string, flags ...Flag) (err error) + func (c *Client) UnpinMessage(ctx context.Context, message *Message, flags ...Flag) error + func (c *Client) UnpinMessageID(ctx context.Context, channelID, messageID Snowflake, flags ...Flag) (err error) + func (c *Client) UpdateChannel(ctx context.Context, channelID Snowflake, flags ...Flag) (builder *updateChannelBuilder) + func (c *Client) UpdateChannelPermissions(ctx context.Context, channelID, overwriteID Snowflake, ...) (err error) + func (c *Client) UpdateCurrentUser(ctx context.Context, flags ...Flag) (builder *updateCurrentUserBuilder) + func (c *Client) UpdateGuild(ctx context.Context, id Snowflake, flags ...Flag) (builder *updateGuildBuilder) + func (c *Client) UpdateGuildChannelPositions(ctx context.Context, guildID Snowflake, ...) (err error) + func (c *Client) UpdateGuildEmbed(ctx context.Context, guildID Snowflake, flags ...Flag) (builder *updateGuildEmbedBuilder) + func (c *Client) UpdateGuildEmoji(ctx context.Context, guildID, emojiID Snowflake, flags ...Flag) (builder *updateGuildEmojiBuilder) + func (c *Client) UpdateGuildIntegration(ctx context.Context, guildID, integrationID Snowflake, ...) (err error) + func (c *Client) UpdateGuildMember(ctx context.Context, guildID, userID Snowflake, flags ...Flag) (builder *updateGuildMemberBuilder) + func (c *Client) UpdateGuildRole(ctx context.Context, guildID, roleID Snowflake, flags ...Flag) (builder *updateGuildRoleBuilder) + func (c *Client) UpdateGuildRolePositions(ctx context.Context, guildID Snowflake, ...) (roles []*Role, err error) + func (c *Client) UpdateMessage(ctx context.Context, chanID, msgID Snowflake, flags ...Flag) (builder *updateMessageBuilder) + func (c *Client) UpdateStatus(s *UpdateStatusPayload) error + func (c *Client) UpdateStatusString(s string) error + func (c *Client) UpdateWebhook(ctx context.Context, id Snowflake, flags ...Flag) (builder *updateWebhookBuilder) + func (c *Client) UpdateWebhookWithToken(ctx context.Context, id Snowflake, token string, flags ...Flag) (builder *updateWebhookBuilder) + func (r Client) VoiceConnect(guildID, channelID Snowflake) (VoiceConnection, error) + func (r Client) VoiceConnectOptions(guildID, channelID Snowflake, selfDeaf, selfMute bool) (ret VoiceConnection, err error) + type CloseConnectionErr = disgorderr.ClosedConnectionErr + type Config struct + BotToken string + CacheConfig *CacheConfig + CancelRequestWhenRateLimited bool + DisableCache bool + HTTPClient *http.Client + IgnoreEvents []string + LoadMembersQuietly bool + Logger Logger + Presence *UpdateStatusPayload + ProjectName string + Proxy proxy.Dialer + RESTBucketManager httd.RESTBucketManager + ShardConfig ShardConfig + type Copier interface + CopyOverTo func(other interface{}) error + type CreateChannelInvitesParams struct + MaxAge int + MaxUses int + Reason string + Temporary bool + Unique bool + type CreateGroupDMParams struct + AccessTokens []string + Nicks map[Snowflake]string + type CreateGuildChannelParams struct + Bitrate uint + NSFW bool + Name string + ParentID Snowflake + PermissionOverwrites []PermissionOverwrite + Position int + RateLimitPerUser uint + Reason string + Topic string + Type uint + UserLimit uint + type CreateGuildEmojiParams struct + Image string + Name string + Reason string + Roles []Snowflake + type CreateGuildIntegrationParams struct + ID Snowflake + Type string + type CreateGuildParams struct + Channels []*PartialChannel + DefaultMsgNotifications DefaultMessageNotificationLvl + ExplicitContentFilter ExplicitContentFilterLvl + Icon string + Name string + Region string + Roles []*Role + VerificationLvl int + type CreateGuildRoleParams struct + Color uint + Hoist bool + Mentionable bool + Name string + Permissions uint64 + Reason string + type CreateMessageFileParams struct + FileName string + Reader io.Reader + SpoilerTag bool + type CreateMessageParams struct + Content string + Embed *Embed + Files []CreateMessageFileParams + Nonce string + SpoilerTagAllAttachments bool + SpoilerTagContent bool + Tts bool + func NewMessageByString(content string) *CreateMessageParams + type CreateWebhookParams struct + Avatar string + Name string + Reason string + func (c *CreateWebhookParams) FindErrors() error + type Ctrl struct + Channel interface{} + Duration time.Duration + Runs int + Until time.Time + func (c *Ctrl) CloseChannel() + func (c *Ctrl) IsDead() bool + func (c *Ctrl) OnInsert(Session) error + func (c *Ctrl) OnRemove(Session) error + func (c *Ctrl) Update() + type DeepCopier interface + DeepCopy func() interface{} + type DefaultMessageNotificationLvl uint + const DefaultMessageNotificationLvlAllMessages + const DefaultMessageNotificationLvlOnlyMentions + func (dmnl *DefaultMessageNotificationLvl) AllMessages() bool + func (dmnl *DefaultMessageNotificationLvl) OnlyMentions() bool + type DeleteMessagesParams struct + Messages []Snowflake + func (p *DeleteMessagesParams) AddMessage(msg *Message) (err error) + func (p *DeleteMessagesParams) Valid() (err error) + type Discriminator uint16 + func NewDiscriminator(d string) (discriminator Discriminator, err error) + func (d *Discriminator) UnmarshalJSON(data []byte) (err error) + func (d Discriminator) MarshalJSON() (data []byte, err error) + func (d Discriminator) NotSet() bool + func (d Discriminator) String() (str string) + type Embed struct + Author *EmbedAuthor + Color int + Description string + Fields []*EmbedField + Footer *EmbedFooter + Image *EmbedImage + Provider *EmbedProvider + Thumbnail *EmbedThumbnail + Timestamp Time + Title string + Type string + URL string + Video *EmbedVideo + func (c *Embed) CopyOverTo(other interface{}) (err error) + func (c *Embed) DeepCopy() (copy interface{}) + type EmbedAuthor struct + IconURL string + Name string + ProxyIconURL string + URL string + func (c *EmbedAuthor) CopyOverTo(other interface{}) (err error) + func (c *EmbedAuthor) DeepCopy() (copy interface{}) + type EmbedField struct + Inline bool + Name string + Value string + func (c *EmbedField) CopyOverTo(other interface{}) (err error) + func (c *EmbedField) DeepCopy() (copy interface{}) + type EmbedFooter struct + IconURL string + ProxyIconURL string + Text string + func (c *EmbedFooter) CopyOverTo(other interface{}) (err error) + func (c *EmbedFooter) DeepCopy() (copy interface{}) + type EmbedImage struct + Height int + ProxyURL string + URL string + Width int + func (c *EmbedImage) CopyOverTo(other interface{}) (err error) + func (c *EmbedImage) DeepCopy() (copy interface{}) + type EmbedProvider struct + Name string + URL string + func (c *EmbedProvider) CopyOverTo(other interface{}) (err error) + func (c *EmbedProvider) DeepCopy() (copy interface{}) + type EmbedThumbnail struct + Height int + ProxyURL string + URL string + Width int + func (c *EmbedThumbnail) CopyOverTo(other interface{}) (err error) + func (c *EmbedThumbnail) DeepCopy() (copy interface{}) + type EmbedVideo struct + Height int + URL string + Width int + func (c *EmbedVideo) CopyOverTo(other interface{}) (err error) + func (c *EmbedVideo) DeepCopy() (copy interface{}) + type Emitter interface + Emit func(name gatewayCmdName, data gatewayCmdPayload) (unhandledGuildIDs []Snowflake, err error) + type Emoji struct + Animated bool + ID Snowflake + Managed bool + Name string + RequireColons bool + Roles []Snowflake + User *User + func (e *Emoji) CopyOverTo(other interface{}) (err error) + func (e *Emoji) DeepCopy() (copy interface{}) + func (e *Emoji) LinkToGuild(guildID Snowflake) + func (e *Emoji) Mention() string + func (e *Emoji) Reset() + func (e *Emoji) String() string + type EmojiName struct + func (e EmojiName) String() string + type Err = disgorderr.Err + type ErrRest = httd.ErrREST + type ErrorCacheItemNotFound struct + func (e *ErrorCacheItemNotFound) Error() string + type ErrorEmptyValue struct + func (e *ErrorEmptyValue) Error() string + type ErrorMissingSnowflake struct + func (e *ErrorMissingSnowflake) Error() string + type ErrorUnsupportedType struct + func (e *ErrorUnsupportedType) Error() string + type ErrorUsingDeactivatedCache struct + func (e *ErrorUsingDeactivatedCache) Error() string + type ExecuteWebhookParams struct + AvatarURL string + Content string + Embeds []*Embed + File interface{} + TTS bool + Token string + Username string + WebhookID Snowflake + func NewExecuteWebhookParams(id Snowflake, token string) (ret *ExecuteWebhookParams, err error) + type ExplicitContentFilterLvl uint + const ExplicitContentFilterLvlAllMembers + const ExplicitContentFilterLvlDisabled + const ExplicitContentFilterLvlMembersWithoutRoles + func (ecfl *ExplicitContentFilterLvl) AllMembers() bool + func (ecfl *ExplicitContentFilterLvl) Disabled() bool + func (ecfl *ExplicitContentFilterLvl) MembersWithoutRoles() bool + type Flag uint32 + const IgnoreCache + const IgnoreEmptyParams + const OrderAscending + const OrderDescending + const SortByChannelID + const SortByGuildID + const SortByHoist + const SortByID + const SortByName + func (f Flag) IgnoreEmptyParams() bool + func (f Flag) Ignorecache() bool + func (f Flag) Sort() bool + func (i Flag) String() string + type GetCurrentUserGuildsParams struct + After Snowflake + Before Snowflake + Limit int + func (g *GetCurrentUserGuildsParams) URLQueryString() string + type GetInviteParams struct + WithMemberCount bool + func (g *GetInviteParams) URLQueryString() string + type GetMembersParams struct + After Snowflake + Limit uint32 + type GetMessagesParams struct + After Snowflake + Around Snowflake + Before Snowflake + Limit uint + func (g *GetMessagesParams) URLQueryString() string + func (p *GetMessagesParams) Validate() error + type GetReactionURLParams struct + After Snowflake + Before Snowflake + Limit int + func (g *GetReactionURLParams) URLQueryString() string + type GroupDMParticipant struct + AccessToken string + Nickname string + UserID Snowflake + func (g *GroupDMParticipant) FindErrors() error + type Guild struct + AfkChannelID Snowflake + AfkTimeout uint + ApplicationID Snowflake + Channels []*Channel + DefaultMessageNotifications DefaultMessageNotificationLvl + EmbedChannelID Snowflake + EmbedEnabled bool + Emojis []*Emoji + ExplicitContentFilter ExplicitContentFilterLvl + Features []string + ID Snowflake + Icon string + JoinedAt *Time + Large bool + MFALevel MFALvl + MemberCount uint + Members []*Member + Name string + Owner bool + OwnerID Snowflake + Permissions PermissionBits + Presences []*UserPresence + Region string + Roles []*Role + Splash string + SystemChannelID Snowflake + Unavailable bool + VerificationLevel VerificationLvl + VoiceStates []*VoiceState + WidgetChannelID Snowflake + WidgetEnabled bool + func NewGuild() *Guild + func NewGuildFromJSON(data []byte) (guild *Guild) + func NewGuildFromUnavailable(gu *GuildUnavailable) *Guild + func NewPartialGuild(ID Snowflake) (guild *Guild) + func (g *Guild) AddChannel(c *Channel) error + func (g *Guild) AddMember(member *Member) error + func (g *Guild) AddMembers(members []*Member) + func (g *Guild) AddRole(role *Role) error + func (g *Guild) Channel(id Snowflake) (*Channel, error) + func (g *Guild) CopyOverTo(other interface{}) (err error) + func (g *Guild) DeepCopy() (copy interface{}) + func (g *Guild) DeleteChannel(c *Channel) error + func (g *Guild) DeleteChannelByID(ID Snowflake) error + func (g *Guild) DeleteRoleByID(ID Snowflake) + func (g *Guild) Emoji(id Snowflake) (emoji *Emoji, err error) + func (g *Guild) GetMemberWithHighestSnowflake() *Member + func (g *Guild) GetMembersCountEstimate(ctx context.Context, s Session) (estimate int, err error) + func (g *Guild) MarshalJSON() ([]byte, error) + func (g *Guild) Member(id Snowflake) (*Member, error) + func (g *Guild) MembersByName(name string) (members []*Member) + func (g *Guild) Reset() + func (g *Guild) Role(id Snowflake) (role *Role, err error) + func (g *Guild) RoleByName(name string) ([]*Role, error) + func (g *Guild) String() string + type GuildBanAdd struct + Ctx context.Context + GuildID Snowflake + ShardID uint + User *User + type GuildBanAddHandler = func(s Session, h *GuildBanAdd) + type GuildBanRemove struct + Ctx context.Context + GuildID Snowflake + ShardID uint + User *User + type GuildBanRemoveHandler = func(s Session, h *GuildBanRemove) + type GuildCreate struct + Ctx context.Context + Guild *Guild + ShardID uint + func (obj *GuildCreate) UnmarshalJSON(data []byte) error + type GuildCreateHandler = func(s Session, h *GuildCreate) + type GuildDelete struct + Ctx context.Context + ShardID uint + UnavailableGuild *GuildUnavailable + func (obj *GuildDelete) UnmarshalJSON(data []byte) error + func (obj *GuildDelete) UserWasRemoved() bool + type GuildDeleteHandler = func(s Session, h *GuildDelete) + type GuildEmbed struct + ChannelID Snowflake + Enabled bool + func (e *GuildEmbed) CopyOverTo(other interface{}) (err error) + func (e *GuildEmbed) DeepCopy() (copy interface{}) + type GuildEmojisUpdate struct + Ctx context.Context + Emojis []*Emoji + GuildID Snowflake + ShardID uint + type GuildEmojisUpdateHandler = func(s Session, h *GuildEmojisUpdate) + type GuildIntegrationsUpdate struct + Ctx context.Context + GuildID Snowflake + ShardID uint + type GuildIntegrationsUpdateHandler = func(s Session, h *GuildIntegrationsUpdate) + type GuildMemberAdd struct + Ctx context.Context + Member *Member + ShardID uint + func (obj *GuildMemberAdd) UnmarshalJSON(data []byte) error + type GuildMemberAddHandler = func(s Session, h *GuildMemberAdd) + type GuildMemberRemove struct + Ctx context.Context + GuildID Snowflake + ShardID uint + User *User + type GuildMemberRemoveHandler = func(s Session, h *GuildMemberRemove) + type GuildMemberUpdate struct + Ctx context.Context + GuildID Snowflake + Nick string + Roles []Snowflake + ShardID uint + User *User + type GuildMemberUpdateHandler = func(s Session, h *GuildMemberUpdate) + type GuildMembersChunk struct + Ctx context.Context + GuildID Snowflake + Members []*Member + ShardID uint + type GuildMembersChunkHandler = func(s Session, h *GuildMembersChunk) + type GuildRoleCreate struct + Ctx context.Context + GuildID Snowflake + Role *Role + ShardID uint + type GuildRoleCreateHandler = func(s Session, h *GuildRoleCreate) + type GuildRoleDelete struct + Ctx context.Context + GuildID Snowflake + RoleID Snowflake + ShardID uint + type GuildRoleDeleteHandler = func(s Session, h *GuildRoleDelete) + type GuildRoleUpdate struct + Ctx context.Context + GuildID Snowflake + Role *Role + ShardID uint + type GuildRoleUpdateHandler = func(s Session, h *GuildRoleUpdate) + type GuildUnavailable struct + ID Snowflake + Unavailable bool + func NewGuildUnavailable(ID Snowflake) *GuildUnavailable + type GuildUpdate struct + Ctx context.Context + Guild *Guild + ShardID uint + func (obj *GuildUpdate) UnmarshalJSON(data []byte) error + type GuildUpdateHandler = func(s Session, h *GuildUpdate) + type Handler = interface + type HandlerChannelCreate = func(Session, *ChannelCreate) + type HandlerChannelDelete = func(Session, *ChannelDelete) + type HandlerChannelPinsUpdate = func(Session, *ChannelPinsUpdate) + type HandlerChannelUpdate = func(Session, *ChannelUpdate) + type HandlerCtrl interface + IsDead func() bool + OnInsert func(Session) error + OnRemove func(Session) error + Update func() + type HandlerGuildBanAdd = func(Session, *GuildBanAdd) + type HandlerGuildBanRemove = func(Session, *GuildBanRemove) + type HandlerGuildCreate = func(Session, *GuildCreate) + type HandlerGuildDelete = func(Session, *GuildDelete) + type HandlerGuildEmojisUpdate = func(Session, *GuildEmojisUpdate) + type HandlerGuildIntegrationsUpdate = func(Session, *GuildIntegrationsUpdate) + type HandlerGuildMemberAdd = func(Session, *GuildMemberAdd) + type HandlerGuildMemberRemove = func(Session, *GuildMemberRemove) + type HandlerGuildMemberUpdate = func(Session, *GuildMemberUpdate) + type HandlerGuildMembersChunk = func(Session, *GuildMembersChunk) + type HandlerGuildRoleCreate = func(Session, *GuildRoleCreate) + type HandlerGuildRoleDelete = func(Session, *GuildRoleDelete) + type HandlerGuildRoleUpdate = func(Session, *GuildRoleUpdate) + type HandlerGuildUpdate = func(Session, *GuildUpdate) + type HandlerMessageCreate = func(Session, *MessageCreate) + type HandlerMessageDelete = func(Session, *MessageDelete) + type HandlerMessageDeleteBulk = func(Session, *MessageDeleteBulk) + type HandlerMessageReactionAdd = func(Session, *MessageReactionAdd) + type HandlerMessageReactionRemove = func(Session, *MessageReactionRemove) + type HandlerMessageReactionRemoveAll = func(Session, *MessageReactionRemoveAll) + type HandlerMessageUpdate = func(Session, *MessageUpdate) + type HandlerPresenceUpdate = func(Session, *PresenceUpdate) + type HandlerReady = func(Session, *Ready) + type HandlerResumed = func(Session, *Resumed) + type HandlerSpecErr = disgorderr.HandlerSpecErr + type HandlerTypingStart = func(Session, *TypingStart) + type HandlerUserUpdate = func(Session, *UserUpdate) + type HandlerVoiceServerUpdate = func(Session, *VoiceServerUpdate) + type HandlerVoiceStateUpdate = func(Session, *VoiceStateUpdate) + type HandlerWebhooksUpdate = func(Session, *WebhooksUpdate) + type Integration struct + Account *IntegrationAccount + Enabled bool + ExpireBehavior int + ExpireGracePeriod int + ID Snowflake + Name string + RoleID Snowflake + Syncing bool + Type string + User *User + func (i *Integration) CopyOverTo(other interface{}) (err error) + func (i *Integration) DeepCopy() (copy interface{}) + type IntegrationAccount struct + ID string + Name string + func (i *IntegrationAccount) CopyOverTo(other interface{}) (err error) + func (i *IntegrationAccount) DeepCopy() (copy interface{}) + type Invite struct + ApproximateMemberCount int + ApproximatePresenceCount int + Channel *PartialChannel + Code string + Guild *PartialGuild + func (i *Invite) CopyOverTo(other interface{}) (err error) + func (i *Invite) DeepCopy() (copy interface{}) + type InviteMetadata struct + CreatedAt Time + Inviter *User + MaxAge int + MaxUses int + Revoked bool + Temporary bool + Uses int + func (i *InviteMetadata) CopyOverTo(other interface{}) (err error) + func (i *InviteMetadata) DeepCopy() (copy interface{}) + type Link interface + Connect func(ctx context.Context) error + Disconnect func() error + type Lockable struct + type Logger = logger.Logger + type MFALvl uint + const MFALvlElevated + const MFALvlNone + func (mfal *MFALvl) Elevated() bool + func (mfal *MFALvl) None() bool + type Member struct + Deaf bool + GuildID Snowflake + JoinedAt Time + Mute bool + Nick string + Roles []Snowflake + User *User + func (m *Member) CopyOverTo(other interface{}) (err error) + func (m *Member) DeepCopy() (copy interface{}) + func (m *Member) GetPermissions(ctx context.Context, s Session) (p uint64, err error) + func (m *Member) GetUser(ctx context.Context, session Session) (usr *User, err error) + func (m *Member) Mention() string + func (m *Member) Reset() + func (m *Member) String() string + func (m *Member) UpdateNick(ctx context.Context, client nickUpdater, nickname string, flags ...Flag) error + type MentionChannel struct + GuildID Snowflake + ID Snowflake + Name string + Type int + type Mentioner interface + Mention func() string + type Message struct + Activity MessageActivity + Application MessageApplication + Attachments []*Attachment + Author *User + ChannelID Snowflake + Content string + EditedTimestamp Time + Embeds []*Embed + Flags MessageFlag + GuildID Snowflake + HasSpoilerImage bool + ID Snowflake + Member *Member + MentionChannels []*MentionChannel + MentionEveryone bool + MentionRoles []Snowflake + Mentions []*User + MessageReference *MessageReference + Nonce interface{} + Pinned bool + Reactions []*Reaction + SpoilerTagAllAttachments bool + SpoilerTagContent bool + Timestamp Time + Tts bool + Type MessageType + WebhookID Snowflake + func NewMessage() *Message + func (m *Message) CopyOverTo(other interface{}) (err error) + func (m *Message) DeepCopy() (copy interface{}) + func (m *Message) DiscordURL() (string, error) + func (m *Message) IsDirectMessage() bool + func (m *Message) React(ctx context.Context, s Session, emoji interface{}, flags ...Flag) error + func (m *Message) Reply(ctx context.Context, client msgSender, data ...interface{}) (*Message, error) + func (m *Message) Reset() + func (m *Message) Send(ctx context.Context, client MessageSender, flags ...Flag) (msg *Message, err error) + func (m *Message) String() string + func (m *Message) Unreact(ctx context.Context, s Session, emoji interface{}, flags ...Flag) error + type MessageActivity struct + PartyID string + Type int + type MessageApplication struct + CoverImage string + Description string + ID Snowflake + Icon string + Name string + type MessageCreate struct + Ctx context.Context + Message *Message + ShardID uint + func (m *MessageCreate) Reset() + func (obj *MessageCreate) UnmarshalJSON(data []byte) error + type MessageCreateHandler = func(s Session, h *MessageCreate) + type MessageDelete struct + ChannelID Snowflake + Ctx context.Context + GuildID Snowflake + MessageID Snowflake + ShardID uint + type MessageDeleteBulk struct + ChannelID Snowflake + Ctx context.Context + MessageIDs []Snowflake + ShardID uint + type MessageDeleteBulkHandler = func(s Session, h *MessageDeleteBulk) + type MessageDeleteHandler = func(s Session, h *MessageDelete) + type MessageFlag uint + const MessageFlagCrossposted + const MessageFlagIsCrosspost + const MessageFlagSupressEmbeds + type MessageReactionAdd struct + ChannelID Snowflake + Ctx context.Context + MessageID Snowflake + PartialEmoji *Emoji + ShardID uint + UserID Snowflake + type MessageReactionAddHandler = func(s Session, h *MessageReactionAdd) + type MessageReactionRemove struct + ChannelID Snowflake + Ctx context.Context + MessageID Snowflake + PartialEmoji *Emoji + ShardID uint + UserID Snowflake + type MessageReactionRemoveAll struct + ChannelID Snowflake + Ctx context.Context + MessageID Snowflake + ShardID uint + type MessageReactionRemoveAllHandler = func(s Session, h *MessageReactionRemoveAll) + type MessageReactionRemoveHandler = func(s Session, h *MessageReactionRemove) + type MessageReference struct + ChannelID Snowflake + GuildID Snowflake + MessageID Snowflake + type MessageSender interface + CreateMessage func(ctx context.Context, channelID Snowflake, params *CreateMessageParams, ...) (ret *Message, err error) + type MessageType uint + const MessageTypeCall + const MessageTypeChannelFollowAdd + const MessageTypeChannelIconChange + const MessageTypeChannelNameChange + const MessageTypeChannelPinnedMessage + const MessageTypeDefault + const MessageTypeGuildMemberJoin + const MessageTypeRecipientAdd + const MessageTypeRecipientRemove + const MessageTypeUserPremiumGuildSubscription + const MessageTypeUserPremiumGuildSubscriptionTier1 + const MessageTypeUserPremiumGuildSubscriptionTier2 + const MessageTypeUserPremiumGuildSubscriptionTier3 + type MessageUpdate struct + Ctx context.Context + Message *Message + ShardID uint + func (obj *MessageUpdate) UnmarshalJSON(data []byte) error + type MessageUpdateHandler = func(s Session, h *MessageUpdate) + type MessageUpdater interface + UpdateMessage func(ctx context.Context, chanID, msgID Snowflake, flags ...Flag) *updateMessageBuilder + type Middleware = func(interface{}) interface + type PartialBan struct + BannedUserID Snowflake + ModeratorResponsibleID Snowflake + Reason string + func (p *PartialBan) String() string + type PartialChannel struct + ID Snowflake + Name string + Type uint + type PartialEmoji = Emoji + type PartialGuild = Guild + type PartialInvite = Invite + type PermissionBit = uint64 + const PermissionAttachFiles + const PermissionChangeNickname + const PermissionEmbedLinks + const PermissionManageEmojis + const PermissionManageMessages + const PermissionManageNicknames + const PermissionManageRoles + const PermissionManageWebhooks + const PermissionMentionEveryone + const PermissionReadMessageHistory + const PermissionReadMessages + const PermissionSendMessages + const PermissionSendTTSMessages + const PermissionUseExternalEmojis + const PermissionVoiceConnect + const PermissionVoiceDeafenMembers + const PermissionVoiceMoveMembers + const PermissionVoiceMuteMembers + const PermissionVoicePrioritySpeaker + const PermissionVoiceSpeak + const PermissionVoiceUseVAD + type PermissionBits = PermissionBit + type PermissionOverwrite struct + Allow PermissionBits + Deny PermissionBits + ID Snowflake + Type string + type Pool interface + Get func() (x Reseter) + Put func(x Reseter) + type PremiumType int + const PremiumTypeNitro + const PremiumTypeNitroClassic + func (p PremiumType) String() (t string) + type PresenceUpdate struct + Ctx context.Context + Game *Activity + GuildID Snowflake + RoleIDs []Snowflake + ShardID uint + Status string + User *User + type PresenceUpdateHandler = func(s Session, h *PresenceUpdate) + type RESTAuditLogs interface + GetGuildAuditLogs func(ctx context.Context, guildID Snowflake, flags ...Flag) *guildAuditLogsBuilder + type RESTBuilder struct + func (b *RESTBuilder) CancelOnRatelimit() *RESTBuilder + func (b *RESTBuilder) IgnoreCache() *RESTBuilder + type RESTChannel interface + AddDMParticipant func(ctx context.Context, channelID Snowflake, participant *GroupDMParticipant, ...) (err error) + CreateChannelInvites func(ctx context.Context, id Snowflake, params *CreateChannelInvitesParams, ...) (ret *Invite, err error) + DeleteChannel func(ctx context.Context, id Snowflake, flags ...Flag) (channel *Channel, err error) + DeleteChannelPermission func(ctx context.Context, channelID, overwriteID Snowflake, flags ...Flag) (err error) + GetChannel func(ctx context.Context, id Snowflake, flags ...Flag) (ret *Channel, err error) + GetChannelInvites func(ctx context.Context, id Snowflake, flags ...Flag) (ret []*Invite, err error) + GetPinnedMessages func(ctx context.Context, channelID Snowflake, flags ...Flag) (ret []*Message, err error) + KickParticipant func(ctx context.Context, channelID, userID Snowflake, flags ...Flag) (err error) + PinMessage func(ctx context.Context, msg *Message, flags ...Flag) (err error) + PinMessageID func(ctx context.Context, channelID, msgID Snowflake, flags ...Flag) (err error) + TriggerTypingIndicator func(ctx context.Context, channelID Snowflake, flags ...Flag) (err error) + UnpinMessage func(ctx context.Context, msg *Message, flags ...Flag) (err error) + UnpinMessageID func(ctx context.Context, channelID, msgID Snowflake, flags ...Flag) (err error) + UpdateChannel func(ctx context.Context, id Snowflake, flags ...Flag) (builder *updateChannelBuilder) + UpdateChannelPermissions func(ctx context.Context, chanID, overwriteID Snowflake, ...) (err error) + type RESTEmoji interface + CreateGuildEmoji func(ctx context.Context, guildID Snowflake, params *CreateGuildEmojiParams, ...) (*Emoji, error) + DeleteGuildEmoji func(ctx context.Context, guildID, emojiID Snowflake, flags ...Flag) error + GetGuildEmoji func(ctx context.Context, guildID, emojiID Snowflake, flags ...Flag) (*Emoji, error) + GetGuildEmojis func(ctx context.Context, id Snowflake, flags ...Flag) ([]*Emoji, error) + UpdateGuildEmoji func(ctx context.Context, guildID, emojiID Snowflake, flags ...Flag) *updateGuildEmojiBuilder + type RESTGuild interface + AddGuildMember func(ctx context.Context, guildID, userID Snowflake, accessToken string, ...) (*Member, error) + AddGuildMemberRole func(ctx context.Context, guildID, userID, roleID Snowflake, flags ...Flag) error + BanMember func(ctx context.Context, guildID, userID Snowflake, params *BanMemberParams, ...) error + CreateGuild func(ctx context.Context, guildName string, params *CreateGuildParams, ...) (*Guild, error) + CreateGuildChannel func(ctx context.Context, id Snowflake, name string, ...) (*Channel, error) + CreateGuildIntegration func(ctx context.Context, guildID Snowflake, params *CreateGuildIntegrationParams, ...) error + CreateGuildRole func(ctx context.Context, id Snowflake, params *CreateGuildRoleParams, ...) (*Role, error) + DeleteGuild func(ctx context.Context, id Snowflake, flags ...Flag) error + DeleteGuildIntegration func(ctx context.Context, guildID, integrationID Snowflake, flags ...Flag) error + DeleteGuildRole func(ctx context.Context, guildID, roleID Snowflake, flags ...Flag) error + EstimatePruneMembersCount func(ctx context.Context, id Snowflake, days int, flags ...Flag) (estimate int, err error) + GetGuild func(ctx context.Context, id Snowflake, flags ...Flag) (*Guild, error) + GetGuildBan func(ctx context.Context, guildID, userID Snowflake, flags ...Flag) (*Ban, error) + GetGuildBans func(ctx context.Context, id Snowflake, flags ...Flag) ([]*Ban, error) + GetGuildChannels func(ctx context.Context, id Snowflake, flags ...Flag) ([]*Channel, error) + GetGuildEmbed func(ctx context.Context, guildID Snowflake, flags ...Flag) (*GuildEmbed, error) + GetGuildIntegrations func(ctx context.Context, id Snowflake, flags ...Flag) ([]*Integration, error) + GetGuildInvites func(ctx context.Context, id Snowflake, flags ...Flag) ([]*Invite, error) + GetGuildRoles func(ctx context.Context, guildID Snowflake, flags ...Flag) ([]*Role, error) + GetGuildVanityURL func(ctx context.Context, guildID Snowflake, flags ...Flag) (*PartialInvite, error) + GetGuildVoiceRegions func(ctx context.Context, id Snowflake, flags ...Flag) ([]*VoiceRegion, error) + GetMember func(ctx context.Context, guildID, userID Snowflake, flags ...Flag) (*Member, error) + GetMemberPermissions func(ctx context.Context, guildID, userID Snowflake, flags ...Flag) (permissions PermissionBits, err error) + GetMembers func(ctx context.Context, guildID Snowflake, params *GetMembersParams, ...) ([]*Member, error) + KickMember func(ctx context.Context, guildID, userID Snowflake, reason string, flags ...Flag) error + PruneMembers func(ctx context.Context, id Snowflake, days int, reason string, flags ...Flag) error + RemoveGuildMemberRole func(ctx context.Context, guildID, userID, roleID Snowflake, flags ...Flag) error + SetCurrentUserNick func(ctx context.Context, id Snowflake, nick string, flags ...Flag) (newNick string, err error) + SyncGuildIntegration func(ctx context.Context, guildID, integrationID Snowflake, flags ...Flag) error + UnbanMember func(ctx context.Context, guildID, userID Snowflake, reason string, flags ...Flag) error + UpdateGuild func(ctx context.Context, id Snowflake, flags ...Flag) *updateGuildBuilder + UpdateGuildChannelPositions func(ctx context.Context, id Snowflake, params []UpdateGuildChannelPositionsParams, ...) error + UpdateGuildEmbed func(ctx context.Context, guildID Snowflake, flags ...Flag) *updateGuildEmbedBuilder + UpdateGuildIntegration func(ctx context.Context, guildID, integrationID Snowflake, ...) error + UpdateGuildMember func(ctx context.Context, guildID, userID Snowflake, flags ...Flag) *updateGuildMemberBuilder + UpdateGuildRole func(ctx context.Context, guildID, roleID Snowflake, flags ...Flag) (builder *updateGuildRoleBuilder) + UpdateGuildRolePositions func(ctx context.Context, guildID Snowflake, ...) ([]*Role, error) + type RESTInvite interface + DeleteInvite func(ctx context.Context, inviteCode string, flags ...Flag) (deleted *Invite, err error) + GetInvite func(ctx context.Context, inviteCode string, params URLQueryStringer, flags ...Flag) (*Invite, error) + type RESTMessage interface + CreateMessage func(ctx context.Context, channelID Snowflake, params *CreateMessageParams, ...) (ret *Message, err error) + DeleteMessage func(ctx context.Context, channelID, msgID Snowflake, flags ...Flag) (err error) + DeleteMessages func(ctx context.Context, chanID Snowflake, params *DeleteMessagesParams, ...) (err error) + GetMessage func(ctx context.Context, channelID, messageID Snowflake, flags ...Flag) (ret *Message, err error) + GetMessages func(ctx context.Context, channelID Snowflake, params *GetMessagesParams, ...) ([]*Message, error) + SetMsgContent func(ctx context.Context, chanID, msgID Snowflake, content string) (*Message, error) + SetMsgEmbed func(ctx context.Context, chanID, msgID Snowflake, embed *Embed) (*Message, error) + UpdateMessage func(ctx context.Context, chanID, msgID Snowflake, flags ...Flag) *updateMessageBuilder + type RESTMethods interface + type RESTReaction interface + CreateReaction func(ctx context.Context, channelID, messageID Snowflake, emoji interface{}, ...) (err error) + DeleteAllReactions func(ctx context.Context, channelID, messageID Snowflake, flags ...Flag) (err error) + DeleteOwnReaction func(ctx context.Context, channelID, messageID Snowflake, emoji interface{}, ...) (err error) + DeleteUserReaction func(ctx context.Context, channelID, messageID, userID Snowflake, emoji interface{}, ...) (err error) + GetReaction func(ctx context.Context, channelID, messageID Snowflake, emoji interface{}, ...) (reactors []*User, err error) + type RESTUser interface + CreateDM func(ctx context.Context, recipientID Snowflake, flags ...Flag) (ret *Channel, err error) + CreateGroupDM func(ctx context.Context, params *CreateGroupDMParams, flags ...Flag) (ret *Channel, err error) + GetCurrentUser func(ctx context.Context, flags ...Flag) (*User, error) + GetCurrentUserGuilds func(ctx context.Context, params *GetCurrentUserGuildsParams, flags ...Flag) (ret []*PartialGuild, err error) + GetUser func(ctx context.Context, id Snowflake, flags ...Flag) (*User, error) + GetUserConnections func(ctx context.Context, flags ...Flag) (ret []*UserConnection, err error) + GetUserDMs func(ctx context.Context, flags ...Flag) (ret []*Channel, err error) + LeaveGuild func(ctx context.Context, id Snowflake, flags ...Flag) (err error) + UpdateCurrentUser func(ctx context.Context, flags ...Flag) (builder *updateCurrentUserBuilder) + type RESTVoice interface + GetVoiceRegions func(ctx context.Context, flags ...Flag) ([]*VoiceRegion, error) + type RESTWebhook interface + CreateWebhook func(ctx context.Context, channelID Snowflake, params *CreateWebhookParams, ...) (ret *Webhook, err error) + DeleteWebhook func(ctx context.Context, webhookID Snowflake, flags ...Flag) error + DeleteWebhookWithToken func(ctx context.Context, id Snowflake, token string, flags ...Flag) error + ExecuteGitHubWebhook func(ctx context.Context, params *ExecuteWebhookParams, wait bool, flags ...Flag) error + ExecuteSlackWebhook func(ctx context.Context, params *ExecuteWebhookParams, wait bool, flags ...Flag) error + ExecuteWebhook func(ctx context.Context, params *ExecuteWebhookParams, wait bool, URLSuffix string, ...) error + GetChannelWebhooks func(ctx context.Context, channelID Snowflake, flags ...Flag) (ret []*Webhook, err error) + GetGuildWebhooks func(ctx context.Context, guildID Snowflake, flags ...Flag) (ret []*Webhook, err error) + GetWebhook func(ctx context.Context, id Snowflake, flags ...Flag) (ret *Webhook, err error) + GetWebhookWithToken func(ctx context.Context, id Snowflake, token string, flags ...Flag) (ret *Webhook, err error) + UpdateWebhook func(ctx context.Context, id Snowflake, flags ...Flag) (builder *updateWebhookBuilder) + UpdateWebhookWithToken func(ctx context.Context, id Snowflake, token string, flags ...Flag) (builder *updateWebhookBuilder) + type Reaction struct + Count uint + Emoji *PartialEmoji + Me bool + func (r *Reaction) CopyOverTo(other interface{}) (err error) + func (r *Reaction) DeepCopy() (copy interface{}) + func (r *Reaction) Reset() + type Ready struct + APIVersion int + Ctx context.Context + Guilds []*GuildUnavailable + SessionID string + ShardID uint + User *User + type ReadyHandler = func(s Session, h *Ready) + type RequestGuildMembersPayload struct + GuildIDs []Snowflake + Limit uint + Query string + UserIDs []Snowflake + type Reseter interface + Reset func() + type Resumed struct + Ctx context.Context + ShardID uint + type ResumedHandler = func(s Session, h *Resumed) + type Role struct + Color uint + Hoist bool + ID Snowflake + Managed bool + Mentionable bool + Name string + Permissions uint64 + Position int + func NewRole() *Role + func (r *Role) CopyOverTo(other interface{}) (err error) + func (r *Role) DeepCopy() (copy interface{}) + func (r *Role) Mention() string + func (r *Role) Reset() + func (r *Role) SetGuildID(id Snowflake) + func (r *Role) String() string + type Session interface + AddPermission func(permission PermissionBit) (updatedPermissions PermissionBits) + AvgHeartbeatLatency func() (duration time.Duration, err error) + DeleteFromDiscord func(ctx context.Context, obj discordDeleter, flags ...Flag) error + GetConnectedGuilds func() []Snowflake + GetGuilds func(ctx context.Context, params *GetCurrentUserGuildsParams, flags ...Flag) ([]*Guild, error) + GetPermissions func() (permissions PermissionBits) + HeartbeatLatencies func() (latencies map[uint]time.Duration, err error) + InviteURL func(ctx context.Context) (url string, err error) + KickVoiceParticipant func(ctx context.Context, guildID, userID Snowflake) error + Logger func() logger.Logger + Pool func() *pools + RESTBucketGrouping func() (group map[string][]string) + RESTRatelimitBuckets func() (group map[string][]string) + SendMsg func(ctx context.Context, channelID Snowflake, data ...interface{}) (*Message, error) + UpdateStatus func(s *UpdateStatusPayload) error + UpdateStatusString func(s string) error + type ShardConfig = gateway.ShardConfig + type SimpleHandler = func(Session) + type SimplestHandler = func() + type Snowflake = util.Snowflake + func GetSnowflake(v interface{}) (Snowflake, error) + func NewSnowflake(id uint64) Snowflake + func ParseSnowflakeString(v string) Snowflake + type SocketHandler interface + Disconnect func() error + On func(event string, inputs ...interface{}) + Suspend func() error + type SocketHandlerRegistrators interface + OnChannelCreate func([]Middleware, []HandlerChannelCreate, ...HandlerCtrl) + OnChannelDelete func([]Middleware, []HandlerChannelDelete, ...HandlerCtrl) + OnChannelPinsUpdate func([]Middleware, []HandlerChannelPinsUpdate, ...HandlerCtrl) + OnChannelUpdate func([]Middleware, []HandlerChannelUpdate, ...HandlerCtrl) + OnGuildBanAdd func([]Middleware, []HandlerGuildBanAdd, ...HandlerCtrl) + OnGuildBanRemove func([]Middleware, []HandlerGuildBanRemove, ...HandlerCtrl) + OnGuildCreate func([]Middleware, []HandlerGuildCreate, ...HandlerCtrl) + OnGuildDelete func([]Middleware, []HandlerGuildDelete, ...HandlerCtrl) + OnGuildEmojisUpdate func([]Middleware, []HandlerGuildEmojisUpdate, ...HandlerCtrl) + OnGuildIntegrationsUpdate func([]Middleware, []HandlerGuildIntegrationsUpdate, ...HandlerCtrl) + OnGuildMemberAdd func([]Middleware, []HandlerGuildMemberAdd, ...HandlerCtrl) + OnGuildMemberRemove func([]Middleware, []HandlerGuildMemberRemove, ...HandlerCtrl) + OnGuildMemberUpdate func([]Middleware, []HandlerGuildMemberUpdate, ...HandlerCtrl) + OnGuildMembersChunk func([]Middleware, []HandlerGuildMembersChunk, ...HandlerCtrl) + OnGuildRoleCreate func([]Middleware, []HandlerGuildRoleCreate, ...HandlerCtrl) + OnGuildRoleDelete func([]Middleware, []HandlerGuildRoleDelete, ...HandlerCtrl) + OnGuildRoleUpdate func([]Middleware, []HandlerGuildRoleUpdate, ...HandlerCtrl) + OnGuildUpdate func([]Middleware, []HandlerGuildUpdate, ...HandlerCtrl) + OnMessageCreate func([]Middleware, []HandlerMessageCreate, ...HandlerCtrl) + OnMessageDelete func([]Middleware, []HandlerMessageDelete, ...HandlerCtrl) + OnMessageDeleteBulk func([]Middleware, []HandlerMessageDeleteBulk, ...HandlerCtrl) + OnMessageReactionAdd func([]Middleware, []HandlerMessageReactionAdd, ...HandlerCtrl) + OnMessageReactionRemove func([]Middleware, []HandlerMessageReactionRemove, ...HandlerCtrl) + OnMessageReactionRemoveAll func([]Middleware, []HandlerMessageReactionRemoveAll, ...HandlerCtrl) + OnMessageUpdate func([]Middleware, []HandlerMessageUpdate, ...HandlerCtrl) + OnPresenceUpdate func([]Middleware, []HandlerPresenceUpdate, ...HandlerCtrl) + OnReady func([]Middleware, []HandlerReady, ...HandlerCtrl) + OnResumed func([]Middleware, []HandlerResumed, ...HandlerCtrl) + OnTypingStart func([]Middleware, []HandlerTypingStart, ...HandlerCtrl) + OnUserUpdate func([]Middleware, []HandlerUserUpdate, ...HandlerCtrl) + OnVoiceServerUpdate func([]Middleware, []HandlerVoiceServerUpdate, ...HandlerCtrl) + OnVoiceStateUpdate func([]Middleware, []HandlerVoiceStateUpdate, ...HandlerCtrl) + OnWebhooksUpdate func([]Middleware, []HandlerWebhooksUpdate, ...HandlerCtrl) + type Time struct + func (t *Time) UnmarshalJSON(data []byte) error + func (t Time) MarshalJSON() ([]byte, error) + func (t Time) String() string + type TypingStart struct + ChannelID Snowflake + Ctx context.Context + ShardID uint + TimestampUnix int + UserID Snowflake + type TypingStartHandler = func(s Session, h *TypingStart) + type URLQueryStringer interface + URLQueryString func() string + type UpdateChannelPermissionsParams struct + Allow PermissionBits + Deny PermissionBits + Type string + type UpdateGuildChannelPositionsParams struct + ID Snowflake + Position int + Reason string + type UpdateGuildIntegrationParams struct + EnableEmoticons bool + ExpireBehavior int + ExpireGracePeriod int + type UpdateGuildRolePositionsParams struct + ID Snowflake + Position int + Reason string + func NewUpdateGuildRolePositionsParams(rs []*Role) (p []UpdateGuildRolePositionsParams) + type UpdateStatusPayload struct + AFK bool + Game *Activity + Since *uint + Status string + type UpdateVoiceStatePayload struct + ChannelID Snowflake + GuildID Snowflake + SelfDeaf bool + SelfMute bool + type User struct + Avatar string + Bot bool + Discriminator Discriminator + Email string + ID Snowflake + MFAEnabled bool + PremiumType PremiumType + Token string + Username string + Verified bool + func NewUser() *User + func (u *User) AvatarURL(size int, preferGIF bool) (url string, err error) + func (u *User) CopyOverTo(other interface{}) (err error) + func (u *User) DeepCopy() (copy interface{}) + func (u *User) Mention() string + func (u *User) Reset() + func (u *User) SendMsg(ctx context.Context, session Session, message *Message) (channel *Channel, msg *Message, err error) + func (u *User) SendMsgString(ctx context.Context, session Session, content string) (channel *Channel, msg *Message, err error) + func (u *User) String() string + func (u *User) Tag() string + func (u *User) UnmarshalJSON(data []byte) (err error) + func (u *User) Valid() bool + type UserConnection struct + ID string + Integrations []*IntegrationAccount + Name string + Revoked bool + Type string + func (c *UserConnection) CopyOverTo(other interface{}) (err error) + func (c *UserConnection) DeepCopy() (copy interface{}) + type UserPresence struct + Game *Activity + GuildID Snowflake + Nick string + Roles []Snowflake + Status string + User *User + func NewUserPresence() *UserPresence + func (p *UserPresence) CopyOverTo(other interface{}) (err error) + func (p *UserPresence) DeepCopy() (copy interface{}) + func (p *UserPresence) String() string + type UserUpdate struct + Ctx context.Context + ShardID uint + User *User + type UserUpdateHandler = func(s Session, h *UserUpdate) + type VerificationLvl uint + const VerificationLvlHigh + const VerificationLvlLow + const VerificationLvlMedium + const VerificationLvlNone + const VerificationLvlVeryHigh + func (vl *VerificationLvl) High() bool + func (vl *VerificationLvl) Low() bool + func (vl *VerificationLvl) Medium() bool + func (vl *VerificationLvl) None() bool + func (vl *VerificationLvl) VeryHigh() bool + type VoiceConnection interface + Close func() error + MoveTo func(channelID Snowflake) error + SendDCA func(r io.Reader) error + SendOpusFrame func(data []byte) error + StartSpeaking func() error + StopSpeaking func() error + type VoiceHandler interface + VoiceConnect func(guildID, channelID Snowflake) (ret VoiceConnection, err error) + type VoiceRegion struct + Custom bool + Deprecated bool + ID string + Name string + Optimal bool + SampleHostname string + SamplePort uint + VIP bool + func (v *VoiceRegion) CopyOverTo(other interface{}) (err error) + func (v *VoiceRegion) DeepCopy() (copy interface{}) + func (v *VoiceRegion) Reset() + type VoiceServerUpdate struct + Ctx context.Context + Endpoint string + GuildID Snowflake + ShardID uint + Token string + type VoiceServerUpdateHandler = func(s Session, h *VoiceServerUpdate) + type VoiceState struct + ChannelID Snowflake + Deaf bool + GuildID Snowflake + Member *Member + Mute bool + SelfDeaf bool + SelfMute bool + SessionID string + Suppress bool + UserID Snowflake + func (v *VoiceState) CopyOverTo(other interface{}) (err error) + func (v *VoiceState) DeepCopy() (copy interface{}) + func (v *VoiceState) Reset() + type VoiceStateUpdate struct + Ctx context.Context + ShardID uint + type VoiceStateUpdateHandler = func(s Session, h *VoiceStateUpdate) + type Webhook struct + Avatar string + ChannelID Snowflake + GuildID Snowflake + ID Snowflake + Name string + Token string + User *User + func (w *Webhook) CopyOverTo(other interface{}) (err error) + func (w *Webhook) DeepCopy() (copy interface{}) + type WebhooksUpdate struct + ChannelID Snowflake + Ctx context.Context + GuildID Snowflake + ShardID uint + type WebhooksUpdateHandler = func(s Session, h *WebhooksUpdate)