aboutsummaryrefslogtreecommitdiff
path: root/src/lib/extensions/discord-akairo/BushClientUtil.ts
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-11-22 19:14:44 -0500
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-11-22 19:14:44 -0500
commite2807842b0cd62dcc00db1dd63c59daad15803f7 (patch)
tree41ee6a71f243629a8c44497b0b48c28df62eeddc /src/lib/extensions/discord-akairo/BushClientUtil.ts
parent717b924d6c4727c75639f4d495e8521f7eae9849 (diff)
downloadtanzanite-e2807842b0cd62dcc00db1dd63c59daad15803f7.tar.gz
tanzanite-e2807842b0cd62dcc00db1dd63c59daad15803f7.tar.bz2
tanzanite-e2807842b0cd62dcc00db1dd63c59daad15803f7.zip
use new setAuthor overload
Diffstat (limited to 'src/lib/extensions/discord-akairo/BushClientUtil.ts')
-rw-r--r--src/lib/extensions/discord-akairo/BushClientUtil.ts10
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;
}