Documentation
¶
Index ¶
- func ChannelExists(connection *discordgo.Session, guildID string, channelID string) (bool, error)
- func HasPermission(connection *discordgo.Session, userID string, channelID string, ...) (bool, error)
- func HasPermissionOr(connection *discordgo.Session, userID string, channelID string, ...) (bool, error)
- func IsBotHigher(connection *discordgo.Session, guildID string, userID string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChannelExists ¶
ChannelExists checks whether a channel exists in a guild using the channel ID.
func HasPermission ¶
func HasPermission(connection *discordgo.Session, userID string, channelID string, permissions ...int) (bool, error)
HasPermission is a helper function to check whether a user has the required permissions.
func HasPermissionOr ¶
func HasPermissionOr(connection *discordgo.Session, userID string, channelID string, permissions ...int) (bool, error)
HasPermissionOr is a helper function to check whether a user has a required permission. This performs the same checks as HasPermission but is an OR function rather than AND
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.