NamVr / DiscordBot-Template

A boilerplate / template for discord.js v14 bots with 100% coverage of Discord API, command handler, error handler based on https://discordjs.guide/
https://djs.docs.namanvrati.me/
Apache License 2.0
316 stars 74 forks source link

Interaction event updates #18

Closed fieztazica closed 2 years ago

fieztazica commented 2 years ago

Hope these might help!

NamVr commented 2 years ago

@fiezt1492 Please fix these 2 errors asap & I'll be happy to merge them into #17!

fieztazica commented 2 years ago

./events/contextInteraction.js has 2 errors.

  • 1 documentation error:
- import('discord.js').ContextMenuInteraction
+ import('discord.js').ContextMenuCommandInteraction
  • 1 critical error
(alias) enum ApplicationCommandType
import ApplicationCommandType
[https://discord.com/developers/docs/interactions/application-commands#application-command-object-application-command-types](vscode-file://vscode-app/usr/share/code/resources/app/out/vs/code/electron-browser/workbench/workbench.html)

This condition will always return 'true' since the types 'ApplicationCommandType.Message' and 'ApplicationCommandType.User' have no overlap.ts(2367)

I fixed it. So sorry :P

NamVr commented 2 years ago

@fiezt1492 Please fix asap.

fieztazica commented 2 years ago

@fiezt1492 Please fix asap.

Sorry I've not check document. Is everything okay now?

NamVr commented 2 years ago

Thank you @fiezt1492