mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
document the required permission for retrieving the welcome screen when disabled
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user