Documentation ¶
Index ¶
- func HasElevatedPermissions(s *discordgo.Session, userID string, guildID string) bool
- func HasPrivilegedPermissions(m *discordgo.Member) bool
- func MemberIsAdmin(s *discordgo.Session, guildID string, mem *discordgo.Member, permission int64) (bool, error)
- func SendServers(guildCountStr string, s *discordgo.Session)
- type Permission
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasElevatedPermissions ¶
HasElevatedPermissions checks if a user has admin permissions or is a privileged role
func HasPrivilegedPermissions ¶
HasPrivilegedPermissions checks if a user has a privileged role in a given server
func MemberIsAdmin ¶
func MemberIsAdmin(s *discordgo.Session, guildID string, mem *discordgo.Member, permission int64) (bool, error)
MemberIsAdmin checks if member has admin permissions
func SendServers ¶
SendServers sends number of servers via post request
Types ¶
Click to show internal directories.
Click to hide internal directories.