Fix endpoint for BaseGuild->iconURL

This commit is contained in:
Nicolás Serna 2022-07-02 15:37:37 -03:00
parent 3de8d75924
commit fd2cb00bde

View File

@ -48,7 +48,7 @@ export abstract class BaseGuild implements Model {
iconURL(options: { size?: ImageSize; format?: ImageFormat } = { size: 128 }) {
if (this.iconHash) {
return formatImageURL(
Routes.GUILD_BANNER(this.id, iconBigintToHash(this.iconHash)),
Routes.GUILD_ICON(this.id, iconBigintToHash(this.iconHash)),
options.size,
options.format,
);