Documentation ¶
Overview ¶
Package mute implements a channel/guild muted state. It automatically updates.
Index ¶
- type State
- func (m *State) Category(channelID discord.ChannelID) bool
- func (m *State) Channel(channelID discord.ChannelID) bool
- func (m *State) ChannelOverrides(channelID discord.ChannelID) gateway.UserChannelOverride
- func (m *State) Guild(guildID discord.GuildID, everyone bool) bool
- func (m *State) GuildSettings(guildID discord.GuildID) gateway.UserGuildSetting
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type State ¶
type State struct {
// contains filtered or unexported fields
}
State implements a queryable channel and guild mute state.
func NewState ¶
func NewState(cab store.Cabinet, r handlerrepo.AddHandler) *State
func (*State) ChannelOverrides ¶
func (m *State) ChannelOverrides(channelID discord.ChannelID) gateway.UserChannelOverride
func (*State) Guild ¶
Guild returns whether or not the ping should mention. It works with @everyone if everyone is true.
func (*State) GuildSettings ¶
func (m *State) GuildSettings(guildID discord.GuildID) gateway.UserGuildSetting
Click to show internal directories.
Click to hide internal directories.