aboutsummaryrefslogtreecommitdiff
path: root/src/commands/dev
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-12-29 16:17:48 -0500
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-12-29 16:17:48 -0500
commit4cebaca70939b87c78537c5c3cd099e29e2e4e04 (patch)
tree3cac2d6948b8398cd1e6cbc4fb040bf4f635a18d /src/commands/dev
parentfbafd023546315541c12c068b8125ded2b84b733 (diff)
downloadtanzanite-4cebaca70939b87c78537c5c3cd099e29e2e4e04.tar.gz
tanzanite-4cebaca70939b87c78537c5c3cd099e29e2e4e04.tar.bz2
tanzanite-4cebaca70939b87c78537c5c3cd099e29e2e4e04.zip
use new setFooter overload
Diffstat (limited to 'src/commands/dev')
-rw-r--r--src/commands/dev/eval.ts6
-rw-r--r--src/commands/dev/javascript.ts6
-rw-r--r--src/commands/dev/sh.ts2
-rw-r--r--src/commands/dev/test.ts2
4 files changed, 10 insertions, 6 deletions
diff --git a/src/commands/dev/eval.ts b/src/commands/dev/eval.ts
index f97f00d..ac114ea 100644
--- a/src/commands/dev/eval.ts
+++ b/src/commands/dev/eval.ts
@@ -1,4 +1,4 @@
-import { ArgType, BushCommand, type BushMessage, type BushSlashMessage } from '#lib';
+import { BushCommand, type ArgType, type BushMessage, type BushSlashMessage } from '#lib';
import { exec } from 'child_process';
import { MessageEmbed as _MessageEmbed } from 'discord.js';
import ts from 'typescript';
@@ -219,7 +219,9 @@ export default class EvalCommand extends BushCommand {
embed.addField('📤 Error', await util.inspectCleanRedactCodeblock(e, 'js'));
}
- embed.setTimestamp().setFooter(message.author.tag, message.author.displayAvatarURL({ dynamic: true }) ?? undefined);
+ embed
+ .setTimestamp()
+ .setFooter({ text: message.author.tag, iconURL: message.author.displayAvatarURL({ dynamic: true }) ?? undefined });
if (!args.silent || message.util.isSlashMessage(message)) {
await message.util.reply({ embeds: [embed] });
diff --git a/src/commands/dev/javascript.ts b/src/commands/dev/javascript.ts
index 2a6a87b..a5f90cb 100644
--- a/src/commands/dev/javascript.ts
+++ b/src/commands/dev/javascript.ts
@@ -1,4 +1,4 @@
-import { ArgType, BushCommand, type BushMessage, type BushSlashMessage } from '#lib';
+import { BushCommand, type ArgType, type BushMessage, type BushSlashMessage } from '#lib';
import { MessageEmbed } from 'discord.js';
import { VM } from 'vm2';
@@ -83,7 +83,9 @@ export default class JavascriptCommand extends BushCommand {
embed.addField('📤 Error', await util.inspectCleanRedactCodeblock(e, 'js'));
}
- embed.setTimestamp().setFooter(message.author.tag, message.author.displayAvatarURL({ dynamic: true }) ?? undefined);
+ embed
+ .setTimestamp()
+ .setFooter({ text: message.author.tag, iconURL: message.author.displayAvatarURL({ dynamic: true }) ?? undefined });
await message.util.reply({ embeds: [embed] });
}
diff --git a/src/commands/dev/sh.ts b/src/commands/dev/sh.ts
index 5ef72b1..e6398b6 100644
--- a/src/commands/dev/sh.ts
+++ b/src/commands/dev/sh.ts
@@ -44,7 +44,7 @@ export default class ShCommand extends BushCommand {
const embed = new MessageEmbed()
.setColor(util.colors.gray)
- .setFooter(message.author.tag, message.author.avatarURL({ dynamic: true }) ?? undefined)
+ .setFooter({ text: message.author.tag, iconURL: message.author.avatarURL({ dynamic: true }) ?? undefined })
.setTimestamp()
.setTitle('Shell Command')
.addField('📥 Input', await util.codeblock(input, 1024, 'sh', true))
diff --git a/src/commands/dev/test.ts b/src/commands/dev/test.ts
index f3ac627..247ae20 100644
--- a/src/commands/dev/test.ts
+++ b/src/commands/dev/test.ts
@@ -62,7 +62,7 @@ export default class TestCommand extends BushCommand {
.setAuthor({ name: 'Author', iconURL: 'https://www.w3schools.com/w3css/img_snowtops.jpg', url: 'https://google.com/' })
.setColor(message.member?.displayColor ?? util.colors.default)
.setDescription('Description')
- .setFooter('Footer', message.author.avatarURL() ?? undefined)
+ .setFooter({ text: 'Footer', iconURL: message.author.avatarURL() ?? undefined })
.setURL('https://duckduckgo.com/')
.setTimestamp()
.setImage('https://media.sproutsocial.com/uploads/2017/02/10x-featured-social-media-image-size.png')