aboutsummaryrefslogtreecommitdiff
path: root/src/commands/dev/eval.ts
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-07-06 20:28:04 +0200
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-07-06 20:28:04 +0200
commit22b3a8af49dc16bf5d8f9c3ce48b4770505ea33b (patch)
treeab7f68cb9168d2b06ba144b48311370059cf5fac /src/commands/dev/eval.ts
parent544f94704c9dd37913de11eab67cd594d17fcd87 (diff)
downloadtanzanite-22b3a8af49dc16bf5d8f9c3ce48b4770505ea33b.tar.gz
tanzanite-22b3a8af49dc16bf5d8f9c3ce48b4770505ea33b.tar.bz2
tanzanite-22b3a8af49dc16bf5d8f9c3ce48b4770505ea33b.zip
remove array from add*(...)
Diffstat (limited to 'src/commands/dev/eval.ts')
-rw-r--r--src/commands/dev/eval.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/commands/dev/eval.ts b/src/commands/dev/eval.ts
index 2be2963..ab7787d 100644
--- a/src/commands/dev/eval.ts
+++ b/src/commands/dev/eval.ts
@@ -262,8 +262,8 @@ export default class EvalCommand extends BushCommand {
embed.setTimestamp();
- if (inputTS) embed.addFields([{ name: ':inbox_tray: Input (typescript)', value: inputTS }]);
- embed.addFields([{ name: `:inbox_tray: Input${inputTS ? ' (transpiled javascript)' : ''}`, value: inputJS }]);
+ if (inputTS) embed.addFields({ name: ':inbox_tray: Input (typescript)', value: inputTS });
+ embed.addFields({ name: `:inbox_tray: Input${inputTS ? ' (transpiled javascript)' : ''}`, value: inputJS });
const output = await this.codeblock(rawResult, 'js', {
depth: selDepth ?? 0,
@@ -279,10 +279,10 @@ export default class EvalCommand extends BushCommand {
embed
.setTitle(`${emojis[err ? 'errorFull' : 'successFull']} ${err ? 'Uns' : 'S'}uccessfully Evaluated Expression`)
.setColor(colors[err ? 'error' : 'success'])
- .addFields([{ name: `:outbox_tray: ${err ? 'Error' : 'Output'}`, value: output }]);
+ .addFields({ name: `:outbox_tray: ${err ? 'Error' : 'Output'}`, value: output });
- if (!err && methods) embed.addFields([{ name: ':wrench: Methods', value: methods }]);
- if (!err && proto) embed.addFields([{ name: ':gear: Proto', value: proto }]);
+ if (!err && methods) embed.addFields({ name: ':wrench: Methods', value: methods });
+ if (!err && proto) embed.addFields({ name: ':gear: Proto', value: proto });
if (!silent || message.util.isSlashMessage(message)) {
await message.util.reply({ content: null, embeds: [embed] });