From c78e8c9800da0ef63a0fe1067768daf79f2c55a6 Mon Sep 17 00:00:00 2001 From: bsian03 Date: Mon, 17 Jan 2022 14:54:39 +0000 Subject: [PATCH] Snake case defaultPermission to payload --- lib/Client.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/Client.js b/lib/Client.js index 66988a4d4..c66d6898f 100644 --- a/lib/Client.js +++ b/lib/Client.js @@ -564,6 +564,7 @@ class Client extends EventEmitter { } } } + command.default_permission = command.defaultPermission; return this.requestHandler.request("POST", Endpoints.COMMANDS(this.application.id), true, command); } @@ -633,6 +634,7 @@ class Client extends EventEmitter { } } } + command.default_permission = command.defaultPermission; return this.requestHandler.request("POST", Endpoints.GUILD_COMMANDS(this.application.id, guildID), true, command); } @@ -1350,6 +1352,7 @@ class Client extends EventEmitter { } } } + command.default_permission = command.defaultPermission; return this.requestHandler.request("PATCH", Endpoints.COMMAND(this.application.id, commandID), true, command); } @@ -1442,6 +1445,7 @@ class Client extends EventEmitter { } } } + command.default_permission = command.defaultPermission; return this.requestHandler.request("PATCH", Endpoints.GUILD_COMMAND(this.application.id, guildID, commandID), true, command); }