Documentation ¶
Index ¶
Constants ¶
View Source
const (
IdentifyMutexRootName = "/gateway/identify/"
)
View Source
const LogInterval = 10 * time.Minute
Variables ¶
View Source
var AllIntents = Intents{ IntentGuilds, IntentGuildMembers, IntentGuildBans, IntentGuildEmojis, IntentGuildIntegrations, IntentGuildWebhooks, IntentGuildInvites, IntentGuildVoiceStates, IntentGuildPresences, IntentGuildMessages, IntentGuildMessageReactions, IntentGuildMessageTyping, IntentDirectMessages, IntentDirectMessageReactions, IntentDirectMessageTyping, IntentMessageContent, }
View Source
var DefaultIntents = Intents{ IntentGuilds, IntentGuildMembers, IntentGuildBans, IntentGuildEmojis, IntentGuildIntegrations, IntentGuildWebhooks, IntentGuildInvites, IntentGuildVoiceStates, IntentGuildMessages, IntentGuildMessageReactions, IntentDirectMessages, IntentDirectMessageReactions, IntentMessageContent, }
Functions ¶
This section is empty.
Types ¶
type Intent ¶
type Intent uint
const ( IntentGuilds Intent = iota IntentGuildMembers IntentGuildBans IntentGuildEmojis IntentGuildIntegrations IntentGuildWebhooks IntentGuildInvites IntentGuildVoiceStates IntentGuildPresences IntentGuildMessages IntentGuildMessageReactions IntentGuildMessageTyping IntentDirectMessages IntentDirectMessageReactions IntentDirectMessageTyping IntentMessageContent )
type RequestGuildMembers ¶
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
func NewSession ¶
func NewSession(cfg *SessionConfig) (*Session, error)
func (*Session) GatewayURL ¶
func (*Session) RequestGuildMembers ¶
type SessionConfig ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.