This commit is contained in:
Elysia
2024-01-09 20:15:49 +07:00
parent 26c71d7777
commit 02fcfb881f
21 changed files with 52 additions and 529 deletions

View File

@@ -53,7 +53,6 @@ class Channel extends Base {
if ('flags' in data) {
/**
* The flags that are applied to the channel.
* <info>This is only `null` in a {@link PartialGroupDMChannel}. In all other cases, it is not `null`.</info>
* @type {?Readonly<ChannelFlags>}
*/
this.flags = new ChannelFlags(data.flags).freeze();
@@ -203,8 +202,8 @@ class Channel extends Base {
if ((data.recipients && data.type !== ChannelTypes.GROUP_DM) || data.type === ChannelTypes.DM) {
channel = new DMChannel(client, data);
} else if (data.type === ChannelTypes.GROUP_DM) {
const PartialGroupDMChannel = require('./PartialGroupDMChannel');
channel = new PartialGroupDMChannel(client, data);
const GroupDMChannel = require('./GroupDMChannel');
channel = new GroupDMChannel(client, data);
}
} else {
guild ??= client.guilds.cache.get(data.guild_id);