Skip to content

Commit

Permalink
fix(slash-command-permissions): missing await (discordjs#988)
Browse files Browse the repository at this point in the history
  • Loading branch information
almeidx authored Jan 4, 2022
1 parent 919c40d commit a23fa51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guide/interactions/slash-command-permissions.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Now you have successfully denied the user whose `id` you used access to this app
::: tip
If you want to update permissions for a global command instead, your `command` variable would be:
```js
const command = client.application?.commands.fetch('123456789012345678');
const command = await client.application?.commands.fetch('123456789012345678');
```
:::
Expand Down

0 comments on commit a23fa51

Please sign in to comment.