Skip to content

Commit

Permalink
fxi bug
Browse files Browse the repository at this point in the history
  • Loading branch information
SpenserCai committed Sep 22, 2023
1 parent 486ddfa commit 1dd15ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dbot/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @Date: 2023-08-16 22:02:04
* @version:
* @LastEditors: SpenserCai
* @LastEditTime: 2023-09-22 12:17:40
* @LastEditTime: 2023-09-22 14:20:44
* @Description: file content
*/
package dbot
Expand All @@ -21,7 +21,7 @@ func (dbot *DiscordBot) Ready(s *discordgo.Session, event *discordgo.Ready) {

func (dbot *DiscordBot) InteractionCreate(s *discordgo.Session, i *discordgo.InteractionCreate) {
switch i.Type {
case discordgo.InteractionApplicationCommand:
case discordgo.InteractionApplicationCommand, discordgo.InteractionApplicationCommandAutocomplete:
if h, ok := dbot.SlashHandlerMap[i.ApplicationCommandData().Name]; ok {
if dbot.CheckPermission(i.ApplicationCommandData().Name, s, i) {
h(s, i)
Expand Down

0 comments on commit 1dd15ac

Please sign in to comment.