mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
chore: run prettier
This commit is contained in:
@@ -52,7 +52,7 @@ class ClientPresence extends Presence {
|
|||||||
|
|
||||||
activity.type ??= ActivityTypes.PLAYING;
|
activity.type ??= ActivityTypes.PLAYING;
|
||||||
|
|
||||||
if (activity.type === ActivityType.CUSTOM && !activity.state) {
|
if (activity.type === ActivityTypes.CUSTOM && !activity.state) {
|
||||||
activity.state = activity.name;
|
activity.state = activity.name;
|
||||||
activity.name = 'Custom Status';
|
activity.name = 'Custom Status';
|
||||||
}
|
}
|
||||||
@@ -69,7 +69,7 @@ class ClientPresence extends Presence {
|
|||||||
...this.activities.map(a => ({
|
...this.activities.map(a => ({
|
||||||
name: a.name,
|
name: a.name,
|
||||||
type: ActivityTypes[a.type],
|
type: ActivityTypes[a.type],
|
||||||
state: activity.state ?? undefined,
|
state: a.state ?? undefined,
|
||||||
url: a.url ?? undefined,
|
url: a.url ?? undefined,
|
||||||
})),
|
})),
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ const process = require('node:process');
|
|||||||
const Base = require('./Base');
|
const Base = require('./Base');
|
||||||
const { Error } = require('../errors');
|
const { Error } = require('../errors');
|
||||||
const Permissions = require('../util/Permissions');
|
const Permissions = require('../util/Permissions');
|
||||||
const SnowflakeUtil = require('../util/SnowflakeUtil');
|
|
||||||
const RoleFlags = require('../util/RoleFlags');
|
const RoleFlags = require('../util/RoleFlags');
|
||||||
|
const SnowflakeUtil = require('../util/SnowflakeUtil');
|
||||||
|
|
||||||
let deprecationEmittedForComparePositions = false;
|
let deprecationEmittedForComparePositions = false;
|
||||||
|
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ class AttachmentFlags extends BitField {}
|
|||||||
* @param {BitFieldResolvable} [bits=0] Bit(s) to read from
|
* @param {BitFieldResolvable} [bits=0] Bit(s) to read from
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/* eslint-disable max-len */
|
||||||
/**
|
/**
|
||||||
* Numeric guild member flags. All available properties:
|
* Numeric guild member flags. All available properties:
|
||||||
* * `IS_REMIX`
|
* * `IS_REMIX`
|
||||||
|
|||||||
32
typings/index.d.ts
vendored
32
typings/index.d.ts
vendored
@@ -1572,27 +1572,27 @@ export class LimitedCollection<K, V> extends Collection<K, V> {
|
|||||||
public static filterByLifetime<K, V>(options?: LifetimeFilterOptions<K, V>): SweepFilter<K, V>;
|
public static filterByLifetime<K, V>(options?: LifetimeFilterOptions<K, V>): SweepFilter<K, V>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type MessageCollectorOptionsParams<T extends MessageComponentTypeResolvable, Cached extends boolean = boolean> =
|
export type MessageCollectorOptionsParams<
|
||||||
| {
|
T extends MessageComponentTypeResolvable,
|
||||||
componentType?: T;
|
Cached extends boolean = boolean,
|
||||||
} & MessageComponentCollectorOptions<MappedInteractionTypes<Cached>[T]>;
|
> = {
|
||||||
|
componentType?: T;
|
||||||
|
} & MessageComponentCollectorOptions<MappedInteractionTypes<Cached>[T]>;
|
||||||
|
|
||||||
export type MessageChannelCollectorOptionsParams<
|
export type MessageChannelCollectorOptionsParams<
|
||||||
T extends MessageComponentTypeResolvable,
|
T extends MessageComponentTypeResolvable,
|
||||||
Cached extends boolean = boolean,
|
Cached extends boolean = boolean,
|
||||||
> =
|
> = {
|
||||||
| {
|
componentType?: T;
|
||||||
componentType?: T;
|
} & MessageChannelComponentCollectorOptions<MappedInteractionTypes<Cached>[T]>;
|
||||||
} & MessageChannelComponentCollectorOptions<MappedInteractionTypes<Cached>[T]>;
|
|
||||||
|
|
||||||
export type AwaitMessageCollectorOptionsParams<
|
export type AwaitMessageCollectorOptionsParams<
|
||||||
T extends MessageComponentTypeResolvable,
|
T extends MessageComponentTypeResolvable,
|
||||||
Cached extends boolean = boolean,
|
Cached extends boolean = boolean,
|
||||||
> =
|
> = { componentType?: T } & Pick<
|
||||||
| { componentType?: T } & Pick<
|
InteractionCollectorOptions<MappedInteractionTypes<Cached>[T]>,
|
||||||
InteractionCollectorOptions<MappedInteractionTypes<Cached>[T]>,
|
keyof AwaitMessageComponentOptions<any>
|
||||||
keyof AwaitMessageComponentOptions<any>
|
>;
|
||||||
>;
|
|
||||||
|
|
||||||
export interface StringMappedInteractionTypes<Cached extends CacheType = CacheType> {
|
export interface StringMappedInteractionTypes<Cached extends CacheType = CacheType> {
|
||||||
BUTTON: ButtonInteraction<Cached>;
|
BUTTON: ButtonInteraction<Cached>;
|
||||||
@@ -1737,8 +1737,7 @@ export class AttachmentFlags extends BitField<AttachmentFlagsString> {
|
|||||||
public static resolve(bit?: BitFieldResolvable<AttachmentFlagsString, number>): number;
|
public static resolve(bit?: BitFieldResolvable<AttachmentFlagsString, number>): number;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type AttachmentFlagsString =
|
export type AttachmentFlagsString = 'IS_REMIX';
|
||||||
| 'IS_REMIX';
|
|
||||||
|
|
||||||
export class MessageButton extends BaseMessageComponent {
|
export class MessageButton extends BaseMessageComponent {
|
||||||
public constructor(data?: MessageButton | MessageButtonOptions | APIButtonComponent);
|
public constructor(data?: MessageButton | MessageButtonOptions | APIButtonComponent);
|
||||||
@@ -2209,8 +2208,7 @@ export class RoleFlags extends BitField<RoleFlagsString> {
|
|||||||
public static resolve(bit?: BitFieldResolvable<RoleFlagsString, number>): number;
|
public static resolve(bit?: BitFieldResolvable<RoleFlagsString, number>): number;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type RoleFlagsString =
|
export type RoleFlagsString = 'IN_PROMPT';
|
||||||
| 'IN_PROMPT';
|
|
||||||
|
|
||||||
export class SelectMenuInteraction<Cached extends CacheType = CacheType> extends MessageComponentInteraction<Cached> {
|
export class SelectMenuInteraction<Cached extends CacheType = CacheType> extends MessageComponentInteraction<Cached> {
|
||||||
public constructor(client: Client, data: RawMessageSelectMenuInteractionData);
|
public constructor(client: Client, data: RawMessageSelectMenuInteractionData);
|
||||||
|
|||||||
Reference in New Issue
Block a user