Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Discord ¶
type Discord struct { Session *discordgo.Session GuildID string IsInstanceActive bool CommandPrefix string LastChangeAvatarTime time.Time RateLimitDuration time.Duration }
func NewDiscord ¶
NewDiscord initializes a new Discord object with the given session and guild ID.
Parameters: - session: a pointer to a discordgo.Session - guildID: a string representing the guild ID Returns a pointer to a Discord object.
func (*Discord) Commands ¶
func (d *Discord) Commands(s *discordgo.Session, m *discordgo.MessageCreate)
Commands handles the incoming Discord commands.
Parameters:
s: the Discord session m: the incoming Discord message
Click to show internal directories.
Click to hide internal directories.