diff --git a/src/errors/Messages.js b/src/errors/Messages.js index 9a2a61de280a..c76b2c61178a 100644 --- a/src/errors/Messages.js +++ b/src/errors/Messages.js @@ -61,7 +61,7 @@ const Messages = { FILE_NOT_FOUND: file => `File could not be found: ${file}`, USER_BANNER_NOT_FETCHED: "You must fetch this user's banner before trying to generate its URL!", - USER_NO_DMCHANNEL: 'No DM Channel exists!', + USER_NO_DM_CHANNEL: 'No DM Channel exists!', VOICE_NOT_STAGE_CHANNEL: 'You are only allowed to do this in stage channels.', diff --git a/src/structures/User.js b/src/structures/User.js index f2d83cb1d09e..e9733cf01e64 100644 --- a/src/structures/User.js +++ b/src/structures/User.js @@ -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; diff --git a/src/structures/interfaces/Collector.js b/src/structures/interfaces/Collector.js index 40c8513677ec..6d84e1f23e78 100644 --- a/src/structures/interfaces/Collector.js +++ b/src/structures/interfaces/Collector.js @@ -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) { diff --git a/typings/index.d.ts b/typings/index.d.ts index 19a4fdf16f8d..d1dfb71e6f38 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -103,7 +103,7 @@ import { RawInviteData, RawInviteGuildData, RawInviteStageInstance, - RawMessageAttachementData, + RawMessageAttachmentData, RawMessageButtonInteractionData, RawMessageComponentInteractionData, RawMessageData, @@ -1393,7 +1393,7 @@ export class MessageActionRow extends BaseMessageComponent { } export class MessageAttachment { - public constructor(attachment: BufferResolvable | Stream, name?: string, data?: RawMessageAttachementData); + public constructor(attachment: BufferResolvable | Stream, name?: string, data?: RawMessageAttachmentData); public attachment: BufferResolvable | Stream; public contentType: string | null; diff --git a/typings/rawDataTypes.d.ts b/typings/rawDataTypes.d.ts index 90a19b6e8f1e..27156fe8a994 100644 --- a/typings/rawDataTypes.d.ts +++ b/typings/rawDataTypes.d.ts @@ -149,7 +149,7 @@ export type RawInviteStageInstance = APIInviteStageInstance; export type RawMessageData = APIMessage; export type RawPartialMessageData = GatewayMessageUpdateDispatchData; -export type RawMessageAttachementData = APIAttachment; +export type RawMessageAttachmentData = APIAttachment; export type RawMessagePayloadData = | RESTPostAPIChannelMessageJSONBody