aboutsummaryrefslogtreecommitdiff
path: root/src/commands/utilities/calculator.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/utilities/calculator.ts')
-rw-r--r--src/commands/utilities/calculator.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commands/utilities/calculator.ts b/src/commands/utilities/calculator.ts
index 75dc63f..1a9d352 100644
--- a/src/commands/utilities/calculator.ts
+++ b/src/commands/utilities/calculator.ts
@@ -1,6 +1,6 @@
import { AllowedMentions, BushCommand, type BushMessage, type BushSlashMessage } from '#lib';
import assert from 'assert';
-import { ApplicationCommandOptionType, Embed } from 'discord.js';
+import { ApplicationCommandOptionType, EmbedBuilder } from 'discord.js';
import { evaluate } from 'mathjs';
assert(evaluate);
@@ -31,7 +31,7 @@ export default class CalculatorCommand extends BushCommand {
}
public override async exec(message: BushMessage | BushSlashMessage, args: { expression: string }) {
- const decodedEmbed = new Embed().addFields({
+ const decodedEmbed = new EmbedBuilder().addFields({
name: '📥 Input',
value: await util.inspectCleanRedactCodeblock(args.expression, 'mma')
});