Construct Channel
Collection
Channel Id
Private
Optional
#ackPrivate
Optional
#ackPrivate
Readonly
#collectionPrivate
Optional
#manuallyReadonly
idWhether this object exists
Whether the conversation is active
URL to the animated channel icon
Time when this server was created
Default permissions for this server channel
Channel description
Display name
URL to the channel icon
Time when the last message was sent
ID of the last message sent in this channel
Whether this channel is marked as mature
Get mentions in this channel for user.
Channel name
Owner ID
Absolute pathname to this channel in the client
Permission the currently authenticated user has against this channel
Permissions allowed for users in this group
Whether this channel may be hidden to some users
User ids of recipients of the group
Role permissions for this server channel
Server ID
URL to a small variant of the channel icon
Channel type
User ids of people currently typing in channel
Get whether this channel is unread.
Time when the channel was last updated (either created or a message was sent)
URL to this channel
User ID
Mark a channel as read
Optional
message: string | MessageLast read message or its ID
Optional
skipRateLimiter: booleanWhether to skip the internal rate limiter
Optional
skipRequest: booleanFor internal updates only
Optional
skipNextMarking: booleanFor internal usage only
SavedMessages
, DirectMessage
, Group
, TextChannel
Create an invite to the channel
Newly created invite code
TextChannel
, VoiceChannel
Edit a channel
Changes
Optional
archived?: null | booleanWhether this channel is archived
Optional
description?: null | stringChannel description
Optional
icon?: null | stringIcon
Provide an Autumn attachment Id.
Optional
name?: null | stringChannel name
Optional
nsfw?: null | booleanWhether this channel is age-restricted
Optional
owner?: null | stringGroup owner
Optional
remove?: null | ("Description" | "Icon" | "DefaultPermissions")[]Fields to remove from channel
Fetch multiple messages from a channel
Optional
params: Omit<undefined | { Message fetching route data
Messages
SavedMessages
, DirectMessage
, Group
, TextChannel
Fetch multiple messages from a channel including the users that sent them
Optional
params: Omit<undefined | { Message fetching route data
Object including messages and users
SavedMessages
, DirectMessage
, Group
, TextChannel
Fetch a channel's webhooks
Webhooks
TextChannel
, Group
Check whether we have a given permission in a channel
Rest
...permission: ("Video" | "Masquerade" | "ManageChannel" | "ManageServer" | "ManagePermissions" | "ManageRole" | "ManageCustomisation" | "KickMembers" | "BanMembers" | "TimeoutMembers" | "AssignRoles" | "ChangeNickname" | "ManageNicknames" | "ChangeAvatar" | "RemoveAvatars" | "ViewChannel" | "ReadMessageHistory" | "SendMessage" | "ManageMessages" | "ManageWebhooks" | "InviteOthers" | "SendEmbeds" | "UploadFiles" | "React" | "Connect" | "Speak" | "MuteMembers" | "DeafenMembers" | "MoveMembers" | "GrantAllSafe")[]Permission Names
Whether we have this permission
Check whether we have at least one of the given permissions in a channel
Rest
...permission: ("Video" | "Masquerade" | "ManageChannel" | "ManageServer" | "ManagePermissions" | "ManageRole" | "ManageCustomisation" | "KickMembers" | "BanMembers" | "TimeoutMembers" | "AssignRoles" | "ChangeNickname" | "ManageNicknames" | "ChangeAvatar" | "RemoveAvatars" | "ViewChannel" | "ReadMessageHistory" | "SendMessage" | "ManageMessages" | "ManageWebhooks" | "InviteOthers" | "SendEmbeds" | "UploadFiles" | "React" | "Connect" | "Speak" | "MuteMembers" | "DeafenMembers" | "MoveMembers" | "GrantAllSafe")[]Permission Names
Whether we have one of the permissions
Search for messages
Message searching route data
Messages
SavedMessages
, DirectMessage
, Group
, TextChannel
Search for messages including the users that sent them
Message searching route data
Object including messages and users
SavedMessages
, DirectMessage
, Group
, TextChannel
Send a message
Either the message as a string or message sending route data
Sent message
SavedMessages
, DirectMessage
, Group
, TextChannel
Set role permissions
Role Id, set to 'default' to affect all users
Permission value
Format: uint64
Allow bit flags
Format: uint64
Disallow bit flags
Group
, TextChannel
, VoiceChannel
Generated using TypeDoc
Channel Class