mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 09:03:29 +01:00
refactor(Managers): rename add to _add (#6060)
This commit is contained in:
@@ -212,7 +212,7 @@ class User extends Base {
|
||||
recipient_id: this.id,
|
||||
},
|
||||
});
|
||||
return this.client.channels.add(data);
|
||||
return this.client.channels._add(data);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -223,7 +223,7 @@ class User extends Base {
|
||||
const { dmChannel } = this;
|
||||
if (!dmChannel) throw new Error('USER_NO_DMCHANNEL');
|
||||
await this.client.api.channels(dmChannel.id).delete();
|
||||
this.client.channels.remove(dmChannel.id);
|
||||
this.client.channels._remove(dmChannel.id);
|
||||
return dmChannel;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user