fix eslint + ts
This commit is contained in:
parent
039dd34cf2
commit
e03565bdd8
23
typings/index.d.ts
vendored
23
typings/index.d.ts
vendored
@ -237,7 +237,6 @@ export class DiscordAuthWebsocket extends EventEmitter {
|
||||
public on(event: string, listener: (...args: any[]) => Awaitable<void>): this;
|
||||
}
|
||||
|
||||
|
||||
export interface ExternalAssets {
|
||||
url: string;
|
||||
external_asset_path: string;
|
||||
@ -870,7 +869,9 @@ export class ClientUser extends User {
|
||||
public pronouns?: string;
|
||||
public premiumType: number;
|
||||
public setBanner(banner: BufferResolvable | Base64Resolvable | null): Promise<this>;
|
||||
public setHypeSquad(hypesquad: 0 | 1 | 2 | 3 | 'LEAVE' | 'HOUSE_BRAVERY' | 'HOUSE_BRILLIANCE' | 'HOUSE_BALANCE'): Promise<void>;
|
||||
public setHypeSquad(
|
||||
hypesquad: 0 | 1 | 2 | 3 | 'LEAVE' | 'HOUSE_BRAVERY' | 'HOUSE_BRILLIANCE' | 'HOUSE_BALANCE',
|
||||
): Promise<void>;
|
||||
public setAccentColor(color: ColorResolvable): Promise<this>;
|
||||
public setAboutMe(bio: string | null): Promise<this>;
|
||||
public createFriendInvite(): Promise<Invite>;
|
||||
@ -1271,7 +1272,12 @@ export class Guild extends AnonymousGuild {
|
||||
public setWidgetSettings(settings: GuildWidgetSettingsData, reason?: string): Promise<Guild>;
|
||||
public toJSON(): unknown;
|
||||
public markAsRead(): Promise<void>;
|
||||
public setCommunity(stats: Boolean, publicUpdatesChannel?: GuildTextChannelResolvable, rulesChannel?: GuildTextChannelResolvable, reason?: string): Promise<this>;
|
||||
public setCommunity(
|
||||
stats: boolean,
|
||||
publicUpdatesChannel?: GuildTextChannelResolvable,
|
||||
rulesChannel?: GuildTextChannelResolvable,
|
||||
reason?: string,
|
||||
): Promise<this>;
|
||||
public topEmojis(): Promise<Collection<number, GuildEmoji>>;
|
||||
public setVanityCode(code?: string): Promise<this>;
|
||||
}
|
||||
@ -1881,8 +1887,11 @@ export class Message<Cached extends boolean = boolean> extends Base {
|
||||
public inGuild(): this is Message<true> & this;
|
||||
|
||||
public readonly isMessage: true;
|
||||
public clickButton(button?: { X: number, Y: number } | string): Promise<Message | Modal>;
|
||||
public selectMenu(menu: 0 | 1 | 2 | 3 | 4 | string, vales: Array<UserResolvable | RoleResolvable | ChannelResolvable | string>): Promise<Message | Modal>;
|
||||
public clickButton(button?: { X: number; Y: number } | string): Promise<Message | Modal>;
|
||||
public selectMenu(
|
||||
menu: 0 | 1 | 2 | 3 | 4 | string,
|
||||
vales: (UserResolvable | RoleResolvable | ChannelResolvable | string)[],
|
||||
): Promise<Message | Modal>;
|
||||
public markUnread(): Promise<void>;
|
||||
public markRead(): Promise<void>;
|
||||
}
|
||||
@ -6483,9 +6492,7 @@ export interface BaseMessageSelectMenuOptions {
|
||||
}
|
||||
|
||||
export interface StringMessageSelectMenuOptions extends BaseMessageSelectMenuOptions {
|
||||
type?:
|
||||
| 'STRING_SELECT'
|
||||
| SelectMenuComponentTypes.STRING_SELECT
|
||||
type?: 'STRING_SELECT' | SelectMenuComponentTypes.STRING_SELECT;
|
||||
options?: MessageSelectOptionData[];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user