fix: Invalid HTTP method in upserting commands. (#2448)

* fix: Export of `ApplicationCommandOptionChoice`.

* fix: Invalid HTTP method for upserting application commands.

* fmt: Run Deno formatter.

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
This commit is contained in:
Dorian Oszczęda
2022-09-09 19:43:32 -05:00
committed by GitHub
co-authored by Skillz4Killz
parent 4aba5ff72f
commit ec6b7459bd
8 changed files with 34 additions and 34 deletions
+4 -4
View File
@@ -89,10 +89,10 @@ export class Embeds extends Array<Embed> {
setColor(color: string) {
this.getLastEmbed().color = color.toLowerCase() === `random`
? // Random color
Math.floor(Math.random() * (0xffffff + 1))
: // Convert the hex to a acceptable color for discord
parseInt(color.replace("#", ""), 16);
// Random color
? Math.floor(Math.random() * (0xffffff + 1))
// Convert the hex to a acceptable color for discord
: parseInt(color.replace("#", ""), 16);
return this;
}