Skip to main content
Module

x/discordeno/mod.ts>getGuildSplashURL

Discord API library for Deno
Latest
function getGuildSplashURL
import { getGuildSplashURL } from "https://deno.land/x/discordeno@18.0.1/mod.ts";

Builds the URL to a guild splash 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 splash of.
imageHash: BigString | undefined
  • The hash identifying the splash image.
optional
options: { size?: ImageSize; format?: ImageFormat; }
  • The parameters for the building of the URL.

Returns

string | undefined

The link to the resource or undefined if the guild does not have a splash image set.