From 78a0f0b51e3cfcdd680d91e7f358db6e522703bb Mon Sep 17 00:00:00 2001 From: a boi here <41384430+some-boi@users.noreply.github.com> Date: Thu, 16 Dec 2021 16:22:20 +0100 Subject: [PATCH] Update guildIconUrl.ts --- src/helpers/guilds/guildIconUrl.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/helpers/guilds/guildIconUrl.ts b/src/helpers/guilds/guildIconUrl.ts index 706c02090..1e04b16d4 100644 --- a/src/helpers/guilds/guildIconUrl.ts +++ b/src/helpers/guilds/guildIconUrl.ts @@ -16,10 +16,10 @@ export function guildIconURL( ? bot.utils.formatImageURL( bot.constants.endpoints.GUILD_ICON( id, - typeof options.icon === "string" ? options.icon : bot.utils.iconBigintToHash(options.icon) + typeof icon === "string" ? icon : bot.utils.iconBigintToHash(icon) ), - options.size || 128, - options.format + options?.size || 128, + options?.format ) : undefined; }