aboutsummaryrefslogtreecommitdiff
path: root/src/commands/info/color.ts
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-05-24 18:29:57 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-05-24 18:29:57 -0400
commit9f5d9da2a37ecfec412b149ec7dc385ab7b6a98c (patch)
tree4b95a06ff6991207ab8b8e93f0bca26e24a97f80 /src/commands/info/color.ts
parent6b8115ab1ec94d4330019fc7a93e094d9d64c48e (diff)
downloadtanzanite-9f5d9da2a37ecfec412b149ec7dc385ab7b6a98c.tar.gz
tanzanite-9f5d9da2a37ecfec412b149ec7dc385ab7b6a98c.tar.bz2
tanzanite-9f5d9da2a37ecfec412b149ec7dc385ab7b6a98c.zip
fix: breaking changes
Diffstat (limited to 'src/commands/info/color.ts')
-rw-r--r--src/commands/info/color.ts10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/commands/info/color.ts b/src/commands/info/color.ts
index cc4fcc3..a74c3f3 100644
--- a/src/commands/info/color.ts
+++ b/src/commands/info/color.ts
@@ -76,10 +76,12 @@ export default class ColorCommand extends BushCommand {
}
const embed = new EmbedBuilder()
- .addFields({ name: '» Hexadecimal', value: color.toHexString() })
- .addFields({ name: '» Decimal', value: `${parseInt(color.toHex(), 16)}` })
- .addFields({ name: '» HSL', value: this.removePrefixAndParenthesis(color.toHslString()) })
- .addFields({ name: '» RGB', value: this.removePrefixAndParenthesis(color.toRgbString()) })
+ .addFields([
+ { name: '» Hexadecimal', value: color.toHexString() },
+ { name: '» Decimal', value: `${parseInt(color.toHex(), 16)}` },
+ { name: '» HSL', value: this.removePrefixAndParenthesis(color.toHslString()) },
+ { name: '» RGB', value: this.removePrefixAndParenthesis(color.toRgbString()) }
+ ])
.setColor(parseInt(color.toHex(), 16));
return await message.util.reply({ embeds: [embed] });