mute

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2020 License: ISC Imports: 5 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(store state.Store, 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.SettingsChannelOverride

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.UserGuildSettings

Jump to

Keyboard shortcuts

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