chore: fix TS + release v3.0.1

This commit is contained in:
Elysia 2024-01-14 13:13:13 +07:00
parent 39d8b71f41
commit cb67f34b64
3 changed files with 4 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
{ {
"name": "discord.js-selfbot-v13", "name": "discord.js-selfbot-v13",
"version": "3.0.0", "version": "3.0.1",
"description": "A unofficial discord.js fork for creating selfbots [Based on discord.js v13]", "description": "A unofficial discord.js fork for creating selfbots [Based on discord.js v13]",
"main": "./src/index.js", "main": "./src/index.js",
"types": "./typings/index.d.ts", "types": "./typings/index.d.ts",

3
typings/index.d.ts vendored
View File

@ -764,7 +764,7 @@ export abstract class Channel extends Base {
export type If<T extends boolean, A, B = null> = T extends true ? A : T extends false ? B : A | B; export type If<T extends boolean, A, B = null> = T extends true ? A : T extends false ? B : A | B;
export class Client<Ready extends boolean = boolean> extends BaseClient { export class Client<Ready extends boolean = boolean> extends BaseClient {
public constructor(options: ClientOptions); public constructor(options?: ClientOptions);
private actions: unknown; private actions: unknown;
private presence: ClientPresence; private presence: ClientPresence;
private _eval(script: string): unknown; private _eval(script: string): unknown;
@ -787,6 +787,7 @@ export class Client<Ready extends boolean = boolean> extends BaseClient {
public relationships: RelationshipManager; public relationships: RelationshipManager;
public voiceStates: VoiceStateManager; public voiceStates: VoiceStateManager;
public presences: PresenceManager; public presences: PresenceManager;
public billing: BillingManager;
public destroy(): void; public destroy(): void;
public fetchGuildPreview(guild: GuildResolvable): Promise<GuildPreview>; public fetchGuildPreview(guild: GuildResolvable): Promise<GuildPreview>;
public fetchInvite(invite: InviteResolvable, options?: ClientFetchInviteOptions): Promise<Invite>; public fetchInvite(invite: InviteResolvable, options?: ClientFetchInviteOptions): Promise<Invite>;