$oldChannel
holds data of the channel before it was updated, used in channel update event, or else any data will be
empty
Field | Type | Description | Required |
---|
option | string | Option to retrieve. | true |
Field | Type | Description |
---|
name | string | Returns channel name. |
id | number | Returns channel ID. |
createdAt | number | Returns date of when was channel created. |
createdTimestamp | number | Returns the timestamp of when was channel created. |
defaultAutoArchiveDuration | number | Returns Default Archive Duration. |
deleteable | string | Returns true / false if channel is deleteable. |
deleted | string | Returns true / false if channel was deleted. |
guildID | number | Returns guild ID of current guild. |
lastMessageContent | string | Returns content of last message sent in channel. |
lastMessageID | number | Returns ID of last message sent in channel. |
lastPinAt | number | Returns date of last pinned message. |
lastPinTimestamp | number | Returns the timestamp of last pinned message. |
manageable | string | Returns true / false if channel is manageable. |
nsfw | string | Returns true / false if channel is NSFW. |
parentName | string | Returns Category Name. |
parentID | number | Returns Category ID. |
position | number | Returns channel position. |
slowmode | number | Returns channel slowmode. (if there are any) |
topic | string | Returns channel topic. |
type | string | Returns channel type. |
viewable | string | Returns true / false if channel is viewable. |
permsAllowed | string | Returns allowed permissions for current channel. |
permsDenied | string | Returns denied permissions for current channel. |
perms | string | Returns permissions for current channel. |
joinable | string | Returns true / false if channel is joinable (only if its voice channel). |
userLimit | number | Returns user limit for current (voice) channel. |
messageCount | number | Returns message count of messages sent in current channel. |
- This code will execute when channel is created.
- This code will execute when channel is deleted.
- This code will execute when channel is updated.