Creates a new GroupChannel instance.
The client instance.
The raw data for the group channel from the API.
Optional
description?: null | stringOptional
icon?: Optional
last_message_id?: null | stringOptional
nsfw?: booleanOptional
permissions?: null | numberFormat: int64
Readonly
clientThe client instance.
The description of the group channel, if any.
The icon of the group channel, if any.
The unique identifier for the object.
The ID of the last message sent in this group channel, if any.
Manages the messages in this group channel.
The name of the group channel.
Whether the group channel is marked as NSFW (Not Safe For Work).
The ID of the user who owns the group channel.
The permissions for the group channel.
Readonly
typeThe type of the channel, which is always GROUP
for group channels.
A map of user IDs to their corresponding User
instances in the group channel.
Gets the timestamp (in milliseconds) when the channel was created.
The timestamp of the channel's creation.
Retrieves the last message sent in this group channel.
The last message, or null
if no message exists.
Retrieves the owner of the group channel.
The owner of the group channel, or null
if not found.
Creates a deep clone of the object.
A clone of the object.
Updates the object with new data and returns a clone of the object.
The data to update the object with.
Optional
clear: string[]Fields to clear in the object.
A clone of the updated object.
Adds a user to the group channel.
The user to add to the group channel.
A promise that resolves when the user has been successfully added.
Deletes multiple messages from this group channel.
The messages to delete. This can be an array of message resolvables, a map of messages, or a number indicating how many recent messages to delete.
A promise that resolves when the messages have been successfully deleted.
Deletes the current channel instance from the client's channel collection.
This method interacts with the client's channel management system to remove the channel. Once deleted, the channel will no longer be accessible through the client.
A promise that resolves when the channel has been successfully deleted.
Compares this object with another to determine if they are equal.
Optional
obj: null | GroupChannelThe object to compare with.
true
if the objects are equal, otherwise false
.
Checks if the channel is part of a server.
True if the channel is a server channel, otherwise false.
Checks if the channel is a group channel.
True if the channel is a group channel, otherwise false.
Checks if the channel is a text-based channel.
True if the channel is a text-based channel, otherwise false.
Checks if the channel is a voice channel.
True if the channel is a voice channel, otherwise false.
Leaves the group channel.
A promise that resolves when the group channel has been successfully left.
Removes a user from the group channel.
The user to remove from the group channel.
A promise that resolves when the user has been successfully removed.
Sends a message to this group channel.
The message content or options for the message.
A promise that resolves with the sent message.
Converts the channel to a string representation.
A string representation of the channel in the format <#channelId>
.
Represents a group channel, which allows multiple users to communicate.