Documentation ¶
Index ¶
- Constants
- Variables
- func ClickButton(gateway *Gateway, e *types.MessageEventData, interactionID string) bool
- func GenerateNonce() string
- func GenerateSessionID() string
- func GenerateSuperProperties(gateway *Gateway) string
- func GetSlashCommands(gateway *Gateway, guildID string) (types.ApplicationCommandIndex, error)
- func GetUserSlashCommands(gateway *Gateway) (types.ApplicationCommandIndex, error)
- func SendMessage(gateway *Gateway, channelID string, content string) bool
- func TimeSnowflake(dt time.Time, high bool) int64
- func UtcNow() time.Time
- type Gateway
- type Handlers
- type Selfbot
Constants ¶
View Source
const DiscordEpoch = 1420070400000
Variables ¶
View Source
var ( JS_FILE_REGEX = regexp.MustCompile(`<script src=\"(/assets/\d{4,5}\.[^\"]+\.js)\" defer></script>`) BUILD_INFO_REGEX = regexp.MustCompile(`Build Number: \"\).concat\(\"(\d+)\"`) )
Functions ¶
func ClickButton ¶
func ClickButton(gateway *Gateway, e *types.MessageEventData, interactionID string) bool
func GenerateNonce ¶
func GenerateNonce() string
func GenerateSessionID ¶
func GenerateSessionID() string
func GenerateSuperProperties ¶
func GetSlashCommands ¶
func GetSlashCommands(gateway *Gateway, guildID string) (types.ApplicationCommandIndex, error)
func GetUserSlashCommands ¶
func GetUserSlashCommands(gateway *Gateway) (types.ApplicationCommandIndex, error)
Types ¶
type Gateway ¶
type Handlers ¶
type Handlers struct { OnReady []func(data *types.ReadyEventData) OnMessageCreate []func(data *types.MessageEventData) OnMessageUpdate []func(data *types.MessageEventData) OnGuildMembersChunk []func(data *types.GuildMembersChunkEventData) OnReconnect []func() OnInvalidated []func() // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.