Documentation ¶
Index ¶
- type AccessManager
- func (m *AccessManager) CheckChannelAccessForRequest(c *fiber.Ctx, channelID string) error
- func (m *AccessManager) CheckGuildAccessForRequest(c *fiber.Ctx, guildID string) error
- func (m *AccessManager) ComputeBotPermissionsForChannel(channelID string) (int64, error)
- func (m *AccessManager) ComputeUserPermissionsForChannel(userID string, channelID string) (int64, error)
- func (m *AccessManager) GetChannelAccessForUser(userID string, channelID string) (ChannelAccess, error)
- func (m *AccessManager) GetGuildAccessForUser(userID string, guildID string) (GuildAccess, error)
- func (m *AccessManager) GetGuildMember(guildID string, userID string) (*discordgo.Member, error)
- type ChannelAccess
- type GuildAccess
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessManager ¶
type AccessManager struct {
// contains filtered or unexported fields
}
func (*AccessManager) CheckChannelAccessForRequest ¶
func (m *AccessManager) CheckChannelAccessForRequest(c *fiber.Ctx, channelID string) error
func (*AccessManager) CheckGuildAccessForRequest ¶
func (m *AccessManager) CheckGuildAccessForRequest(c *fiber.Ctx, guildID string) error
func (*AccessManager) ComputeBotPermissionsForChannel ¶
func (m *AccessManager) ComputeBotPermissionsForChannel(channelID string) (int64, error)
func (*AccessManager) ComputeUserPermissionsForChannel ¶
func (m *AccessManager) ComputeUserPermissionsForChannel(userID string, channelID string) (int64, error)
func (*AccessManager) GetChannelAccessForUser ¶
func (m *AccessManager) GetChannelAccessForUser(userID string, channelID string) (ChannelAccess, error)
func (*AccessManager) GetGuildAccessForUser ¶
func (m *AccessManager) GetGuildAccessForUser(userID string, guildID string) (GuildAccess, error)
func (*AccessManager) GetGuildMember ¶
type ChannelAccess ¶
func (*ChannelAccess) BotAccess ¶
func (c *ChannelAccess) BotAccess() bool
func (*ChannelAccess) UserAccess ¶
func (c *ChannelAccess) UserAccess() bool
type GuildAccess ¶
Click to show internal directories.
Click to hide internal directories.