mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
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:
co-authored by
Skillz4Killz
parent
4aba5ff72f
commit
ec6b7459bd
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user