discord

package
v0.0.0-...-9b5ed8b Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetVoiceStatus

func GetVoiceStatus() bool

GetVoiceStatus update voice channel status

func UpdateVoiceStatus

func UpdateVoiceStatus(status bool)

UpdateVoiceStatus update voice channel status

func VoiceStatusSwitch

func VoiceStatusSwitch()

VoiceStatusSwitch switch on/off voice channel

Types

type Discord

type Discord interface {
	AddHandler(handler interface{})
	SendMessageToChannel(string, string) error
	CloseConnection() error
	OpenConnection() error
}

Discord interface

func NewSession

func NewSession(logger *log.Logger) (Discord, error)

NewSession new Discord session

Jump to

Keyboard shortcuts

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