channel

package
v0.0.0-...-82a33b0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL