Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Oops
Browse files Browse the repository at this point in the history
JustCat80 committed Sep 23, 2021
1 parent 7945ee8 commit 15fb74d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Client.js
Original file line number Diff line number Diff line change
@@ -355,7 +355,7 @@ class Client extends EventEmitter {
throw new Error("You must provide an id of the guild whose permissions you want to edit.");
}

return this.requestHandler.request("PUT", Endpoints.GUILD_COMMAND_PERMISSIONS(this.application.id, guildID), true, {permissions});
return this.requestHandler.request("PUT", Endpoints.GUILD_COMMAND_PERMISSIONS(this.application.id, guildID), true, permissions);
}

/**
@@ -1230,7 +1230,7 @@ class Client extends EventEmitter {
if(!commandID) {
throw new Error("You must provide an id of the command whose permissions you want to edit.");
}
return this.requestHandler.request("PUT", Endpoints.COMMAND_PERMISSIONS(this.application.id, guildID, commandID), true, permissions);
return this.requestHandler.request("PUT", Endpoints.COMMAND_PERMISSIONS(this.application.id, guildID, commandID), true, {permissions});
}

/**

0 comments on commit 15fb74d

Please sign in to comment.