sern-handler / handler

Create your dream Discord bot!
https://sern.dev
MIT License
38 stars 9 forks source link

fix: crashing when slash command is used as text command #349

Closed jacoobes closed 9 months ago

jacoobes commented 9 months ago

commandModules with CommandType.Slash will crash if a user uses a text command of that same name

ie:

commandModule({
  name: 'add'
  type: CommandType.Slash
})
>> input = !add 

>> crash