document the required permission for retrieving the welcome screen when disabled

This commit is contained in:
lts20050703
2022-01-26 10:27:53 +07:00
parent 4ed54a91b5
commit 76b2735ee3
+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,