-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
36 changed files
with
1,147 additions
and
1,147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,61 @@ | ||
import { Client } from 'discord.js'; | ||
import { ClientUtil } from './ClientUtil'; | ||
import { CLIENT_MODE } from '../constants/constants'; | ||
import type { Snowflake, ClientOptions } from 'discord.js'; | ||
import type { ShewenyClientOptions, Managers, ManagersCollections, Cooldowns } from '../typescript/interfaces'; | ||
/** | ||
* Sheweny framework client | ||
*/ | ||
export declare class ShewenyClient extends Client { | ||
/** | ||
* If the client is ready | ||
* @type {boolean} | ||
*/ | ||
connected: boolean; | ||
/** | ||
* If the client is ready | ||
* @type {boolean} | ||
*/ | ||
cooldowns: Cooldowns; | ||
/** | ||
* The mode of the application (developement or production) | ||
* @type {string} | ||
*/ | ||
mode?: typeof CLIENT_MODE.prod | typeof CLIENT_MODE.dev; | ||
/** | ||
* The ID of the bot admins | ||
* @type {Snowflake[]} | ||
*/ | ||
admins: Snowflake[]; | ||
/** | ||
* The manager of handlers | ||
* @type {Managers} | ||
*/ | ||
managers: Managers; | ||
/** | ||
* The collections of handlers | ||
* @type {Managers} | ||
*/ | ||
collections: ManagersCollections; | ||
/** | ||
* A util tool to resolve channel, user, get data etc | ||
* @type {ClientUtil} | ||
*/ | ||
util: ClientUtil; | ||
/** | ||
* If the client joins a Thread when created | ||
* @type {boolean} | ||
*/ | ||
joinThreadsOnCreate: boolean; | ||
/** | ||
* Set options and your client is ready | ||
* @param {ShewenyClientOptions} options Client framework options | ||
* @param {ClientOptions} [clientOptions] Client discord.js options | ||
*/ | ||
constructor(options: ShewenyClientOptions, clientOptions?: ClientOptions); | ||
/** | ||
* Return true when the client is ready | ||
* @returns {Promise<boolean>} | ||
*/ | ||
awaitReady(): Promise<boolean>; | ||
} | ||
import { Client } from 'discord.js'; | ||
import { ClientUtil } from './ClientUtil'; | ||
import { CLIENT_MODE } from '../constants/constants'; | ||
import type { Snowflake, ClientOptions } from 'discord.js'; | ||
import type { ShewenyClientOptions, Managers, ManagersCollections, Cooldowns } from '../typescript/interfaces'; | ||
/** | ||
* Sheweny framework client | ||
*/ | ||
export declare class ShewenyClient extends Client { | ||
/** | ||
* If the client is ready | ||
* @type {boolean} | ||
*/ | ||
connected: boolean; | ||
/** | ||
* If the client is ready | ||
* @type {boolean} | ||
*/ | ||
cooldowns: Cooldowns; | ||
/** | ||
* The mode of the application (developement or production) | ||
* @type {string} | ||
*/ | ||
mode?: typeof CLIENT_MODE.prod | typeof CLIENT_MODE.dev; | ||
/** | ||
* The ID of the bot admins | ||
* @type {Snowflake[]} | ||
*/ | ||
admins: Snowflake[]; | ||
/** | ||
* The manager of handlers | ||
* @type {Managers} | ||
*/ | ||
managers: Managers; | ||
/** | ||
* The collections of handlers | ||
* @type {Managers} | ||
*/ | ||
collections: ManagersCollections; | ||
/** | ||
* A util tool to resolve channel, user, get data etc | ||
* @type {ClientUtil} | ||
*/ | ||
util: ClientUtil; | ||
/** | ||
* If the client joins a Thread when created | ||
* @type {boolean} | ||
*/ | ||
joinThreadsOnCreate: boolean; | ||
/** | ||
* Set options and your client is ready | ||
* @param {ShewenyClientOptions} options Client framework options | ||
* @param {ClientOptions} [clientOptions] Client discord.js options | ||
*/ | ||
constructor(options: ShewenyClientOptions, clientOptions?: ClientOptions); | ||
/** | ||
* Return true when the client is ready | ||
* @returns {Promise<boolean>} | ||
*/ | ||
awaitReady(): Promise<boolean>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
import { DiscordResolve } from '@sheweny/resolve'; | ||
import type { ShewenyClient } from '..'; | ||
/** | ||
* Utility methods and properties for the client. | ||
*/ | ||
export declare class ClientUtil extends DiscordResolve { | ||
client: ShewenyClient; | ||
constructor(client: ShewenyClient); | ||
getCommands(): IterableIterator<import("..").Command>; | ||
getEvents(): IterableIterator<import("..").Event>; | ||
getInhibitors(): IterableIterator<import("..").Inhibitor>; | ||
getButtons(): IterableIterator<import("..").Button>; | ||
getSelectMenus(): IterableIterator<import("..").SelectMenu>; | ||
} | ||
import { DiscordResolve } from '@sheweny/resolve'; | ||
import type { ShewenyClient } from '..'; | ||
/** | ||
* Utility methods and properties for the client. | ||
*/ | ||
export declare class ClientUtil extends DiscordResolve { | ||
client: ShewenyClient; | ||
constructor(client: ShewenyClient); | ||
getCommands(): IterableIterator<import("..").Command>; | ||
getEvents(): IterableIterator<import("..").Event>; | ||
getInhibitors(): IterableIterator<import("..").Inhibitor>; | ||
getButtons(): IterableIterator<import("..").Button>; | ||
getSelectMenus(): IterableIterator<import("..").SelectMenu>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,60 @@ | ||
/** | ||
* Client constants | ||
*/ | ||
export declare const CLIENT_MODE: { | ||
dev: "development"; | ||
prod: "production"; | ||
}; | ||
export declare const CLIENT_UTIL: { | ||
allIntents: import("discord.js").Intents; | ||
allPartials: import("discord.js").PartialTypes[]; | ||
}; | ||
/** | ||
* Command constants | ||
*/ | ||
export declare const COMMAND_TYPE: { | ||
cmdMsg: "MESSAGE_COMMAND"; | ||
cmdSlash: "SLASH_COMMAND"; | ||
ctxMsg: "CONTEXT_MENU_MESSAGE"; | ||
ctxUser: "CONTEXT_MENU_USER"; | ||
}; | ||
export declare const COMMAND_CHANNEL: { | ||
dm: "DM"; | ||
guild: "GUILD"; | ||
}; | ||
export declare const COMMAND_MESSAGE_ARGS_TYPE: { | ||
string: "STRING"; | ||
number: "NUMBER"; | ||
boolean: "BOOLEAN"; | ||
rest: "REST"; | ||
guild: "GUILD"; | ||
channel: "CHANNEL"; | ||
member: "MEMBER"; | ||
guild_emoji: "GUILD_EMOJI"; | ||
role: "ROLE"; | ||
user: "USER"; | ||
}; | ||
export declare const COMMAND_PERMISSIONS: { | ||
admin: "BOT_ADMIN"; | ||
}; | ||
export declare const COMMAND_EVENTS: { | ||
userMissingPerm: "userMissingPermissions"; | ||
clientMissingPerm: "clientMissingPermissions"; | ||
cooldownLimit: "cooldownLimit"; | ||
}; | ||
export declare const BUTTON_EVENTS: { | ||
cooldownLimit: "cooldownLimit"; | ||
}; | ||
export declare const SELECT_EVENTS: { | ||
cooldownLimit: "cooldownLimit"; | ||
}; | ||
/** | ||
* Inhibitor constants | ||
*/ | ||
export declare const INHIBITOR_TYPE: { | ||
message: "MESSAGE_COMMAND"; | ||
appCommand: "APPLICATION_COMMAND"; | ||
button: "BUTTON"; | ||
select: "SELECT_MENU"; | ||
all: "ALL"; | ||
}; | ||
/** | ||
* Client constants | ||
*/ | ||
export declare const CLIENT_MODE: { | ||
dev: "development"; | ||
prod: "production"; | ||
}; | ||
export declare const CLIENT_UTIL: { | ||
allIntents: import("discord.js").Intents; | ||
allPartials: import("discord.js").PartialTypes[]; | ||
}; | ||
/** | ||
* Command constants | ||
*/ | ||
export declare const COMMAND_TYPE: { | ||
cmdMsg: "MESSAGE_COMMAND"; | ||
cmdSlash: "SLASH_COMMAND"; | ||
ctxMsg: "CONTEXT_MENU_MESSAGE"; | ||
ctxUser: "CONTEXT_MENU_USER"; | ||
}; | ||
export declare const COMMAND_CHANNEL: { | ||
dm: "DM"; | ||
guild: "GUILD"; | ||
}; | ||
export declare const COMMAND_MESSAGE_ARGS_TYPE: { | ||
string: "STRING"; | ||
number: "NUMBER"; | ||
boolean: "BOOLEAN"; | ||
rest: "REST"; | ||
guild: "GUILD"; | ||
channel: "CHANNEL"; | ||
member: "MEMBER"; | ||
guild_emoji: "GUILD_EMOJI"; | ||
role: "ROLE"; | ||
user: "USER"; | ||
}; | ||
export declare const COMMAND_PERMISSIONS: { | ||
admin: "BOT_ADMIN"; | ||
}; | ||
export declare const COMMAND_EVENTS: { | ||
userMissingPerm: "userMissingPermissions"; | ||
clientMissingPerm: "clientMissingPermissions"; | ||
cooldownLimit: "cooldownLimit"; | ||
}; | ||
export declare const BUTTON_EVENTS: { | ||
cooldownLimit: "cooldownLimit"; | ||
}; | ||
export declare const SELECT_EVENTS: { | ||
cooldownLimit: "cooldownLimit"; | ||
}; | ||
/** | ||
* Inhibitor constants | ||
*/ | ||
export declare const INHIBITOR_TYPE: { | ||
message: "MESSAGE_COMMAND"; | ||
appCommand: "APPLICATION_COMMAND"; | ||
button: "BUTTON"; | ||
select: "SELECT_MENU"; | ||
all: "ALL"; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { AutocompleteInteraction } from 'discord.js'; | ||
import type { ShewenyClient } from '..'; | ||
import type { CommandInteraction, ContextMenuInteraction } from 'discord.js'; | ||
export default function run(client: ShewenyClient, interaction: CommandInteraction | ContextMenuInteraction | AutocompleteInteraction): Promise<any>; | ||
import { AutocompleteInteraction } from 'discord.js'; | ||
import type { ShewenyClient } from '..'; | ||
import type { CommandInteraction, ContextMenuInteraction } from 'discord.js'; | ||
export default function run(client: ShewenyClient, interaction: CommandInteraction | ContextMenuInteraction | AutocompleteInteraction): Promise<any>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import type { ButtonInteraction } from 'discord.js'; | ||
import type { ShewenyClient } from '../client/Client'; | ||
export default function run(client: ShewenyClient, interaction: ButtonInteraction): Promise<any>; | ||
import type { ButtonInteraction } from 'discord.js'; | ||
import type { ShewenyClient } from '../client/Client'; | ||
export default function run(client: ShewenyClient, interaction: ButtonInteraction): Promise<any>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { AutocompleteInteraction } from 'discord.js'; | ||
import type { ShewenyClient } from '..'; | ||
import type { CommandInteraction, ContextMenuInteraction } from 'discord.js'; | ||
export default function run(client: ShewenyClient, interaction: CommandInteraction | ContextMenuInteraction | AutocompleteInteraction): Promise<any>; | ||
import { AutocompleteInteraction } from 'discord.js'; | ||
import type { ShewenyClient } from '..'; | ||
import type { CommandInteraction, ContextMenuInteraction } from 'discord.js'; | ||
export default function run(client: ShewenyClient, interaction: CommandInteraction | ContextMenuInteraction | AutocompleteInteraction): Promise<any>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import type { Interaction } from 'discord.js'; | ||
import type { ShewenyClient } from '../client/Client'; | ||
export default function run(client: ShewenyClient, interaction: Interaction): void; | ||
import type { Interaction } from 'discord.js'; | ||
import type { ShewenyClient } from '../client/Client'; | ||
export default function run(client: ShewenyClient, interaction: Interaction): void; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import type { SelectMenuInteraction } from 'discord.js'; | ||
import type { ShewenyClient } from '../client/Client'; | ||
export default function run(client: ShewenyClient, interaction: SelectMenuInteraction): Promise<any>; | ||
import type { SelectMenuInteraction } from 'discord.js'; | ||
import type { ShewenyClient } from '../client/Client'; | ||
export default function run(client: ShewenyClient, interaction: SelectMenuInteraction): Promise<any>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import type { ShewenyClient } from '../client/Client'; | ||
import type { Message } from 'discord.js'; | ||
export default function run(client: ShewenyClient, message: Message): Promise<any>; | ||
import type { ShewenyClient } from '../client/Client'; | ||
import type { Message } from 'discord.js'; | ||
export default function run(client: ShewenyClient, message: Message): Promise<any>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
import type { ShewenyClient } from '../client/Client'; | ||
export default function run(client: ShewenyClient): Promise<void>; | ||
import type { ShewenyClient } from '../client/Client'; | ||
export default function run(client: ShewenyClient): Promise<void>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import type { ThreadChannel } from 'discord.js'; | ||
import type { ShewenyClient } from '../client/Client'; | ||
export default function run(client: ShewenyClient, thread: ThreadChannel): Promise<void>; | ||
import type { ThreadChannel } from 'discord.js'; | ||
import type { ShewenyClient } from '../client/Client'; | ||
export default function run(client: ShewenyClient, thread: ThreadChannel): Promise<void>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { ShewenyClient } from '../client/Client'; | ||
export declare class ShewenyError extends Error { | ||
constructor(client: ShewenyClient, err: any, ...args: any[]); | ||
} | ||
import { ShewenyClient } from '../client/Client'; | ||
export declare class ShewenyError extends Error { | ||
constructor(client: ShewenyClient, err: any, ...args: any[]); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import type { ShewenyClient } from '../client/Client'; | ||
/** | ||
* Information class for Sheweny. | ||
*/ | ||
export declare class ShewenyInformation { | ||
client: ShewenyClient; | ||
message: string; | ||
constructor(client: ShewenyClient, message: string); | ||
} | ||
import type { ShewenyClient } from '../client/Client'; | ||
/** | ||
* Information class for Sheweny. | ||
*/ | ||
export declare class ShewenyInformation { | ||
client: ShewenyClient; | ||
message: string; | ||
constructor(client: ShewenyClient, message: string); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import type { ShewenyClient } from '../client/Client'; | ||
export declare class ShewenyWarning { | ||
constructor(client: ShewenyClient, name: string, ...args: any[]); | ||
} | ||
import type { ShewenyClient } from '../client/Client'; | ||
export declare class ShewenyWarning { | ||
constructor(client: ShewenyClient, name: string, ...args: any[]); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export { ShewenyError } from './ShewenyError'; | ||
export { ShewenyWarning } from './ShewenyWarning'; | ||
export { ShewenyInformation } from './ShewenyInformation'; | ||
export { ShewenyError } from './ShewenyError'; | ||
export { ShewenyWarning } from './ShewenyWarning'; | ||
export { ShewenyInformation } from './ShewenyInformation'; |
Oops, something went wrong.