Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mute ¶
type Mute struct {
// contains filtered or unexported fields
}
Mute is used for muting and unmuting a channel on a server
func NewChannelMute ¶
func NewChannelMute(s *discordgo.Session, i *discordgo.InteractionCreate) *Mute
NewChannelMute creates a channelMute for the given session and interaction.
func (*Mute) MuteChannel ¶
func (c *Mute) MuteChannel()
MuteChannel sets the channel so that `@everyone` can't send messages to the channel.
func (*Mute) UnmuteChannel ¶
func (c *Mute) UnmuteChannel()
UnmuteChannel resets the permissions for `@everyone` to what they were before the channel was muted.
Click to show internal directories.
Click to hide internal directories.