import type { Bot } from "../../bot.ts"; import { DiscordWelcomeScreen } from "../../types/discord.ts"; /** Returns the Welcome Screen object for the guild. Requires the `MANAGE_GUILD` permission. */ export async function getWelcomeScreen(bot: Bot, guildId: bigint) { const result = await bot.rest.runMethod( bot.rest, "get", bot.constants.endpoints.GUILD_WELCOME_SCREEN(guildId), ); return bot.transformers.welcomeScreen(bot, result); }