Update guildIconUrl.ts

This commit is contained in:
a boi here
2021-12-16 16:22:20 +01:00
committed by GitHub
parent 047623b860
commit 78a0f0b51e

View File

@@ -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;
}