Documentation
¶
Index ¶
- func BasePermissions(g *discordgo.Guild, m *discordgo.Member) int64
- func CheckAllPermissions(basePerms int64, permissions []int64) bool
- func CheckPermission(basePerms int64, permission int64) bool
- func IconURL(iconHash, staticIconURL, animatedIconURL, size string) string
- func MemberChannelPerms(basePerms int64, g *discordgo.Guild, m *discordgo.Member, c *discordgo.Channel) int64
- func Must(errs ...error)
- func Pointer[T any](v T) *T
- type ParsedWebhookUrl
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BasePermissions ¶
Computes the 'base permissions' of a member
func CheckAllPermissions ¶
Check if a permission list has all permissions
func CheckPermission ¶
Check if a permission int64 has a permission
Types ¶
type ParsedWebhookUrl ¶
func ParseWebhookURL ¶
func ParseWebhookURL(webhookURL string) (pwUrl *ParsedWebhookUrl, err error)
ParseURL parses the given Discord webhook URL.
Directories
¶
Path | Synopsis |
---|---|
Package mapofmu provides locking per-key.
|
Package mapofmu provides locking per-key. |
Concurrent safe value wrapper
|
Concurrent safe value wrapper |
Sourced from https://www.reddit.com/r/golang/comments/twucb0/is_there_already_a_generic_threadsafe_map/
|
Sourced from https://www.reddit.com/r/golang/comments/twucb0/is_there_already_a_generic_threadsafe_map/ |
Click to show internal directories.
Click to hide internal directories.