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/lib/extensions | |
parent | 717b924d6c4727c75639f4d495e8521f7eae9849 (diff) | |
download | tanzanite-e2807842b0cd62dcc00db1dd63c59daad15803f7.tar.gz tanzanite-e2807842b0cd62dcc00db1dd63c59daad15803f7.tar.bz2 tanzanite-e2807842b0cd62dcc00db1dd63c59daad15803f7.zip |
use new setAuthor overload
Diffstat (limited to 'src/lib/extensions')
-rw-r--r-- | src/lib/extensions/discord-akairo/BushClientUtil.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/extensions/discord-akairo/BushClientUtil.ts b/src/lib/extensions/discord-akairo/BushClientUtil.ts index 8f1e67a..aa64562 100644 --- a/src/lib/extensions/discord-akairo/BushClientUtil.ts +++ b/src/lib/extensions/discord-akairo/BushClientUtil.ts @@ -205,11 +205,11 @@ export class BushClientUtil extends ClientUtil { } let embed = new MessageEmbed().setTimestamp(); if (author) - embed = embed.setAuthor( - author.username, - author.displayAvatarURL({ dynamic: true }), - `https://discord.com/users/${author.id}` - ); + embed = embed.setAuthor({ + name: author.username, + iconURL: author.displayAvatarURL({ dynamic: true }), + url: `https://discord.com/users/${author.id}` + }); if (color) embed = embed.setColor(color); return embed; } |