mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +01:00
refactor: fix typos (#6852)
This commit is contained in:
@@ -235,7 +235,7 @@ class User extends Base {
|
||||
*/
|
||||
async deleteDM() {
|
||||
const { dmChannel } = this;
|
||||
if (!dmChannel) throw new Error('USER_NO_DMCHANNEL');
|
||||
if (!dmChannel) throw new Error('USER_NO_DM_CHANNEL');
|
||||
await this.client.api.channels(dmChannel.id).delete();
|
||||
this.client.channels._remove(dmChannel.id);
|
||||
return dmChannel;
|
||||
|
||||
@@ -206,7 +206,7 @@ class Collector extends EventEmitter {
|
||||
|
||||
/**
|
||||
* Resets the collector's timeout and idle timer.
|
||||
* @param {CollectorResetTimerOptions} [options] Options for reseting
|
||||
* @param {CollectorResetTimerOptions} [options] Options for resetting
|
||||
*/
|
||||
resetTimer({ time, idle } = {}) {
|
||||
if (this._timeout) {
|
||||
|
||||
Reference in New Issue
Block a user