mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 11:28:15 +00:00
Prettified Code!
This commit is contained in:
@@ -12,19 +12,18 @@ export function guildSplashURL(
|
||||
size?: DiscordImageSize;
|
||||
format?: DiscordImageFormat;
|
||||
animated?: boolean;
|
||||
},
|
||||
}
|
||||
) {
|
||||
return options.splash
|
||||
? formatImageURL(
|
||||
endpoints.GUILD_SPLASH(
|
||||
id,
|
||||
typeof options.splash === "string" ? options.splash : iconBigintToHash(
|
||||
options.splash,
|
||||
options.animated ?? true,
|
||||
endpoints.GUILD_SPLASH(
|
||||
id,
|
||||
typeof options.splash === "string"
|
||||
? options.splash
|
||||
: iconBigintToHash(options.splash, options.animated ?? true)
|
||||
),
|
||||
),
|
||||
options.size || 128,
|
||||
options.format,
|
||||
)
|
||||
options.size || 128,
|
||||
options.format
|
||||
)
|
||||
: undefined;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user