diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-11-22 19:14:44 -0500 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-11-22 19:14:44 -0500 |
commit | e2807842b0cd62dcc00db1dd63c59daad15803f7 (patch) | |
tree | 41ee6a71f243629a8c44497b0b48c28df62eeddc /src/commands | |
parent | 717b924d6c4727c75639f4d495e8521f7eae9849 (diff) | |
download | tanzanite-e2807842b0cd62dcc00db1dd63c59daad15803f7.tar.gz tanzanite-e2807842b0cd62dcc00db1dd63c59daad15803f7.tar.bz2 tanzanite-e2807842b0cd62dcc00db1dd63c59daad15803f7.zip |
use new setAuthor overload
Diffstat (limited to 'src/commands')
-rw-r--r-- | src/commands/dev/test.ts | 2 | ||||
-rw-r--r-- | src/commands/moulberry-bush/report.ts | 5 | ||||
-rw-r--r-- | src/commands/utilities/suicide.ts | 9 |
3 files changed, 10 insertions, 6 deletions
diff --git a/src/commands/dev/test.ts b/src/commands/dev/test.ts index 5120a34..83dd592 100644 --- a/src/commands/dev/test.ts +++ b/src/commands/dev/test.ts @@ -62,7 +62,7 @@ export default class TestCommand extends BushCommand { } else if (['embed', 'button embed'].includes(args?.feature?.toLowerCase())) { const embed = new MessageEmbed() .addField('Field Name', 'Field Content') - .setAuthor('Author', 'https://www.w3schools.com/w3css/img_snowtops.jpg', 'https://google.com/') + .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) diff --git a/src/commands/moulberry-bush/report.ts b/src/commands/moulberry-bush/report.ts index 2888051..d5e9731 100644 --- a/src/commands/moulberry-bush/report.ts +++ b/src/commands/moulberry-bush/report.ts @@ -79,7 +79,10 @@ export default class ReportCommand extends BushCommand { const reportEmbed = new MessageEmbed() .setFooter(`Reporter ID: ${message.author.id} Reported ID: ${member.user.id}`) .setTimestamp() - .setAuthor(`Report From: ${message.author.tag}`, message.author.avatarURL({ dynamic: true }) ?? undefined) + .setAuthor({ + name: `Report From: ${message.author.tag}`, + iconURL: message.author.avatarURL({ dynamic: true }) ?? undefined + }) .setTitle('New Report') .setColor(util.colors.red) .setDescription(evidence) diff --git a/src/commands/utilities/suicide.ts b/src/commands/utilities/suicide.ts index beb7309..359f914 100644 --- a/src/commands/utilities/suicide.ts +++ b/src/commands/utilities/suicide.ts @@ -23,10 +23,11 @@ export default class TemplateCommand extends BushCommand { const suicideEmbed = new MessageEmbed() .setTitle('Mental Health Resources') .setColor(util.colors.red) - .setAuthor( - 'Remember, You Matter <3', - 'https://media.discordapp.net/attachments/770256340639416320/854689949193076737/Medical_31-60_974.jpg?width=523&height=523' - ) + .setAuthor({ + name: 'Remember, You Matter <3', + iconURL: + 'https://media.discordapp.net/attachments/770256340639416320/854689949193076737/Medical_31-60_974.jpg?width=523&height=523' + }) .addField( '**National Suicide Prevention Hotline (U.S.):**', [ |