discordUtils

package
v0.0.0-...-32366e0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiscordSessionInit

func DiscordSessionInit(discordBotToken string) (*discordgo.Session, error)

func ListChannels

func ListChannels(s *discordgo.Session, guild string)

Given a discord bot, and a guild (aka a discord server), this function prints a list of channels

func SendMessage

func SendMessage(session *discordgo.Session, msg string, channel string) error

Given a discord bot, a message and a channelId, this function has the Bot send a message to that channel if it exists

Types

This section is empty.

Jump to

Keyboard shortcuts

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