underctrl-io / commandkit

Only focus on what matters - Let CommandKit handle your commands and events in your Discord.js projects!
https://commandkit.js.org
MIT License
91 stars 11 forks source link

Remove outdated documentation from command-file-setup.mdx #33

Closed xcfio closed 9 months ago

xcfio commented 10 months ago

Change

Remove outdated documentation from command-file-setup.mdx

netlify[bot] commented 10 months ago

Deploy Preview for commandkit ready!

Name Link
Latest commit 0914d5251b62be72ee14c83d4f9ef7a5dff5081f
Latest deploy log https://app.netlify.com/sites/commandkit/deploys/657563ba59bef40008a80180
Deploy Preview https://deploy-preview-33--commandkit.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

xcfio commented 10 months ago

The if statement in this case is redundant really. Based on the structure of the command data, interaction.targetMessage will always have a value. I think it would be a cleaner representation without the if statement.

Yeah. But TypeScript gives warning if I don't use it image