discord

package
v0.0.0-...-fab16b2 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BotID string

BotID is set by InitDiscordSession for subsequent use in reactions dispatcher

Functions

func CloseDiscordSession

func CloseDiscordSession()

CloseDiscordSession closes Discord Gateway websocket, to be used on exit

func InitDiscordSession

func InitDiscordSession(token string, qLength int, waitMs string) error

InitDiscordSession creates a new Discord session using the provided login information.

func JoinVoice

func JoinVoice(gID, cID string)

JoinVoice makes the bot join a voice channel with the supplied ID

func LeaveVoice

func LeaveVoice()

LeaveVoice makes the bot leave the voice channel

func PostMessage

func PostMessage(c string, m string)

PostMessage queues a message for posting via Discord API, takes channelID and message

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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