Documentation
¶
Index ¶
- Variables
- func ConfigureSupportChannel(ctx context.Context, b *Bot, guilds ...snowflake.ID) error
- func GetSupportChannel(b *Bot, guildID *snowflake.ID) (snowflake.ID, error)
- func PostHelpMessage(b *Bot, c *snowflake.ID, data templates.HelpData, e *handler.CommandEvent) error
- type Bot
- type BotConfig
- type Config
- type LogConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SupportChannelName = "support-tickets" SupportChannelTopic = "Support tickets & suggestions" )
Support channel constants
Functions ¶
func ConfigureSupportChannel ¶
func GetSupportChannel ¶
GetSupportChannel retrieves the ID of the support channel with the specified name in the given guild. Returns the channel ID if found, otherwise returns 0 and an error if an issue occurs or the channel does not exist.
func PostHelpMessage ¶
func PostHelpMessage(b *Bot, c *snowflake.ID, data templates.HelpData, e *handler.CommandEvent) error
PostHelpMessage sends a message with the given content to a specified Discord channel using the provided bot instance.
Types ¶
type Bot ¶
type Config ¶
func LoadConfig ¶
Click to show internal directories.
Click to hide internal directories.