diff options
| author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-12-29 16:17:48 -0500 |
|---|---|---|
| committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-12-29 16:17:48 -0500 |
| commit | 4cebaca70939b87c78537c5c3cd099e29e2e4e04 (patch) | |
| tree | 3cac2d6948b8398cd1e6cbc4fb040bf4f635a18d /src/commands/moulberry-bush | |
| parent | fbafd023546315541c12c068b8125ded2b84b733 (diff) | |
| download | tanzanite-4cebaca70939b87c78537c5c3cd099e29e2e4e04.tar.gz tanzanite-4cebaca70939b87c78537c5c3cd099e29e2e4e04.tar.bz2 tanzanite-4cebaca70939b87c78537c5c3cd099e29e2e4e04.zip | |
use new setFooter overload
Diffstat (limited to 'src/commands/moulberry-bush')
| -rw-r--r-- | src/commands/moulberry-bush/rule.ts | 8 | ||||
| -rw-r--r-- | src/commands/moulberry-bush/serverStatus.ts | 2 |
2 files changed, 7 insertions, 3 deletions
diff --git a/src/commands/moulberry-bush/rule.ts b/src/commands/moulberry-bush/rule.ts index cc59db5..ab2632c 100644 --- a/src/commands/moulberry-bush/rule.ts +++ b/src/commands/moulberry-bush/rule.ts @@ -1,4 +1,4 @@ -import { AllowedMentions, BushCommand, OptionalArgType, type BushMessage } from '#lib'; +import { AllowedMentions, BushCommand, type BushMessage, type OptionalArgType } from '#lib'; import { MessageEmbed } from 'discord.js'; const rules = [ @@ -50,6 +50,7 @@ const rules = [ 'If there are loopholes in our rules, the staff team may moderate based on what they deem appropriate. The staff team holds final discretion.' } ]; + export default class RuleCommand extends BushCommand { public constructor() { super('rule', { @@ -96,7 +97,10 @@ export default class RuleCommand extends BushCommand { ) { const rulesEmbed = new MessageEmbed() .setColor('#ef3929') - .setFooter(`Triggered by ${message.author.tag}`, message.author.avatarURL({ dynamic: true }) ?? undefined) + .setFooter({ + text: `Triggered by ${message.author.tag}`, + iconURL: message.author.avatarURL({ dynamic: true }) ?? undefined + }) .setTimestamp(); if (rule != null && (rule > 12 || rule < 1)) { diff --git a/src/commands/moulberry-bush/serverStatus.ts b/src/commands/moulberry-bush/serverStatus.ts index ac37684..790ac09 100644 --- a/src/commands/moulberry-bush/serverStatus.ts +++ b/src/commands/moulberry-bush/serverStatus.ts @@ -21,7 +21,7 @@ export default class ServerStatusCommand extends BushCommand { .setTitle('Server status') .setDescription(`Checking server:\n${util.emojis.loading}`) .setColor(util.colors.default) - .setFooter('Checking https://moulberry.codes/lowestbin.json'); + .setFooter({ text: 'Checking https://moulberry.codes/lowestbin.json' }); await message.util.reply({ embeds: [msgEmbed] }); let main; try { |
