mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 19:43:29 +01:00
refactor: fix typos (#6852)
This commit is contained in:
@@ -61,7 +61,7 @@ const Messages = {
|
|||||||
FILE_NOT_FOUND: file => `File could not be found: ${file}`,
|
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_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.',
|
VOICE_NOT_STAGE_CHANNEL: 'You are only allowed to do this in stage channels.',
|
||||||
|
|
||||||
|
|||||||
@@ -235,7 +235,7 @@ class User extends Base {
|
|||||||
*/
|
*/
|
||||||
async deleteDM() {
|
async deleteDM() {
|
||||||
const { dmChannel } = this;
|
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();
|
await this.client.api.channels(dmChannel.id).delete();
|
||||||
this.client.channels._remove(dmChannel.id);
|
this.client.channels._remove(dmChannel.id);
|
||||||
return dmChannel;
|
return dmChannel;
|
||||||
|
|||||||
@@ -206,7 +206,7 @@ class Collector extends EventEmitter {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Resets the collector's timeout and idle timer.
|
* Resets the collector's timeout and idle timer.
|
||||||
* @param {CollectorResetTimerOptions} [options] Options for reseting
|
* @param {CollectorResetTimerOptions} [options] Options for resetting
|
||||||
*/
|
*/
|
||||||
resetTimer({ time, idle } = {}) {
|
resetTimer({ time, idle } = {}) {
|
||||||
if (this._timeout) {
|
if (this._timeout) {
|
||||||
|
|||||||
4
typings/index.d.ts
vendored
4
typings/index.d.ts
vendored
@@ -103,7 +103,7 @@ import {
|
|||||||
RawInviteData,
|
RawInviteData,
|
||||||
RawInviteGuildData,
|
RawInviteGuildData,
|
||||||
RawInviteStageInstance,
|
RawInviteStageInstance,
|
||||||
RawMessageAttachementData,
|
RawMessageAttachmentData,
|
||||||
RawMessageButtonInteractionData,
|
RawMessageButtonInteractionData,
|
||||||
RawMessageComponentInteractionData,
|
RawMessageComponentInteractionData,
|
||||||
RawMessageData,
|
RawMessageData,
|
||||||
@@ -1393,7 +1393,7 @@ export class MessageActionRow extends BaseMessageComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export class MessageAttachment {
|
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 attachment: BufferResolvable | Stream;
|
||||||
public contentType: string | null;
|
public contentType: string | null;
|
||||||
|
|||||||
2
typings/rawDataTypes.d.ts
vendored
2
typings/rawDataTypes.d.ts
vendored
@@ -149,7 +149,7 @@ export type RawInviteStageInstance = APIInviteStageInstance;
|
|||||||
export type RawMessageData = APIMessage;
|
export type RawMessageData = APIMessage;
|
||||||
export type RawPartialMessageData = GatewayMessageUpdateDispatchData;
|
export type RawPartialMessageData = GatewayMessageUpdateDispatchData;
|
||||||
|
|
||||||
export type RawMessageAttachementData = APIAttachment;
|
export type RawMessageAttachmentData = APIAttachment;
|
||||||
|
|
||||||
export type RawMessagePayloadData =
|
export type RawMessagePayloadData =
|
||||||
| RESTPostAPIChannelMessageJSONBody
|
| RESTPostAPIChannelMessageJSONBody
|
||||||
|
|||||||
Reference in New Issue
Block a user