Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/discordeno_patched/template/minimal/deps.ts>getGuildIconURL

Discord API library for Node and Deno
Latest
function getGuildIconURL
import { getGuildIconURL } from "https://deno.land/x/discordeno_patched@18.0.3/template/minimal/deps.ts";

Builds a URL to the guild icon stored in the Discord CDN.

Parameters

bot: Bot
  • The bot instance to use to build the URL.
guildId: BigString
  • The ID of the guild to get the link to the banner for.
imageHash: BigString | undefined
  • The parameters for the building of the URL.
optional
options: { size?: ImageSize; format?: ImageFormat; }

Returns

string | undefined

The link to the resource or undefined if no banner has been set.