Skip to content

Commit

Permalink
fix(creating-your-bot): typo (discordjs#945)
Browse files Browse the repository at this point in the history
* interation -> interaction
  • Loading branch information
Auroratide authored Nov 8, 2021
1 parent ffe0920 commit 7558035
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guide/creating-your-bot/creating-commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ You only need to run `node deploy-commands.js` once. You should only run it agai

Once you've registered your commands, you can listen for interactions via <DocsLink path="class/Client?scrollTo=e-interactionCreate" /> in your `index.js` file.

You should first check if an interation is a command via <DocsLink path="class/Interaction?scrollTo=isCommand" type="method">`.isCommand()`</DocsLink>, and then check the <DocsLink path="class/CommandInteraction?scrollTo=commandName">`.commandName`</DocsLink> property to know which command it is. You can respond to interactions with <DocsLink path="class/CommandInteraction?scrollTo=reply">`.reply()`</DocsLink>.
You should first check if an interaction is a command via <DocsLink path="class/Interaction?scrollTo=isCommand" type="method">`.isCommand()`</DocsLink>, and then check the <DocsLink path="class/CommandInteraction?scrollTo=commandName">`.commandName`</DocsLink> property to know which command it is. You can respond to interactions with <DocsLink path="class/CommandInteraction?scrollTo=reply">`.reply()`</DocsLink>.

```js {5-17}
client.once('ready', () => {
Expand Down

0 comments on commit 7558035

Please sign in to comment.