From e2807842b0cd62dcc00db1dd63c59daad15803f7 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Mon, 22 Nov 2021 19:14:44 -0500 Subject: use new setAuthor overload --- src/lib/extensions/discord-akairo/BushClientUtil.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/lib/extensions/discord-akairo/BushClientUtil.ts') 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; } -- cgit