Skip to content

Commit

Permalink
fix(Guild#editCommandPermissions): fix alias typo (#1350)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris8889 authored and abalabahaha committed Jun 5, 2022
1 parent d0099b1 commit b8dcd62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/structures/Guild.js
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ class Guild extends Base {
* @returns {Promise<Object>} Resolves with a [GuildApplicationCommandPermissions](https://discord.com/developers/docs/interactions/application-commands#application-command-permissions-object-guild-application-command-permissions-structure) object.
*/
editCommandPermissions(commandID, permissions) {
return this._client.getCommandPermissions.call(this._client, this.id, commandID, permissions);
return this._client.editCommandPermissions.call(this._client, this.id, commandID, permissions);
}

/**
Expand Down

0 comments on commit b8dcd62

Please sign in to comment.