mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-02 08:50:07 +00:00
8 lines
392 B
TypeScript
8 lines
392 B
TypeScript
import type { Bot } from "../../bot.ts";
|
|
import type { GetGuildWidgetImageQuery } from "../../types/guilds/getGuildWidgetImage.ts";
|
|
|
|
/** Returns the widget image URL for the guild. */
|
|
export async function getWidgetImageURL(bot: Bot, guildId: bigint, options?: GetGuildWidgetImageQuery) {
|
|
return `${bot.constants.endpoints.GUILD_WIDGET(guildId)}.png?style=${options?.style ?? "shield"}`;
|
|
}
|