Merge pull request #1953 from lts20050703/gh-1905

discord-api-docs: document the required permission for retrieving the welcome screen when disabled
This commit is contained in:
Skillz4Killz
2022-02-01 12:10:34 -05:00
committed by GitHub
+1
View File
@@ -1,6 +1,7 @@
import type { WelcomeScreen } from "../../types/guilds/welcomeScreen.ts";
import type { Bot } from "../../bot.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<WelcomeScreen>(
bot.rest,