Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoGuildID = errors.New("no guild ID set under viper discord.guildID or env DISCORD_GUILD_ID")
ErrNoGuildID is the error returned when no guild ID is set.
Functions ¶
Types ¶
type Client ¶
Client is a wrapper around the discordgo.Session type. It is used to simplify the usage of the discordgo.Session type.
func DefaultClient ¶
func DefaultClient() *Client
DefaultClient returns the global Discord client used by app who don't want to create their own client. If no client has been set, it will create a new one.
func NewClient ¶
NewClient creates a new Discord client. It will automatically login to Discord using the Discord token specified in the environment variable
Click to show internal directories.
Click to hide internal directories.