Parameters
- data: {
_id: string;
analytics?: boolean;
banner?:
| null
| {
_id: string;
content_type: string;
deleted?: null
| boolean;
filename: string;
message_id?: null | string;
metadata:
| { type: "File" }
| { type: "Text" }
| { height: number; type: "Image"; width: number }
| { height: number; type: "Video"; width: number }
| { type: "Audio" };
object_id?: null | string;
reported?: null | boolean;
server_id?: null | string;
size: number;
tag: string;
user_id?: null | string;
};
categories?: null
| { channels: string[]; id: string; title: string }[];
channels: string[];
default_permissions: number;
description?: null | string;
discoverable?: boolean;
flags?: number;
icon?:
| null
| {
_id: string;
content_type: string;
deleted?: null
| boolean;
filename: string;
message_id?: null | string;
metadata:
| { type: "File" }
| { type: "Text" }
| { height: number; type: "Image"; width: number }
| { height: number; type: "Video"; width: number }
| { type: "Audio" };
object_id?: null | string;
reported?: null | boolean;
server_id?: null | string;
size: number;
tag: string;
user_id?: null | string;
};
name: string;
nsfw?: boolean;
owner: string;
roles?: {
[key: string]: {
colour?: null
| string;
hoist?: boolean;
name: string;
permissions: { a: number; d: number };
rank?: number;
};
};
system_messages?: | null
| {
user_banned?: null
| string;
user_joined?: null | string;
user_kicked?: null | string;
user_left?: null | string;
};
}_id: string
Optional
analytics?: boolean
Optional
banner?:
| null
| {
_id: string;
content_type: string;
deleted?: null
| boolean;
filename: string;
message_id?: null | string;
metadata:
| { type: "File" }
| { type: "Text" }
| { height: number; type: "Image"; width: number }
| { height: number; type: "Video"; width: number }
| { type: "Audio" };
object_id?: null | string;
reported?: null | boolean;
server_id?: null | string;
size: number;
tag: string;
user_id?: null | string;
}
Optional
categories?: null | { channels: string[]; id: string; title: string }[]
channels: string[]
default_permissions: number
Optional
description?: null | string
Optional
discoverable?: boolean
Optional
flags?: number
Optional
icon?:
| null
| {
_id: string;
content_type: string;
deleted?: null
| boolean;
filename: string;
message_id?: null | string;
metadata:
| { type: "File" }
| { type: "Text" }
| { height: number; type: "Image"; width: number }
| { height: number; type: "Video"; width: number }
| { type: "Audio" };
object_id?: null | string;
reported?: null | boolean;
server_id?: null | string;
size: number;
tag: string;
user_id?: null | string;
}
name: string
Optional
nsfw?: boolean
owner: string
Optional
roles?: {
[key: string]: {
colour?: null | string;
hoist?: boolean;
name: string;
permissions: { a: number; d: number };
rank?: number;
};
}
Optional
system_messages?:
| null
| {
user_banned?: null
| string;
user_joined?: null | string;
user_kicked?: null | string;
user_left?: null | string;
}
A promise that resolves when the server is added and members are optionally fetched.
Represents the event handler for server creation.