mute

package
v2.0.0-...-9d96e6b Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2021 License: ISC Imports: 6 Imported by: 0

Documentation

Overview

Package mute implements a channel/guild muted state. It automatically updates.

Index

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) Category

func (m *State) Category(channelID discord.ChannelID) bool

CategoryMuted returns whether or not the channel's category is muted.

func (*State) Channel

func (m *State) Channel(channelID discord.ChannelID) bool

Channel returns whether or not the channel is muted.

func (*State) ChannelOverrides

func (m *State) ChannelOverrides(channelID discord.ChannelID) gateway.UserChannelOverride

func (*State) Guild

func (m *State) Guild(guildID discord.GuildID, everyone bool) bool

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

Jump to

Keyboard shortcuts

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