GuildChannel
A channel in a guild (text, voice, category, etc.).
Extends Channel
Constructor
(client: Client, data: APIChannel)| Param | Type | Description |
|---|---|---|
| client | Client | |
| data | APIChannel |
Properties
: string (readonly)Guild ID this channel belongs to.
: string | null: string | nullParent category ID, or null if none.
: APIChannelOverwrite[]Permission overwrites for roles/members.
?: numberPosition in the channel list.
Methods
(: APIChannel): void| Param | Type | Description |
|---|---|---|
| _data | APIChannel |
(): booleanCheck if the bot can send messages in this channel (with permissions).
(options?: ChannelInviteCreateOptions): Promise<Invite>Create an invite for this channel. Requires Create Instant Invite.
| Param | Type | Description |
|---|---|---|
| options? | ChannelInviteCreateOptions |
(options: { name: string; avatar?: string | null; }): Promise<Webhook>Create a webhook for this channel. Requires Manage Webhooks.
| Param | Type | Description |
|---|---|---|
| options | { name: string; avatar?: string | null; } |
(options?: SudoVerificationOptions & { silent?: boolean; deleteMessages?: boolean }): Promise<void>Delete this channel. Requires Manage Channels or channel ownership.
| Param | Type | Description |
|---|---|---|
| options? | SudoVerificationOptions & { silent?: boolean; deleteMessages?: boolean } |
(overwriteId: string): Promise<void>Delete a permission overwrite. Requires Manage Roles.
| Param | Type | Description |
|---|---|---|
| overwriteId | string |
(options: ChannelEditOptions): Promise<this>Edit this channel's settings. Requires Manage Channels.
| Param | Type | Description |
|---|---|---|
| options | ChannelEditOptions |
(overwriteId: string, options: { type: OverwriteType; allow?: string; deny?: string; }): Promise<void>Edit or create a permission overwrite. Requires Manage Roles.
| Param | Type | Description |
|---|---|---|
| overwriteId | string | |
| options | { type: OverwriteType; allow?: string; deny?: string; } |
(): Promise<Invite[]>Fetch all invites for this channel. Requires Manage Channels.
(): Promise<Webhook[]>Fetch all webhooks in this channel. Requires Manage Webhooks.