aboutsummaryrefslogtreecommitdiff
path: root/src/commands/info/color.ts
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-01-25 23:47:40 -0500
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-01-25 23:47:40 -0500
commit840cca672d681c36f980a06fb79a4e2c01bd69ac (patch)
tree82c40a7fe3e1a2bc6367fed6e3d26b6c7dceb256 /src/commands/info/color.ts
parent6ca99336a416389dd2b0b8c4c6a7b2ef87bc9fef (diff)
downloadtanzanite-840cca672d681c36f980a06fb79a4e2c01bd69ac.tar.gz
tanzanite-840cca672d681c36f980a06fb79a4e2c01bd69ac.tar.bz2
tanzanite-840cca672d681c36f980a06fb79a4e2c01bd69ac.zip
I love breaking changes!!!!
Diffstat (limited to 'src/commands/info/color.ts')
-rw-r--r--src/commands/info/color.ts14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/commands/info/color.ts b/src/commands/info/color.ts
index d385c53..0e1be81 100644
--- a/src/commands/info/color.ts
+++ b/src/commands/info/color.ts
@@ -9,7 +9,7 @@ import {
type BushSlashMessage
} from '#lib';
import assert from 'assert';
-import { ApplicationCommandOptionType, MessageEmbed, Permissions, Role } from 'discord.js';
+import { ApplicationCommandOptionType, Embed, Permissions, Role } from 'discord.js';
import tinycolor from 'tinycolor2';
assert(tinycolor);
@@ -74,12 +74,12 @@ export default class ColorCommand extends BushCommand {
});
}
- const embed = new MessageEmbed()
- .addField('» Hexadecimal', color.toHexString())
- .addField('» Decimal', `${parseInt(color.toHex(), 16)}`)
- .addField('» HSL', this.removePrefixAndParenthesis(color.toHslString()))
- .addField('» RGB', this.removePrefixAndParenthesis(color.toRgbString()))
- .setColor(color.toHex() as `#${string}`);
+ const embed = new Embed()
+ .addField({ name: '» Hexadecimal', value: color.toHexString() })
+ .addField({ name: '» Decimal', value: `${parseInt(color.toHex(), 16)}` })
+ .addField({ name: '» HSL', value: this.removePrefixAndParenthesis(color.toHslString()) })
+ .addField({ name: '» RGB', value: this.removePrefixAndParenthesis(color.toRgbString()) })
+ .setColor(parseInt(color.toHex(), 16));
return await message.util.reply({ embeds: [embed] });
}