Skip to main content
Module

x/discord_api_types/rest/v8/guild.ts>RESTPostAPIGuildsJSONBody

Up to date Discord API Typings, versioned by the API version
Go to Latest
interface RESTPostAPIGuildsJSONBody
Deprecated
Deprecated

API and gateway v8 are deprecated and the types will not receive further updates, please update to v10.

import { type RESTPostAPIGuildsJSONBody } from "https://deno.land/x/discord_api_types@0.37.82/rest/v8/guild.ts";

Properties

name: string

Name of the guild (2-100 characters)

optional
region: string | undefined
optional
icon: string | undefined

base64 1024x1024 png/jpeg image for the guild icon

See https://discord.com/developers/docs/reference#image-data

optional
default_message_notifications: GuildDefaultMessageNotifications | undefined
optional
explicit_content_filter: GuildExplicitContentFilter | undefined
optional
roles: APIGuildCreateRole[] | undefined

New guild roles

optional
channels: APIGuildCreatePartialChannel[] | undefined

New guild's channels

optional
afk_channel_id:
| number
| null
| undefined

ID for afk channel

optional
afk_timeout: number | undefined

AFK timeout in seconds

optional
system_channel_id:
| number
| null
| undefined

The id of the channel where guild notices such as welcome messages and boost events are posted

optional
premium_progress_bar_enabled: boolean | undefined

Whether the boosts progress bar should be enabled.