Skip to content

Commit

Permalink
fix(interactions): Snake case defaultPermissions in payload (abalabah…
Browse files Browse the repository at this point in the history
  • Loading branch information
bsian03 authored Feb 11, 2022
1 parent 9a55be5 commit 90fad3a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down Expand Up @@ -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);
}

Expand Down Expand Up @@ -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);
}

Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit 90fad3a

Please sign in to comment.