Fix Component Button Crash When Used With Commands #6
@ -58,7 +58,7 @@ func (discord *Discord) Run() error {
|
||||
|
||||
// Register command handler
|
||||
discord.session.AddHandler(func(session *discordgo.Session, i *discordgo.InteractionCreate) {
|
||||
if i.GuildID != discord.guildID {
|
||||
if i.GuildID != discord.guildID || i.Interaction.Type != discordgo.InteractionApplicationCommand {
|
||||
return
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user