mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 12:41:54 +03:00
d60c3242af
swc_bundler: - Fix cycle detection for complex circular imports. (denoland/deno#10752) swc_ecma_transforms_typescript: - Allow using large values for an enum variant.
38 lines
1.5 KiB
TypeScript
38 lines
1.5 KiB
TypeScript
// Loaded from https://deno.land/x/discordeno@11.0.0-rc.2/src/types/guilds/create_guild.ts
|
|
|
|
|
|
import { Channel } from "../channels/channel.ts";
|
|
import { Role } from "../permissions/role.ts";
|
|
import { DiscordDefaultMessageNotificationLevels } from "./default_message_notification_levels.ts";
|
|
import { DiscordExplicitContentFilterLevels } from "./explicit_content_filter_levels.ts";
|
|
import { DiscordSystemChannelFlags } from "./system_channel_flags.ts";
|
|
import { DiscordVerificationLevels } from "./verification_levels.ts";
|
|
|
|
/** https://discord.com/developers/docs/resources/guild#create-guild */
|
|
export interface CreateGuild {
|
|
/** Name of the guild (2-100 characters) */
|
|
name: string;
|
|
/** Voice region id */
|
|
region?: string;
|
|
/** Base64 128x128 image for the guild icon */
|
|
icon?: string;
|
|
/** Verification level */
|
|
verificationLevel?: DiscordVerificationLevels;
|
|
/** Default message notification level */
|
|
defaultMessageNotifications?: DiscordDefaultMessageNotificationLevels;
|
|
/** Explicit content filter level */
|
|
explicitContentFilter?: DiscordExplicitContentFilterLevels;
|
|
/** New guild roles (first role is the everyone role) */
|
|
roles?: Role[];
|
|
/** New guild's channels */
|
|
channels?: Partial<Channel>[];
|
|
/** Id for afk channel */
|
|
afkChannelId?: string;
|
|
/** Afk timeout in seconds */
|
|
afkTimeout?: number;
|
|
/** The id of the channel where guild notices such as welcome messages and boost events are posted */
|
|
systemChannelId?: string;
|
|
/** System channel flags */
|
|
systemChannelFlags?: DiscordSystemChannelFlags;
|
|
}
|