mirror of
https://github.com/sern-handler/website
synced 2026-06-06 17:26:50 +00:00
Compare commits
3 Commits
feat/quick
...
jacoobes-p
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8b8191b7da | ||
|
|
cc7d02ff21 | ||
|
|
ac2561845f |
@@ -45,7 +45,6 @@
|
||||
"typescript": "~5.4.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@tailwindcss/postcss": "^4.0.0",
|
||||
"@types/bun": "^1.1.1",
|
||||
"prettier": "^3.2.5",
|
||||
"prettier-plugin-astro": "^0.13.0",
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
module.exports = {
|
||||
plugins: {
|
||||
"@tailwindcss/postcss": {},
|
||||
|
||||
|
||||
}
|
||||
};
|
||||
@@ -1,7 +1,7 @@
|
||||
---
|
||||
import { Tabs, TabItem, Code } from "@astrojs/starlight/components";
|
||||
|
||||
type Command = "add" | "update" | "remove" | "create" | "dev";
|
||||
type Command = "add" | "update" | "remove" | "create";
|
||||
type PackageManager = (typeof packageManagers)[number];
|
||||
|
||||
const packageManagers = ["NPM", "PNPM", "Yarn", "Bun"] as const;
|
||||
@@ -41,12 +41,6 @@ const packageManagerCode = (
|
||||
PNPM: `pnpm create ${text}`,
|
||||
Bun: `bun create ${text}`,
|
||||
},
|
||||
dev: {
|
||||
NPM: `npm run build && npm start`,
|
||||
Yarn: `yarn build && yarn start`,
|
||||
PNPM: `pnpm build && pnpm start`,
|
||||
Bun: `bun build && bun start`,
|
||||
}
|
||||
};
|
||||
|
||||
return commands[command][manager];
|
||||
|
||||
@@ -27,7 +27,7 @@ Message and ChatInputCommandInteraction
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/context.ts:39](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/structures/context.ts#L39)
|
||||
[src/core/structures/context.ts:39](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/structures/context.ts#L39)
|
||||
|
||||
***
|
||||
|
||||
@@ -41,7 +41,7 @@ Message and ChatInputCommandInteraction
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/context.ts:45](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/structures/context.ts#L45)
|
||||
[src/core/structures/context.ts:45](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/structures/context.ts#L45)
|
||||
|
||||
***
|
||||
|
||||
@@ -55,7 +55,7 @@ Message and ChatInputCommandInteraction
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/context.ts:91](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/structures/context.ts#L91)
|
||||
[src/core/structures/context.ts:91](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/structures/context.ts#L91)
|
||||
|
||||
***
|
||||
|
||||
@@ -69,7 +69,7 @@ Message and ChatInputCommandInteraction
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/context.ts:65](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/structures/context.ts#L65)
|
||||
[src/core/structures/context.ts:65](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/structures/context.ts#L65)
|
||||
|
||||
***
|
||||
|
||||
@@ -83,7 +83,7 @@ Message and ChatInputCommandInteraction
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/context.ts:71](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/structures/context.ts#L71)
|
||||
[src/core/structures/context.ts:71](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/structures/context.ts#L71)
|
||||
|
||||
***
|
||||
|
||||
@@ -97,7 +97,7 @@ Message and ChatInputCommandInteraction
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/context.ts:77](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/structures/context.ts#L77)
|
||||
[src/core/structures/context.ts:77](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/structures/context.ts#L77)
|
||||
|
||||
***
|
||||
|
||||
@@ -111,7 +111,7 @@ Message and ChatInputCommandInteraction
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/context.ts:33](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/structures/context.ts#L33)
|
||||
[src/core/structures/context.ts:33](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/structures/context.ts#L33)
|
||||
|
||||
***
|
||||
|
||||
@@ -125,7 +125,7 @@ Message and ChatInputCommandInteraction
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/context.ts:97](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/structures/context.ts#L97)
|
||||
[src/core/structures/context.ts:97](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/structures/context.ts#L97)
|
||||
|
||||
***
|
||||
|
||||
@@ -139,7 +139,7 @@ Message and ChatInputCommandInteraction
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/core-context.ts:15](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/structures/core-context.ts#L15)
|
||||
[src/core/structures/core-context.ts:15](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/structures/core-context.ts#L15)
|
||||
|
||||
***
|
||||
|
||||
@@ -153,7 +153,7 @@ Message and ChatInputCommandInteraction
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/context.ts:85](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/structures/context.ts#L85)
|
||||
[src/core/structures/context.ts:85](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/structures/context.ts#L85)
|
||||
|
||||
***
|
||||
|
||||
@@ -167,7 +167,7 @@ Message and ChatInputCommandInteraction
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/core-context.ts:12](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/structures/core-context.ts#L12)
|
||||
[src/core/structures/core-context.ts:12](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/structures/core-context.ts#L12)
|
||||
|
||||
***
|
||||
|
||||
@@ -181,7 +181,7 @@ Message and ChatInputCommandInteraction
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/context.ts:26](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/structures/context.ts#L26)
|
||||
[src/core/structures/context.ts:26](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/structures/context.ts#L26)
|
||||
|
||||
***
|
||||
|
||||
@@ -198,7 +198,7 @@ else, interaction.user
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/context.ts:55](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/structures/context.ts#L55)
|
||||
[src/core/structures/context.ts:55](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/structures/context.ts#L55)
|
||||
|
||||
***
|
||||
|
||||
@@ -212,7 +212,7 @@ else, interaction.user
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/context.ts:61](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/structures/context.ts#L61)
|
||||
[src/core/structures/context.ts:61](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/structures/context.ts#L61)
|
||||
|
||||
## Methods
|
||||
|
||||
@@ -230,7 +230,7 @@ else, interaction.user
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/core-context.ts:19](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/structures/core-context.ts#L19)
|
||||
[src/core/structures/core-context.ts:19](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/structures/core-context.ts#L19)
|
||||
|
||||
***
|
||||
|
||||
@@ -248,7 +248,7 @@ else, interaction.user
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/core-context.ts:23](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/structures/core-context.ts#L23)
|
||||
[src/core/structures/core-context.ts:23](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/structures/core-context.ts#L23)
|
||||
|
||||
***
|
||||
|
||||
@@ -266,7 +266,7 @@ else, interaction.user
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/context.ts:103](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/structures/context.ts#L103)
|
||||
[src/core/structures/context.ts:103](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/structures/context.ts#L103)
|
||||
|
||||
***
|
||||
|
||||
@@ -288,4 +288,4 @@ else, interaction.user
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/context.ts:113](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/structures/context.ts#L113)
|
||||
[src/core/structures/context.ts:113](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/structures/context.ts#L113)
|
||||
|
||||
@@ -23,7 +23,7 @@ title: "ModuleStore"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/module-store.ts:10](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/structures/module-store.ts#L10)
|
||||
[src/core/structures/module-store.ts:10](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/structures/module-store.ts#L10)
|
||||
|
||||
***
|
||||
|
||||
@@ -33,4 +33,4 @@ title: "ModuleStore"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/module-store.ts:9](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/structures/module-store.ts#L9)
|
||||
[src/core/structures/module-store.ts:9](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/structures/module-store.ts#L9)
|
||||
|
||||
@@ -31,7 +31,7 @@ export default commandModule({
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/enums.ts:20](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/structures/enums.ts#L20)
|
||||
[src/core/structures/enums.ts:20](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/structures/enums.ts#L20)
|
||||
|
||||
***
|
||||
|
||||
@@ -41,7 +41,7 @@ export default commandModule({
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/enums.ts:23](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/structures/enums.ts#L23)
|
||||
[src/core/structures/enums.ts:23](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/structures/enums.ts#L23)
|
||||
|
||||
***
|
||||
|
||||
@@ -51,7 +51,7 @@ export default commandModule({
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/enums.ts:29](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/structures/enums.ts#L29)
|
||||
[src/core/structures/enums.ts:29](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/structures/enums.ts#L29)
|
||||
|
||||
***
|
||||
|
||||
@@ -61,7 +61,7 @@ export default commandModule({
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/enums.ts:22](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/structures/enums.ts#L22)
|
||||
[src/core/structures/enums.ts:22](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/structures/enums.ts#L22)
|
||||
|
||||
***
|
||||
|
||||
@@ -71,7 +71,7 @@ export default commandModule({
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/enums.ts:21](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/structures/enums.ts#L21)
|
||||
[src/core/structures/enums.ts:21](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/structures/enums.ts#L21)
|
||||
|
||||
***
|
||||
|
||||
@@ -81,7 +81,7 @@ export default commandModule({
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/enums.ts:28](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/structures/enums.ts#L28)
|
||||
[src/core/structures/enums.ts:28](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/structures/enums.ts#L28)
|
||||
|
||||
***
|
||||
|
||||
@@ -91,7 +91,7 @@ export default commandModule({
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/enums.ts:25](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/structures/enums.ts#L25)
|
||||
[src/core/structures/enums.ts:25](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/structures/enums.ts#L25)
|
||||
|
||||
***
|
||||
|
||||
@@ -101,7 +101,7 @@ export default commandModule({
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/enums.ts:27](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/structures/enums.ts#L27)
|
||||
[src/core/structures/enums.ts:27](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/structures/enums.ts#L27)
|
||||
|
||||
***
|
||||
|
||||
@@ -111,7 +111,7 @@ export default commandModule({
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/enums.ts:19](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/structures/enums.ts#L19)
|
||||
[src/core/structures/enums.ts:19](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/structures/enums.ts#L19)
|
||||
|
||||
***
|
||||
|
||||
@@ -121,7 +121,7 @@ export default commandModule({
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/enums.ts:24](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/structures/enums.ts#L24)
|
||||
[src/core/structures/enums.ts:24](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/structures/enums.ts#L24)
|
||||
|
||||
***
|
||||
|
||||
@@ -131,7 +131,7 @@ export default commandModule({
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/enums.ts:18](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/structures/enums.ts#L18)
|
||||
[src/core/structures/enums.ts:18](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/structures/enums.ts#L18)
|
||||
|
||||
***
|
||||
|
||||
@@ -141,4 +141,4 @@ export default commandModule({
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/enums.ts:26](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/structures/enums.ts#L26)
|
||||
[src/core/structures/enums.ts:26](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/structures/enums.ts#L26)
|
||||
|
||||
@@ -30,7 +30,7 @@ The EventType for handling discord events
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/enums.ts:51](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/structures/enums.ts#L51)
|
||||
[src/core/structures/enums.ts:51](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/structures/enums.ts#L51)
|
||||
|
||||
***
|
||||
|
||||
@@ -43,7 +43,7 @@ Could be for example, `process` events, database events
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/enums.ts:60](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/structures/enums.ts#L60)
|
||||
[src/core/structures/enums.ts:60](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/structures/enums.ts#L60)
|
||||
|
||||
***
|
||||
|
||||
@@ -55,4 +55,4 @@ The EventType for handling sern events
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/enums.ts:55](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/structures/enums.ts#L55)
|
||||
[src/core/structures/enums.ts:55](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/structures/enums.ts#L55)
|
||||
|
||||
@@ -15,7 +15,7 @@ The PayloadType for a SernEmitter failure event
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/enums.ts:98](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/structures/enums.ts#L98)
|
||||
[src/core/structures/enums.ts:98](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/structures/enums.ts#L98)
|
||||
|
||||
***
|
||||
|
||||
@@ -27,7 +27,7 @@ The PayloadType for a SernEmitter success event
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/enums.ts:94](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/structures/enums.ts#L94)
|
||||
[src/core/structures/enums.ts:94](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/structures/enums.ts#L94)
|
||||
|
||||
***
|
||||
|
||||
@@ -39,4 +39,4 @@ The PayloadType for a SernEmitter warning event
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/enums.ts:102](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/structures/enums.ts#L102)
|
||||
[src/core/structures/enums.ts:102](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/structures/enums.ts#L102)
|
||||
|
||||
@@ -29,7 +29,7 @@ The PluginType for EventPlugins
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/enums.ts:85](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/structures/enums.ts#L85)
|
||||
[src/core/structures/enums.ts:85](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/structures/enums.ts#L85)
|
||||
|
||||
***
|
||||
|
||||
@@ -41,4 +41,4 @@ The PluginType for InitPlugins
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/enums.ts:81](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/structures/enums.ts#L81)
|
||||
[src/core/structures/enums.ts:81](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/structures/enums.ts#L81)
|
||||
|
||||
@@ -26,4 +26,4 @@ title: "CommandControlPlugin"
|
||||
|
||||
## Source
|
||||
|
||||
[src/core/create-plugins.ts:37](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/create-plugins.ts#L37)
|
||||
[src/core/create-plugins.ts:37](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/create-plugins.ts#L37)
|
||||
|
||||
@@ -26,4 +26,4 @@ title: "CommandInitPlugin"
|
||||
|
||||
## Source
|
||||
|
||||
[src/core/create-plugins.ts:28](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/create-plugins.ts#L28)
|
||||
[src/core/create-plugins.ts:28](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/create-plugins.ts#L28)
|
||||
|
||||
@@ -32,4 +32,4 @@ Will probably be moved one day!
|
||||
|
||||
## Source
|
||||
|
||||
[src/core/create-plugins.ts:58](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/create-plugins.ts#L58)
|
||||
[src/core/create-plugins.ts:58](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/create-plugins.ts#L58)
|
||||
|
||||
@@ -26,4 +26,4 @@ title: "EventControlPlugin"
|
||||
|
||||
## Source
|
||||
|
||||
[src/core/create-plugins.ts:46](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/create-plugins.ts#L46)
|
||||
[src/core/create-plugins.ts:46](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/create-plugins.ts#L46)
|
||||
|
||||
@@ -26,4 +26,4 @@ title: "EventInitPlugin"
|
||||
|
||||
## Source
|
||||
|
||||
[src/core/create-plugins.ts:19](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/create-plugins.ts#L19)
|
||||
[src/core/create-plugins.ts:19](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/create-plugins.ts#L19)
|
||||
|
||||
@@ -38,4 +38,4 @@ const client = Service('@sern/client');
|
||||
|
||||
## Source
|
||||
|
||||
[src/core/ioc/dependency-injection.ts:37](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/ioc/dependency-injection.ts#L37)
|
||||
[src/core/ioc/dependency-injection.ts:37](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/ioc/dependency-injection.ts#L37)
|
||||
|
||||
@@ -28,4 +28,4 @@ The plural version of [Service](../../../../../../v3/api/functions/service)
|
||||
|
||||
## Source
|
||||
|
||||
[src/core/ioc/dependency-injection.ts:47](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/ioc/dependency-injection.ts#L47)
|
||||
[src/core/ioc/dependency-injection.ts:47](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/ioc/dependency-injection.ts#L47)
|
||||
|
||||
@@ -21,4 +21,4 @@ title: "commandModule"
|
||||
|
||||
## Source
|
||||
|
||||
[src/core/modules.ts:19](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/modules.ts#L19)
|
||||
[src/core/modules.ts:19](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/modules.ts#L19)
|
||||
|
||||
@@ -33,4 +33,4 @@ where typings can be very bad.
|
||||
|
||||
## Source
|
||||
|
||||
[src/core/modules.ts:47](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/modules.ts#L47)
|
||||
[src/core/modules.ts:47](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/modules.ts#L47)
|
||||
|
||||
@@ -22,4 +22,4 @@ The wrapper function to define event modules for sern
|
||||
|
||||
## Source
|
||||
|
||||
[src/core/modules.ts:32](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/modules.ts#L32)
|
||||
[src/core/modules.ts:32](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/modules.ts#L32)
|
||||
|
||||
@@ -21,4 +21,4 @@ title: "makeDependencies"
|
||||
|
||||
## Source
|
||||
|
||||
[src/core/ioc/base.ts:144](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/ioc/base.ts#L144)
|
||||
[src/core/ioc/base.ts:144](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/ioc/base.ts#L144)
|
||||
|
||||
@@ -23,4 +23,4 @@ title: "makePlugin"
|
||||
|
||||
## Source
|
||||
|
||||
[src/core/create-plugins.ts:6](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/create-plugins.ts#L6)
|
||||
[src/core/create-plugins.ts:6](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/create-plugins.ts#L6)
|
||||
|
||||
@@ -32,4 +32,4 @@ Creates a singleton object.
|
||||
|
||||
## Source
|
||||
|
||||
[src/core/ioc/dependency-injection.ts:11](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/ioc/dependency-injection.ts#L11)
|
||||
[src/core/ioc/dependency-injection.ts:11](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/ioc/dependency-injection.ts#L11)
|
||||
|
||||
@@ -36,4 +36,4 @@ Creates a transient object
|
||||
|
||||
## Source
|
||||
|
||||
[src/core/ioc/dependency-injection.ts:21](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/ioc/dependency-injection.ts#L21)
|
||||
[src/core/ioc/dependency-injection.ts:21](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/ioc/dependency-injection.ts#L21)
|
||||
|
||||
@@ -17,7 +17,7 @@ title: "BothCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:125](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L125)
|
||||
[src/types/core-modules.ts:125](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L125)
|
||||
|
||||
***
|
||||
|
||||
@@ -31,7 +31,7 @@ title: "BothCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:126](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L126)
|
||||
[src/types/core-modules.ts:126](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L126)
|
||||
|
||||
***
|
||||
|
||||
@@ -55,7 +55,7 @@ title: "BothCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:128](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L128)
|
||||
[src/types/core-modules.ts:128](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L128)
|
||||
|
||||
***
|
||||
|
||||
@@ -69,7 +69,7 @@ title: "BothCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:33](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L33)
|
||||
[src/types/core-modules.ts:33](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L33)
|
||||
|
||||
***
|
||||
|
||||
@@ -83,7 +83,7 @@ title: "BothCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:34](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L34)
|
||||
[src/types/core-modules.ts:34](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L34)
|
||||
|
||||
***
|
||||
|
||||
@@ -93,7 +93,7 @@ title: "BothCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:127](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L127)
|
||||
[src/types/core-modules.ts:127](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L127)
|
||||
|
||||
***
|
||||
|
||||
@@ -107,7 +107,7 @@ title: "BothCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:35](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L35)
|
||||
[src/types/core-modules.ts:35](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L35)
|
||||
|
||||
***
|
||||
|
||||
@@ -121,4 +121,4 @@ title: "BothCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:124](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L124)
|
||||
[src/types/core-modules.ts:124](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L124)
|
||||
|
||||
@@ -21,7 +21,7 @@ title: "ButtonCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:36](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L36)
|
||||
[src/types/core-modules.ts:36](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L36)
|
||||
|
||||
***
|
||||
|
||||
@@ -43,7 +43,7 @@ title: "ButtonCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:65](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L65)
|
||||
[src/types/core-modules.ts:65](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L65)
|
||||
|
||||
***
|
||||
|
||||
@@ -57,7 +57,7 @@ title: "ButtonCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:33](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L33)
|
||||
[src/types/core-modules.ts:33](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L33)
|
||||
|
||||
***
|
||||
|
||||
@@ -71,7 +71,7 @@ title: "ButtonCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:34](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L34)
|
||||
[src/types/core-modules.ts:34](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L34)
|
||||
|
||||
***
|
||||
|
||||
@@ -85,7 +85,7 @@ title: "ButtonCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:35](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L35)
|
||||
[src/types/core-modules.ts:35](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L35)
|
||||
|
||||
***
|
||||
|
||||
@@ -99,4 +99,4 @@ title: "ButtonCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:64](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L64)
|
||||
[src/types/core-modules.ts:64](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L64)
|
||||
|
||||
@@ -21,7 +21,7 @@ title: "ChannelSelectCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:36](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L36)
|
||||
[src/types/core-modules.ts:36](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L36)
|
||||
|
||||
***
|
||||
|
||||
@@ -43,7 +43,7 @@ title: "ChannelSelectCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:75](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L75)
|
||||
[src/types/core-modules.ts:75](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L75)
|
||||
|
||||
***
|
||||
|
||||
@@ -57,7 +57,7 @@ title: "ChannelSelectCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:33](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L33)
|
||||
[src/types/core-modules.ts:33](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L33)
|
||||
|
||||
***
|
||||
|
||||
@@ -71,7 +71,7 @@ title: "ChannelSelectCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:34](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L34)
|
||||
[src/types/core-modules.ts:34](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L34)
|
||||
|
||||
***
|
||||
|
||||
@@ -85,7 +85,7 @@ title: "ChannelSelectCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:35](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L35)
|
||||
[src/types/core-modules.ts:35](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L35)
|
||||
|
||||
***
|
||||
|
||||
@@ -99,4 +99,4 @@ title: "ChannelSelectCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:74](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L74)
|
||||
[src/types/core-modules.ts:74](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L74)
|
||||
|
||||
@@ -13,7 +13,7 @@ title: "CommandModuleDefs"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:150](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L150)
|
||||
[src/types/core-modules.ts:150](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L150)
|
||||
|
||||
***
|
||||
|
||||
@@ -23,7 +23,7 @@ title: "CommandModuleDefs"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:158](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L158)
|
||||
[src/types/core-modules.ts:158](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L158)
|
||||
|
||||
***
|
||||
|
||||
@@ -33,7 +33,7 @@ title: "CommandModuleDefs"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:160](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L160)
|
||||
[src/types/core-modules.ts:160](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L160)
|
||||
|
||||
***
|
||||
|
||||
@@ -43,7 +43,7 @@ title: "CommandModuleDefs"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:155](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L155)
|
||||
[src/types/core-modules.ts:155](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L155)
|
||||
|
||||
***
|
||||
|
||||
@@ -53,7 +53,7 @@ title: "CommandModuleDefs"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:151](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L151)
|
||||
[src/types/core-modules.ts:151](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L151)
|
||||
|
||||
***
|
||||
|
||||
@@ -63,7 +63,7 @@ title: "CommandModuleDefs"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:157](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L157)
|
||||
[src/types/core-modules.ts:157](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L157)
|
||||
|
||||
***
|
||||
|
||||
@@ -73,7 +73,7 @@ title: "CommandModuleDefs"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:152](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L152)
|
||||
[src/types/core-modules.ts:152](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L152)
|
||||
|
||||
***
|
||||
|
||||
@@ -83,7 +83,7 @@ title: "CommandModuleDefs"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:156](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L156)
|
||||
[src/types/core-modules.ts:156](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L156)
|
||||
|
||||
***
|
||||
|
||||
@@ -93,7 +93,7 @@ title: "CommandModuleDefs"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:154](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L154)
|
||||
[src/types/core-modules.ts:154](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L154)
|
||||
|
||||
***
|
||||
|
||||
@@ -103,7 +103,7 @@ title: "CommandModuleDefs"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:159](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L159)
|
||||
[src/types/core-modules.ts:159](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L159)
|
||||
|
||||
***
|
||||
|
||||
@@ -113,7 +113,7 @@ title: "CommandModuleDefs"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:161](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L161)
|
||||
[src/types/core-modules.ts:161](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L161)
|
||||
|
||||
***
|
||||
|
||||
@@ -123,4 +123,4 @@ title: "CommandModuleDefs"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:153](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L153)
|
||||
[src/types/core-modules.ts:153](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L153)
|
||||
|
||||
@@ -21,7 +21,7 @@ title: "ContextMenuMsg"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:36](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L36)
|
||||
[src/types/core-modules.ts:36](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L36)
|
||||
|
||||
***
|
||||
|
||||
@@ -43,7 +43,7 @@ title: "ContextMenuMsg"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:60](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L60)
|
||||
[src/types/core-modules.ts:60](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L60)
|
||||
|
||||
***
|
||||
|
||||
@@ -57,7 +57,7 @@ title: "ContextMenuMsg"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:33](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L33)
|
||||
[src/types/core-modules.ts:33](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L33)
|
||||
|
||||
***
|
||||
|
||||
@@ -71,7 +71,7 @@ title: "ContextMenuMsg"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:34](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L34)
|
||||
[src/types/core-modules.ts:34](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L34)
|
||||
|
||||
***
|
||||
|
||||
@@ -85,7 +85,7 @@ title: "ContextMenuMsg"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:35](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L35)
|
||||
[src/types/core-modules.ts:35](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L35)
|
||||
|
||||
***
|
||||
|
||||
@@ -99,4 +99,4 @@ title: "ContextMenuMsg"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:59](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L59)
|
||||
[src/types/core-modules.ts:59](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L59)
|
||||
|
||||
@@ -21,7 +21,7 @@ title: "ContextMenuUser"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:36](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L36)
|
||||
[src/types/core-modules.ts:36](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L36)
|
||||
|
||||
***
|
||||
|
||||
@@ -43,7 +43,7 @@ title: "ContextMenuUser"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:55](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L55)
|
||||
[src/types/core-modules.ts:55](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L55)
|
||||
|
||||
***
|
||||
|
||||
@@ -57,7 +57,7 @@ title: "ContextMenuUser"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:33](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L33)
|
||||
[src/types/core-modules.ts:33](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L33)
|
||||
|
||||
***
|
||||
|
||||
@@ -71,7 +71,7 @@ title: "ContextMenuUser"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:34](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L34)
|
||||
[src/types/core-modules.ts:34](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L34)
|
||||
|
||||
***
|
||||
|
||||
@@ -85,7 +85,7 @@ title: "ContextMenuUser"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:35](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L35)
|
||||
[src/types/core-modules.ts:35](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L35)
|
||||
|
||||
***
|
||||
|
||||
@@ -99,4 +99,4 @@ title: "ContextMenuUser"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:54](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L54)
|
||||
[src/types/core-modules.ts:54](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L54)
|
||||
|
||||
@@ -25,7 +25,7 @@ title: "ControlPlugin"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-plugin.ts:73](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-plugin.ts#L73)
|
||||
[src/types/core-plugin.ts:73](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-plugin.ts#L73)
|
||||
|
||||
***
|
||||
|
||||
@@ -35,4 +35,4 @@ title: "ControlPlugin"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-plugin.ts:72](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-plugin.ts#L72)
|
||||
[src/types/core-plugin.ts:72](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-plugin.ts#L72)
|
||||
|
||||
@@ -17,7 +17,7 @@ title: "Controller"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-plugin.ts:59](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-plugin.ts#L59)
|
||||
[src/types/core-plugin.ts:59](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-plugin.ts#L59)
|
||||
|
||||
***
|
||||
|
||||
@@ -31,4 +31,4 @@ title: "Controller"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-plugin.ts:60](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-plugin.ts#L60)
|
||||
[src/types/core-plugin.ts:60](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-plugin.ts#L60)
|
||||
|
||||
@@ -17,7 +17,7 @@ title: "CoreDependencies"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/ioc.ts:28](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/ioc.ts#L28)
|
||||
[src/types/ioc.ts:28](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/ioc.ts#L28)
|
||||
|
||||
***
|
||||
|
||||
@@ -31,7 +31,7 @@ title: "CoreDependencies"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/ioc.ts:29](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/ioc.ts#L29)
|
||||
[src/types/ioc.ts:29](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/ioc.ts#L29)
|
||||
|
||||
***
|
||||
|
||||
@@ -45,7 +45,7 @@ title: "CoreDependencies"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/ioc.ts:36](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/ioc.ts#L36)
|
||||
[src/types/ioc.ts:36](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/ioc.ts#L36)
|
||||
|
||||
***
|
||||
|
||||
@@ -59,7 +59,7 @@ title: "CoreDependencies"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/ioc.ts:37](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/ioc.ts#L37)
|
||||
[src/types/ioc.ts:37](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/ioc.ts#L37)
|
||||
|
||||
***
|
||||
|
||||
@@ -73,7 +73,7 @@ title: "CoreDependencies"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/ioc.ts:35](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/ioc.ts#L35)
|
||||
[src/types/ioc.ts:35](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/ioc.ts#L35)
|
||||
|
||||
***
|
||||
|
||||
@@ -91,4 +91,4 @@ Will be removed and turned internal
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/ioc.ts:34](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/ioc.ts#L34)
|
||||
[src/types/ioc.ts:34](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/ioc.ts#L34)
|
||||
|
||||
@@ -15,7 +15,7 @@ Represents a core module store that stores IDs mapped to file paths.
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/contracts/module-store.ts:7](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/contracts/module-store.ts#L7)
|
||||
[src/core/contracts/module-store.ts:7](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/contracts/module-store.ts#L7)
|
||||
|
||||
***
|
||||
|
||||
@@ -25,4 +25,4 @@ Represents a core module store that stores IDs mapped to file paths.
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/contracts/module-store.ts:8](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/contracts/module-store.ts#L8)
|
||||
[src/core/contracts/module-store.ts:8](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/contracts/module-store.ts#L8)
|
||||
|
||||
@@ -25,7 +25,7 @@ title: "DiscordEventCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:36](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L36)
|
||||
[src/types/core-modules.ts:36](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L36)
|
||||
|
||||
***
|
||||
|
||||
@@ -39,7 +39,7 @@ title: "DiscordEventCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:106](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L106)
|
||||
[src/types/core-modules.ts:106](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L106)
|
||||
|
||||
***
|
||||
|
||||
@@ -53,7 +53,7 @@ title: "DiscordEventCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:34](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L34)
|
||||
[src/types/core-modules.ts:34](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L34)
|
||||
|
||||
***
|
||||
|
||||
@@ -67,7 +67,7 @@ title: "DiscordEventCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:35](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L35)
|
||||
[src/types/core-modules.ts:35](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L35)
|
||||
|
||||
***
|
||||
|
||||
@@ -81,7 +81,7 @@ title: "DiscordEventCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:107](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L107)
|
||||
[src/types/core-modules.ts:107](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L107)
|
||||
|
||||
## Methods
|
||||
|
||||
@@ -103,4 +103,4 @@ title: "DiscordEventCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:108](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L108)
|
||||
[src/types/core-modules.ts:108](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L108)
|
||||
|
||||
@@ -20,4 +20,4 @@ Let dependencies implement this to dispose and cleanup.
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/contracts/hooks.ts:15](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/contracts/hooks.ts#L15)
|
||||
[src/core/contracts/hooks.ts:15](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/contracts/hooks.ts#L15)
|
||||
|
||||
@@ -23,7 +23,7 @@ title: "Emitter"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/contracts/emitter.ts:6](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/contracts/emitter.ts#L6)
|
||||
[src/core/contracts/emitter.ts:6](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/contracts/emitter.ts#L6)
|
||||
|
||||
***
|
||||
|
||||
@@ -43,7 +43,7 @@ title: "Emitter"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/contracts/emitter.ts:8](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/contracts/emitter.ts#L8)
|
||||
[src/core/contracts/emitter.ts:8](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/contracts/emitter.ts#L8)
|
||||
|
||||
***
|
||||
|
||||
@@ -63,4 +63,4 @@ title: "Emitter"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/contracts/emitter.ts:7](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/contracts/emitter.ts#L7)
|
||||
[src/core/contracts/emitter.ts:7](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/contracts/emitter.ts#L7)
|
||||
|
||||
@@ -29,7 +29,7 @@ Version 4 will remove this method
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/contracts/error-handling.ts:9](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/contracts/error-handling.ts#L9)
|
||||
[src/core/contracts/error-handling.ts:9](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/contracts/error-handling.ts#L9)
|
||||
|
||||
***
|
||||
|
||||
@@ -49,4 +49,4 @@ A function that is called on every throw.
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/contracts/error-handling.ts:14](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/contracts/error-handling.ts#L14)
|
||||
[src/core/contracts/error-handling.ts:14](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/contracts/error-handling.ts#L14)
|
||||
|
||||
@@ -13,7 +13,7 @@ title: "EventModuleDefs"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:166](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L166)
|
||||
[src/types/core-modules.ts:166](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L166)
|
||||
|
||||
***
|
||||
|
||||
@@ -23,7 +23,7 @@ title: "EventModuleDefs"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:165](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L165)
|
||||
[src/types/core-modules.ts:165](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L165)
|
||||
|
||||
***
|
||||
|
||||
@@ -33,4 +33,4 @@ title: "EventModuleDefs"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:167](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L167)
|
||||
[src/types/core-modules.ts:167](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L167)
|
||||
|
||||
@@ -21,7 +21,7 @@ title: "ExternalEventCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:36](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L36)
|
||||
[src/types/core-modules.ts:36](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L36)
|
||||
|
||||
***
|
||||
|
||||
@@ -31,7 +31,7 @@ title: "ExternalEventCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:48](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L48)
|
||||
[src/types/core-modules.ts:48](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L48)
|
||||
|
||||
***
|
||||
|
||||
@@ -45,7 +45,7 @@ title: "ExternalEventCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:47](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L47)
|
||||
[src/types/core-modules.ts:47](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L47)
|
||||
|
||||
***
|
||||
|
||||
@@ -59,7 +59,7 @@ title: "ExternalEventCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:34](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L34)
|
||||
[src/types/core-modules.ts:34](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L34)
|
||||
|
||||
***
|
||||
|
||||
@@ -73,7 +73,7 @@ title: "ExternalEventCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:35](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L35)
|
||||
[src/types/core-modules.ts:35](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L35)
|
||||
|
||||
***
|
||||
|
||||
@@ -87,7 +87,7 @@ title: "ExternalEventCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:49](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L49)
|
||||
[src/types/core-modules.ts:49](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L49)
|
||||
|
||||
## Methods
|
||||
|
||||
@@ -109,4 +109,4 @@ title: "ExternalEventCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:50](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L50)
|
||||
[src/types/core-modules.ts:50](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L50)
|
||||
|
||||
@@ -20,4 +20,4 @@ Let dependencies implement this to initiate some logic.
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/contracts/hooks.ts:7](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/contracts/hooks.ts#L7)
|
||||
[src/core/contracts/hooks.ts:7](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/contracts/hooks.ts#L7)
|
||||
|
||||
@@ -25,7 +25,7 @@ title: "InitPlugin"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-plugin.ts:69](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-plugin.ts#L69)
|
||||
[src/types/core-plugin.ts:69](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-plugin.ts#L69)
|
||||
|
||||
***
|
||||
|
||||
@@ -35,4 +35,4 @@ title: "InitPlugin"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-plugin.ts:68](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-plugin.ts#L68)
|
||||
[src/types/core-plugin.ts:68](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-plugin.ts#L68)
|
||||
|
||||
@@ -29,7 +29,7 @@ title: "Logging"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/contracts/logging.ts:8](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/contracts/logging.ts#L8)
|
||||
[src/core/contracts/logging.ts:8](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/contracts/logging.ts#L8)
|
||||
|
||||
***
|
||||
|
||||
@@ -47,7 +47,7 @@ title: "Logging"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/contracts/logging.ts:5](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/contracts/logging.ts#L5)
|
||||
[src/core/contracts/logging.ts:5](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/contracts/logging.ts#L5)
|
||||
|
||||
***
|
||||
|
||||
@@ -65,7 +65,7 @@ title: "Logging"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/contracts/logging.ts:7](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/contracts/logging.ts#L7)
|
||||
[src/core/contracts/logging.ts:7](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/contracts/logging.ts#L7)
|
||||
|
||||
***
|
||||
|
||||
@@ -83,4 +83,4 @@ title: "Logging"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/contracts/logging.ts:6](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/contracts/logging.ts#L6)
|
||||
[src/core/contracts/logging.ts:6](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/contracts/logging.ts#L6)
|
||||
|
||||
@@ -21,7 +21,7 @@ title: "MentionableSelectCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:36](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L36)
|
||||
[src/types/core-modules.ts:36](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L36)
|
||||
|
||||
***
|
||||
|
||||
@@ -43,7 +43,7 @@ title: "MentionableSelectCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:85](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L85)
|
||||
[src/types/core-modules.ts:85](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L85)
|
||||
|
||||
***
|
||||
|
||||
@@ -57,7 +57,7 @@ title: "MentionableSelectCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:33](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L33)
|
||||
[src/types/core-modules.ts:33](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L33)
|
||||
|
||||
***
|
||||
|
||||
@@ -71,7 +71,7 @@ title: "MentionableSelectCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:34](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L34)
|
||||
[src/types/core-modules.ts:34](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L34)
|
||||
|
||||
***
|
||||
|
||||
@@ -85,7 +85,7 @@ title: "MentionableSelectCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:35](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L35)
|
||||
[src/types/core-modules.ts:35](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L35)
|
||||
|
||||
***
|
||||
|
||||
@@ -99,4 +99,4 @@ title: "MentionableSelectCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:84](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L84)
|
||||
[src/types/core-modules.ts:84](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L84)
|
||||
|
||||
@@ -21,7 +21,7 @@ title: "ModalSubmitCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:36](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L36)
|
||||
[src/types/core-modules.ts:36](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L36)
|
||||
|
||||
***
|
||||
|
||||
@@ -43,7 +43,7 @@ title: "ModalSubmitCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:95](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L95)
|
||||
[src/types/core-modules.ts:95](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L95)
|
||||
|
||||
***
|
||||
|
||||
@@ -57,7 +57,7 @@ title: "ModalSubmitCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:33](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L33)
|
||||
[src/types/core-modules.ts:33](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L33)
|
||||
|
||||
***
|
||||
|
||||
@@ -71,7 +71,7 @@ title: "ModalSubmitCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:34](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L34)
|
||||
[src/types/core-modules.ts:34](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L34)
|
||||
|
||||
***
|
||||
|
||||
@@ -85,7 +85,7 @@ title: "ModalSubmitCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:35](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L35)
|
||||
[src/types/core-modules.ts:35](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L35)
|
||||
|
||||
***
|
||||
|
||||
@@ -99,4 +99,4 @@ title: "ModalSubmitCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:94](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L94)
|
||||
[src/types/core-modules.ts:94](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L94)
|
||||
|
||||
@@ -25,7 +25,7 @@ title: "Plugin"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-plugin.ts:64](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-plugin.ts#L64)
|
||||
[src/types/core-plugin.ts:64](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-plugin.ts#L64)
|
||||
|
||||
***
|
||||
|
||||
@@ -35,4 +35,4 @@ title: "Plugin"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-plugin.ts:63](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-plugin.ts#L63)
|
||||
[src/types/core-plugin.ts:63](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-plugin.ts#L63)
|
||||
|
||||
@@ -21,7 +21,7 @@ title: "RoleSelectCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:36](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L36)
|
||||
[src/types/core-modules.ts:36](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L36)
|
||||
|
||||
***
|
||||
|
||||
@@ -43,7 +43,7 @@ title: "RoleSelectCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:80](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L80)
|
||||
[src/types/core-modules.ts:80](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L80)
|
||||
|
||||
***
|
||||
|
||||
@@ -57,7 +57,7 @@ title: "RoleSelectCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:33](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L33)
|
||||
[src/types/core-modules.ts:33](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L33)
|
||||
|
||||
***
|
||||
|
||||
@@ -71,7 +71,7 @@ title: "RoleSelectCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:34](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L34)
|
||||
[src/types/core-modules.ts:34](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L34)
|
||||
|
||||
***
|
||||
|
||||
@@ -85,7 +85,7 @@ title: "RoleSelectCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:35](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L35)
|
||||
[src/types/core-modules.ts:35](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L35)
|
||||
|
||||
***
|
||||
|
||||
@@ -99,4 +99,4 @@ title: "RoleSelectCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:79](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L79)
|
||||
[src/types/core-modules.ts:79](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L79)
|
||||
|
||||
@@ -17,7 +17,7 @@ title: "SernAutocompleteData"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:172](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L172)
|
||||
[src/types/core-modules.ts:172](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L172)
|
||||
|
||||
***
|
||||
|
||||
@@ -27,7 +27,7 @@ title: "SernAutocompleteData"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:177](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L177)
|
||||
[src/types/core-modules.ts:177](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L177)
|
||||
|
||||
***
|
||||
|
||||
@@ -41,13 +41,13 @@ title: "SernAutocompleteData"
|
||||
|
||||
#### Source
|
||||
|
||||
node\_modules/discord.js/typings/index.d.ts:5035
|
||||
node\_modules/discord.js/typings/index.d.ts:4715
|
||||
|
||||
***
|
||||
|
||||
### descriptionLocalizations?
|
||||
|
||||
> `optional` **descriptionLocalizations**: `Partial`\<`Record`\<`Locale`, `null` \| `string`\>\>
|
||||
> `optional` **descriptionLocalizations**: `Partial`\<`Record`\<`"id"` \| `"en-US"` \| `"en-GB"` \| `"bg"` \| `"zh-CN"` \| `"zh-TW"` \| `"hr"` \| `"cs"` \| `"da"` \| `"nl"` \| `"fi"` \| `"fr"` \| `"de"` \| `"el"` \| `"hi"` \| `"hu"` \| `"it"` \| `"ja"` \| `"ko"` \| `"lt"` \| `"no"` \| `"pl"` \| `"pt-BR"` \| `"ro"` \| `"ru"` \| `"es-ES"` \| `"es-419"` \| `"sv-SE"` \| `"th"` \| `"tr"` \| `"uk"` \| `"vi"`, `null` \| `string`\>\>
|
||||
|
||||
#### Inherited from
|
||||
|
||||
@@ -55,7 +55,7 @@ node\_modules/discord.js/typings/index.d.ts:5035
|
||||
|
||||
#### Source
|
||||
|
||||
node\_modules/discord.js/typings/index.d.ts:5036
|
||||
node\_modules/discord.js/typings/index.d.ts:4716
|
||||
|
||||
***
|
||||
|
||||
@@ -69,13 +69,13 @@ node\_modules/discord.js/typings/index.d.ts:5036
|
||||
|
||||
#### Source
|
||||
|
||||
node\_modules/discord.js/typings/index.d.ts:5033
|
||||
node\_modules/discord.js/typings/index.d.ts:4713
|
||||
|
||||
***
|
||||
|
||||
### nameLocalizations?
|
||||
|
||||
> `optional` **nameLocalizations**: `Partial`\<`Record`\<`Locale`, `null` \| `string`\>\>
|
||||
> `optional` **nameLocalizations**: `Partial`\<`Record`\<`"id"` \| `"en-US"` \| `"en-GB"` \| `"bg"` \| `"zh-CN"` \| `"zh-TW"` \| `"hr"` \| `"cs"` \| `"da"` \| `"nl"` \| `"fi"` \| `"fr"` \| `"de"` \| `"el"` \| `"hi"` \| `"hu"` \| `"it"` \| `"ja"` \| `"ko"` \| `"lt"` \| `"no"` \| `"pl"` \| `"pt-BR"` \| `"ro"` \| `"ru"` \| `"es-ES"` \| `"es-419"` \| `"sv-SE"` \| `"th"` \| `"tr"` \| `"uk"` \| `"vi"`, `null` \| `string`\>\>
|
||||
|
||||
#### Inherited from
|
||||
|
||||
@@ -83,7 +83,7 @@ node\_modules/discord.js/typings/index.d.ts:5033
|
||||
|
||||
#### Source
|
||||
|
||||
node\_modules/discord.js/typings/index.d.ts:5034
|
||||
node\_modules/discord.js/typings/index.d.ts:4714
|
||||
|
||||
***
|
||||
|
||||
@@ -97,7 +97,7 @@ node\_modules/discord.js/typings/index.d.ts:5034
|
||||
|
||||
#### Source
|
||||
|
||||
node\_modules/discord.js/typings/index.d.ts:5037
|
||||
node\_modules/discord.js/typings/index.d.ts:4717
|
||||
|
||||
***
|
||||
|
||||
@@ -107,4 +107,4 @@ node\_modules/discord.js/typings/index.d.ts:5037
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:173](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L173)
|
||||
[src/types/core-modules.ts:173](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L173)
|
||||
|
||||
@@ -25,7 +25,7 @@ title: "SernEventCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:36](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L36)
|
||||
[src/types/core-modules.ts:36](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L36)
|
||||
|
||||
***
|
||||
|
||||
@@ -39,7 +39,7 @@ title: "SernEventCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:42](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L42)
|
||||
[src/types/core-modules.ts:42](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L42)
|
||||
|
||||
***
|
||||
|
||||
@@ -53,7 +53,7 @@ title: "SernEventCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:34](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L34)
|
||||
[src/types/core-modules.ts:34](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L34)
|
||||
|
||||
***
|
||||
|
||||
@@ -67,7 +67,7 @@ title: "SernEventCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:35](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L35)
|
||||
[src/types/core-modules.ts:35](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L35)
|
||||
|
||||
***
|
||||
|
||||
@@ -81,7 +81,7 @@ title: "SernEventCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:43](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L43)
|
||||
[src/types/core-modules.ts:43](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L43)
|
||||
|
||||
## Methods
|
||||
|
||||
@@ -103,4 +103,4 @@ title: "SernEventCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:44](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L44)
|
||||
[src/types/core-modules.ts:44](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L44)
|
||||
|
||||
@@ -13,7 +13,7 @@ title: "SernEventsMapping"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/utility.ts:21](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/utility.ts#L21)
|
||||
[src/types/utility.ts:21](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/utility.ts#L21)
|
||||
|
||||
***
|
||||
|
||||
@@ -23,7 +23,7 @@ title: "SernEventsMapping"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/utility.ts:20](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/utility.ts#L20)
|
||||
[src/types/utility.ts:20](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/utility.ts#L20)
|
||||
|
||||
***
|
||||
|
||||
@@ -33,7 +33,7 @@ title: "SernEventsMapping"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/utility.ts:19](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/utility.ts#L19)
|
||||
[src/types/utility.ts:19](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/utility.ts#L19)
|
||||
|
||||
***
|
||||
|
||||
@@ -43,7 +43,7 @@ title: "SernEventsMapping"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/utility.ts:23](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/utility.ts#L23)
|
||||
[src/types/utility.ts:23](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/utility.ts#L23)
|
||||
|
||||
***
|
||||
|
||||
@@ -53,4 +53,4 @@ title: "SernEventsMapping"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/utility.ts:22](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/utility.ts#L22)
|
||||
[src/types/utility.ts:22](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/utility.ts#L22)
|
||||
|
||||
@@ -27,7 +27,7 @@ node\_modules/discord-api-types/payloads/v10/\_interactions/\_applicationCommand
|
||||
|
||||
### description\_localizations?
|
||||
|
||||
> `optional` **description\_localizations**: `null` \| `Partial`\<`Record`\<`Locale`, `null` \| `string`\>\>
|
||||
> `optional` **description\_localizations**: `null` \| `Partial`\<`Record`\<`"id"` \| `"en-US"` \| `"en-GB"` \| `"bg"` \| `"zh-CN"` \| `"zh-TW"` \| `"hr"` \| `"cs"` \| `"da"` \| `"nl"` \| `"fi"` \| `"fr"` \| `"de"` \| `"el"` \| `"hi"` \| `"hu"` \| `"it"` \| `"ja"` \| `"ko"` \| `"lt"` \| `"no"` \| `"pl"` \| `"pt-BR"` \| `"ro"` \| `"ru"` \| `"es-ES"` \| `"es-419"` \| `"sv-SE"` \| `"th"` \| `"tr"` \| `"uk"` \| `"vi"`, `null` \| `string`\>\>
|
||||
|
||||
#### Inherited from
|
||||
|
||||
@@ -55,7 +55,7 @@ node\_modules/discord-api-types/payloads/v10/\_interactions/\_applicationCommand
|
||||
|
||||
### name\_localizations?
|
||||
|
||||
> `optional` **name\_localizations**: `null` \| `Partial`\<`Record`\<`Locale`, `null` \| `string`\>\>
|
||||
> `optional` **name\_localizations**: `null` \| `Partial`\<`Record`\<`"id"` \| `"en-US"` \| `"en-GB"` \| `"bg"` \| `"zh-CN"` \| `"zh-TW"` \| `"hr"` \| `"cs"` \| `"da"` \| `"nl"` \| `"fi"` \| `"fr"` \| `"de"` \| `"el"` \| `"hi"` \| `"hu"` \| `"it"` \| `"ja"` \| `"ko"` \| `"lt"` \| `"no"` \| `"pl"` \| `"pt-BR"` \| `"ro"` \| `"ru"` \| `"es-ES"` \| `"es-419"` \| `"sv-SE"` \| `"th"` \| `"tr"` \| `"uk"` \| `"vi"`, `null` \| `string`\>\>
|
||||
|
||||
#### Inherited from
|
||||
|
||||
@@ -73,7 +73,7 @@ node\_modules/discord-api-types/payloads/v10/\_interactions/\_applicationCommand
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:209](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L209)
|
||||
[src/types/core-modules.ts:209](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L209)
|
||||
|
||||
***
|
||||
|
||||
@@ -101,4 +101,4 @@ node\_modules/discord-api-types/payloads/v10/\_interactions/\_applicationCommand
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:208](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L208)
|
||||
[src/types/core-modules.ts:208](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L208)
|
||||
|
||||
@@ -21,7 +21,7 @@ title: "SernSubCommandGroupData"
|
||||
|
||||
#### Source
|
||||
|
||||
node\_modules/discord.js/typings/index.d.ts:5038
|
||||
node\_modules/discord.js/typings/index.d.ts:4718
|
||||
|
||||
***
|
||||
|
||||
@@ -35,13 +35,13 @@ node\_modules/discord.js/typings/index.d.ts:5038
|
||||
|
||||
#### Source
|
||||
|
||||
node\_modules/discord.js/typings/index.d.ts:5035
|
||||
node\_modules/discord.js/typings/index.d.ts:4715
|
||||
|
||||
***
|
||||
|
||||
### descriptionLocalizations?
|
||||
|
||||
> `optional` **descriptionLocalizations**: `Partial`\<`Record`\<`Locale`, `null` \| `string`\>\>
|
||||
> `optional` **descriptionLocalizations**: `Partial`\<`Record`\<`"id"` \| `"en-US"` \| `"en-GB"` \| `"bg"` \| `"zh-CN"` \| `"zh-TW"` \| `"hr"` \| `"cs"` \| `"da"` \| `"nl"` \| `"fi"` \| `"fr"` \| `"de"` \| `"el"` \| `"hi"` \| `"hu"` \| `"it"` \| `"ja"` \| `"ko"` \| `"lt"` \| `"no"` \| `"pl"` \| `"pt-BR"` \| `"ro"` \| `"ru"` \| `"es-ES"` \| `"es-419"` \| `"sv-SE"` \| `"th"` \| `"tr"` \| `"uk"` \| `"vi"`, `null` \| `string`\>\>
|
||||
|
||||
#### Inherited from
|
||||
|
||||
@@ -49,7 +49,7 @@ node\_modules/discord.js/typings/index.d.ts:5035
|
||||
|
||||
#### Source
|
||||
|
||||
node\_modules/discord.js/typings/index.d.ts:5036
|
||||
node\_modules/discord.js/typings/index.d.ts:4716
|
||||
|
||||
***
|
||||
|
||||
@@ -63,13 +63,13 @@ node\_modules/discord.js/typings/index.d.ts:5036
|
||||
|
||||
#### Source
|
||||
|
||||
node\_modules/discord.js/typings/index.d.ts:5033
|
||||
node\_modules/discord.js/typings/index.d.ts:4713
|
||||
|
||||
***
|
||||
|
||||
### nameLocalizations?
|
||||
|
||||
> `optional` **nameLocalizations**: `Partial`\<`Record`\<`Locale`, `null` \| `string`\>\>
|
||||
> `optional` **nameLocalizations**: `Partial`\<`Record`\<`"id"` \| `"en-US"` \| `"en-GB"` \| `"bg"` \| `"zh-CN"` \| `"zh-TW"` \| `"hr"` \| `"cs"` \| `"da"` \| `"nl"` \| `"fi"` \| `"fr"` \| `"de"` \| `"el"` \| `"hi"` \| `"hu"` \| `"it"` \| `"ja"` \| `"ko"` \| `"lt"` \| `"no"` \| `"pl"` \| `"pt-BR"` \| `"ro"` \| `"ru"` \| `"es-ES"` \| `"es-419"` \| `"sv-SE"` \| `"th"` \| `"tr"` \| `"uk"` \| `"vi"`, `null` \| `string`\>\>
|
||||
|
||||
#### Inherited from
|
||||
|
||||
@@ -77,7 +77,7 @@ node\_modules/discord.js/typings/index.d.ts:5033
|
||||
|
||||
#### Source
|
||||
|
||||
node\_modules/discord.js/typings/index.d.ts:5034
|
||||
node\_modules/discord.js/typings/index.d.ts:4714
|
||||
|
||||
***
|
||||
|
||||
@@ -87,7 +87,7 @@ node\_modules/discord.js/typings/index.d.ts:5034
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:214](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L214)
|
||||
[src/types/core-modules.ts:214](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L214)
|
||||
|
||||
***
|
||||
|
||||
@@ -101,7 +101,7 @@ node\_modules/discord.js/typings/index.d.ts:5034
|
||||
|
||||
#### Source
|
||||
|
||||
node\_modules/discord.js/typings/index.d.ts:5037
|
||||
node\_modules/discord.js/typings/index.d.ts:4717
|
||||
|
||||
***
|
||||
|
||||
@@ -111,4 +111,4 @@ node\_modules/discord.js/typings/index.d.ts:5037
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:213](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L213)
|
||||
[src/types/core-modules.ts:213](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L213)
|
||||
|
||||
@@ -21,7 +21,7 @@ title: "SlashCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:118](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L118)
|
||||
[src/types/core-modules.ts:118](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L118)
|
||||
|
||||
***
|
||||
|
||||
@@ -45,7 +45,7 @@ title: "SlashCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:120](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L120)
|
||||
[src/types/core-modules.ts:120](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L120)
|
||||
|
||||
***
|
||||
|
||||
@@ -59,7 +59,7 @@ title: "SlashCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:33](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L33)
|
||||
[src/types/core-modules.ts:33](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L33)
|
||||
|
||||
***
|
||||
|
||||
@@ -73,7 +73,7 @@ title: "SlashCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:34](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L34)
|
||||
[src/types/core-modules.ts:34](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L34)
|
||||
|
||||
***
|
||||
|
||||
@@ -83,7 +83,7 @@ title: "SlashCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:119](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L119)
|
||||
[src/types/core-modules.ts:119](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L119)
|
||||
|
||||
***
|
||||
|
||||
@@ -97,7 +97,7 @@ title: "SlashCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:35](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L35)
|
||||
[src/types/core-modules.ts:35](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L35)
|
||||
|
||||
***
|
||||
|
||||
@@ -111,4 +111,4 @@ title: "SlashCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:117](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L117)
|
||||
[src/types/core-modules.ts:117](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L117)
|
||||
|
||||
@@ -21,7 +21,7 @@ title: "StringSelectCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:36](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L36)
|
||||
[src/types/core-modules.ts:36](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L36)
|
||||
|
||||
***
|
||||
|
||||
@@ -43,7 +43,7 @@ title: "StringSelectCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:70](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L70)
|
||||
[src/types/core-modules.ts:70](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L70)
|
||||
|
||||
***
|
||||
|
||||
@@ -57,7 +57,7 @@ title: "StringSelectCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:33](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L33)
|
||||
[src/types/core-modules.ts:33](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L33)
|
||||
|
||||
***
|
||||
|
||||
@@ -71,7 +71,7 @@ title: "StringSelectCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:34](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L34)
|
||||
[src/types/core-modules.ts:34](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L34)
|
||||
|
||||
***
|
||||
|
||||
@@ -85,7 +85,7 @@ title: "StringSelectCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:35](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L35)
|
||||
[src/types/core-modules.ts:35](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L35)
|
||||
|
||||
***
|
||||
|
||||
@@ -99,4 +99,4 @@ title: "StringSelectCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:69](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L69)
|
||||
[src/types/core-modules.ts:69](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L69)
|
||||
|
||||
@@ -17,7 +17,7 @@ title: "TextCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:112](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L112)
|
||||
[src/types/core-modules.ts:112](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L112)
|
||||
|
||||
***
|
||||
|
||||
@@ -31,7 +31,7 @@ title: "TextCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:36](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L36)
|
||||
[src/types/core-modules.ts:36](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L36)
|
||||
|
||||
***
|
||||
|
||||
@@ -55,7 +55,7 @@ title: "TextCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:113](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L113)
|
||||
[src/types/core-modules.ts:113](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L113)
|
||||
|
||||
***
|
||||
|
||||
@@ -69,7 +69,7 @@ title: "TextCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:33](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L33)
|
||||
[src/types/core-modules.ts:33](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L33)
|
||||
|
||||
***
|
||||
|
||||
@@ -83,7 +83,7 @@ title: "TextCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:34](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L34)
|
||||
[src/types/core-modules.ts:34](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L34)
|
||||
|
||||
***
|
||||
|
||||
@@ -97,7 +97,7 @@ title: "TextCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:35](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L35)
|
||||
[src/types/core-modules.ts:35](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L35)
|
||||
|
||||
***
|
||||
|
||||
@@ -111,4 +111,4 @@ title: "TextCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:111](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L111)
|
||||
[src/types/core-modules.ts:111](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L111)
|
||||
|
||||
@@ -21,7 +21,7 @@ title: "UserSelectCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:36](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L36)
|
||||
[src/types/core-modules.ts:36](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L36)
|
||||
|
||||
***
|
||||
|
||||
@@ -43,7 +43,7 @@ title: "UserSelectCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:90](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L90)
|
||||
[src/types/core-modules.ts:90](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L90)
|
||||
|
||||
***
|
||||
|
||||
@@ -57,7 +57,7 @@ title: "UserSelectCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:33](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L33)
|
||||
[src/types/core-modules.ts:33](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L33)
|
||||
|
||||
***
|
||||
|
||||
@@ -71,7 +71,7 @@ title: "UserSelectCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:34](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L34)
|
||||
[src/types/core-modules.ts:34](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L34)
|
||||
|
||||
***
|
||||
|
||||
@@ -85,7 +85,7 @@ title: "UserSelectCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:35](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L35)
|
||||
[src/types/core-modules.ts:35](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L35)
|
||||
|
||||
***
|
||||
|
||||
@@ -99,4 +99,4 @@ title: "UserSelectCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:89](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L89)
|
||||
[src/types/core-modules.ts:89](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L89)
|
||||
|
||||
@@ -13,7 +13,7 @@ title: "Wrapper"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core.ts:9](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core.ts#L9)
|
||||
[src/types/core.ts:9](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core.ts#L9)
|
||||
|
||||
***
|
||||
|
||||
@@ -35,7 +35,7 @@ title: "Wrapper"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core.ts:20](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core.ts#L20)
|
||||
[src/types/core.ts:20](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core.ts#L20)
|
||||
|
||||
***
|
||||
|
||||
@@ -45,7 +45,7 @@ title: "Wrapper"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core.ts:10](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core.ts#L10)
|
||||
[src/types/core.ts:10](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core.ts#L10)
|
||||
|
||||
***
|
||||
|
||||
@@ -55,7 +55,7 @@ title: "Wrapper"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core.ts:11](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core.ts#L11)
|
||||
[src/types/core.ts:11](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core.ts#L11)
|
||||
|
||||
***
|
||||
|
||||
@@ -71,4 +71,4 @@ Overload to enable mode in case developer does not use a .env file.
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core.ts:16](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core.ts#L16)
|
||||
[src/types/core.ts:16](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core.ts#L16)
|
||||
|
||||
@@ -25,4 +25,4 @@ adjacent to the file where **Sern.init** is CALLED.
|
||||
|
||||
## Source
|
||||
|
||||
[src/core/presences.ts:28](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/presences.ts#L28)
|
||||
[src/core/presences.ts:28](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/presences.ts#L28)
|
||||
|
||||
@@ -94,4 +94,4 @@ Presence
|
||||
|
||||
## Source
|
||||
|
||||
[src/core/presences.ts:37](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/presences.ts#L37)
|
||||
[src/core/presences.ts:37](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/presences.ts#L37)
|
||||
|
||||
@@ -13,7 +13,7 @@ title: "Result"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/presences.ts:11](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/presences.ts#L11)
|
||||
[src/core/presences.ts:11](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/presences.ts#L11)
|
||||
|
||||
***
|
||||
|
||||
@@ -23,7 +23,7 @@ title: "Result"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/presences.ts:10](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/presences.ts#L10)
|
||||
[src/core/presences.ts:10](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/presences.ts#L10)
|
||||
|
||||
***
|
||||
|
||||
@@ -41,7 +41,7 @@ title: "Result"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/presences.ts:14](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/presences.ts#L14)
|
||||
[src/core/presences.ts:14](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/presences.ts#L14)
|
||||
|
||||
***
|
||||
|
||||
@@ -51,7 +51,7 @@ title: "Result"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/presences.ts:13](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/presences.ts#L13)
|
||||
[src/core/presences.ts:13](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/presences.ts#L13)
|
||||
|
||||
***
|
||||
|
||||
@@ -61,7 +61,7 @@ title: "Result"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/presences.ts:12](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/presences.ts#L12)
|
||||
[src/core/presences.ts:12](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/presences.ts#L12)
|
||||
|
||||
***
|
||||
|
||||
@@ -71,4 +71,4 @@ title: "Result"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/presences.ts:9](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/presences.ts#L9)
|
||||
[src/core/presences.ts:9](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/presences.ts#L9)
|
||||
|
||||
@@ -31,4 +31,4 @@ title: "Config"
|
||||
|
||||
## Source
|
||||
|
||||
[src/core/presences.ts:17](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/presences.ts#L17)
|
||||
[src/core/presences.ts:17](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/presences.ts#L17)
|
||||
|
||||
@@ -11,6 +11,9 @@ title: "init"
|
||||
|
||||
• **maybeWrapper**: [`Wrapper`](/v3/api/interfaces/wrapper/) \| `"file"`
|
||||
|
||||
Options to pass into sern.
|
||||
Function to start the handler up
|
||||
|
||||
## Returns
|
||||
|
||||
`void`
|
||||
@@ -30,4 +33,4 @@ Sern.init({
|
||||
|
||||
## Source
|
||||
|
||||
[src/sern.ts:26](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/sern.ts#L26)
|
||||
[src/sern.ts:26](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/sern.ts#L26)
|
||||
|
||||
@@ -9,4 +9,4 @@ title: "AnyCommandPlugin"
|
||||
|
||||
## Source
|
||||
|
||||
[src/types/core-plugin.ts:76](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-plugin.ts#L76)
|
||||
[src/types/core-plugin.ts:76](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-plugin.ts#L76)
|
||||
|
||||
@@ -9,4 +9,4 @@ title: "AnyEventPlugin"
|
||||
|
||||
## Source
|
||||
|
||||
[src/types/core-plugin.ts:77](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-plugin.ts#L77)
|
||||
[src/types/core-plugin.ts:77](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-plugin.ts#L77)
|
||||
|
||||
@@ -19,4 +19,4 @@ title: "Args"
|
||||
|
||||
## Source
|
||||
|
||||
[src/types/utility.ts:16](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/utility.ts#L16)
|
||||
[src/types/utility.ts:16](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/utility.ts#L16)
|
||||
|
||||
@@ -9,4 +9,4 @@ title: "CommandModule"
|
||||
|
||||
## Source
|
||||
|
||||
[src/types/core-modules.ts:132](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L132)
|
||||
[src/types/core-modules.ts:132](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L132)
|
||||
|
||||
@@ -9,4 +9,4 @@ title: "EventModule"
|
||||
|
||||
## Source
|
||||
|
||||
[src/types/core-modules.ts:131](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L131)
|
||||
[src/types/core-modules.ts:131](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L131)
|
||||
|
||||
@@ -16,4 +16,4 @@ If T has an init method, this will be called.
|
||||
|
||||
## Source
|
||||
|
||||
[src/types/ioc.ts:17](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/ioc.ts#L17)
|
||||
[src/types/ioc.ts:17](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/ioc.ts#L17)
|
||||
|
||||
@@ -19,4 +19,4 @@ title: "LogPayload"
|
||||
|
||||
## Source
|
||||
|
||||
[src/core/contracts/logging.ts:11](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/contracts/logging.ts#L11)
|
||||
[src/core/contracts/logging.ts:11](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/contracts/logging.ts#L11)
|
||||
|
||||
@@ -9,4 +9,4 @@ title: "Payload"
|
||||
|
||||
## Source
|
||||
|
||||
[src/types/utility.ts:26](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/utility.ts#L26)
|
||||
[src/types/utility.ts:26](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/utility.ts#L26)
|
||||
|
||||
@@ -9,4 +9,4 @@ title: "PluginResult"
|
||||
|
||||
## Source
|
||||
|
||||
[src/types/core-plugin.ts:51](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-plugin.ts#L51)
|
||||
[src/types/core-plugin.ts:51](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-plugin.ts#L51)
|
||||
|
||||
@@ -11,4 +11,4 @@ Type that replaces autocomplete with [SernAutocompleteData](../../../../../../v3
|
||||
|
||||
## Source
|
||||
|
||||
[src/types/core-modules.ts:200](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/core-modules.ts#L200)
|
||||
[src/types/core-modules.ts:200](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/core-modules.ts#L200)
|
||||
|
||||
@@ -20,4 +20,4 @@ T is created once and lazily.
|
||||
|
||||
## Source
|
||||
|
||||
[src/types/ioc.ts:7](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/ioc.ts#L7)
|
||||
[src/types/ioc.ts:7](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/ioc.ts#L7)
|
||||
|
||||
@@ -9,4 +9,4 @@ title: "SlashOptions"
|
||||
|
||||
## Source
|
||||
|
||||
[src/types/utility.ts:14](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/utility.ts#L14)
|
||||
[src/types/utility.ts:14](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/utility.ts#L14)
|
||||
|
||||
@@ -24,4 +24,4 @@ Every time this is called, a new object is created
|
||||
|
||||
## Source
|
||||
|
||||
[src/types/ioc.ts:12](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/types/ioc.ts#L12)
|
||||
[src/types/ioc.ts:12](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/types/ioc.ts#L12)
|
||||
|
||||
@@ -32,4 +32,4 @@ The object passed into every plugin to control a command's behavior
|
||||
|
||||
## Source
|
||||
|
||||
[src/core/create-plugins.ts:69](https://github.com/sern-handler/handler/blob/a19edaf8838dcf088d3947f4a6aa6213d8f5bb9e/src/core/create-plugins.ts#L69)
|
||||
[src/core/create-plugins.ts:69](https://github.com/sern-handler/handler/blob/04c4625bfa2f746935f4a8cee62b77cdffd86684/src/core/create-plugins.ts#L69)
|
||||
|
||||
@@ -7,7 +7,6 @@ title: "@sern/handler"
|
||||
|
||||
## Namespaces
|
||||
|
||||
- [Presence](/v4/api/namespaces/presence/readme/)
|
||||
- [Sern](/v4/api/namespaces/sern/readme/)
|
||||
|
||||
## Enumerations
|
||||
@@ -44,9 +43,8 @@ title: "@sern/handler"
|
||||
- [ModalSubmitCommand](/v4/api/interfaces/modalsubmitcommand/)
|
||||
- [Module](/v4/api/interfaces/module/)
|
||||
- [Plugin](/v4/api/interfaces/plugin/)
|
||||
- [PresenceResult](/v4/api/interfaces/presenceresult/)
|
||||
- [RoleSelectCommand](/v4/api/interfaces/roleselectcommand/)
|
||||
- [SDT](/v4/api/interfaces/sdt/)
|
||||
- [ScheduledTask](/v4/api/interfaces/scheduledtask/)
|
||||
- [SernAutocompleteData](/v4/api/interfaces/sernautocompletedata/)
|
||||
- [SernEventCommand](/v4/api/interfaces/serneventcommand/)
|
||||
- [SernEventsMapping](/v4/api/interfaces/serneventsmapping/)
|
||||
@@ -56,7 +54,6 @@ title: "@sern/handler"
|
||||
- [StringSelectCommand](/v4/api/interfaces/stringselectcommand/)
|
||||
- [TextCommand](/v4/api/interfaces/textcommand/)
|
||||
- [UserSelectCommand](/v4/api/interfaces/userselectcommand/)
|
||||
- [Wrapper](/v4/api/interfaces/wrapper/)
|
||||
|
||||
## Type Aliases
|
||||
|
||||
@@ -67,6 +64,8 @@ title: "@sern/handler"
|
||||
- [LogPayload](/v4/api/type-aliases/logpayload/)
|
||||
- [Payload](/v4/api/type-aliases/payload/)
|
||||
- [PluginResult](/v4/api/type-aliases/pluginresult/)
|
||||
- [PresenceConfig](/v4/api/type-aliases/presenceconfig/)
|
||||
- [SDT](/v4/api/type-aliases/sdt/)
|
||||
- [SernOptionsData](/v4/api/type-aliases/sernoptionsdata/)
|
||||
|
||||
## Variables
|
||||
@@ -86,6 +85,5 @@ title: "@sern/handler"
|
||||
- [eventModule](/v4/api/functions/eventmodule/)
|
||||
- [makeDependencies](/v4/api/functions/makedependencies/)
|
||||
- [makePlugin](/v4/api/functions/makeplugin/)
|
||||
- [scheduledTask](/v4/api/functions/scheduledtask/)
|
||||
- [single](/v4/api/functions/single/)
|
||||
- [transient](/v4/api/functions/transient/)
|
||||
|
||||
@@ -11,6 +11,10 @@ title: "Context"
|
||||
Provides values shared between
|
||||
Message and ChatInputCommandInteraction
|
||||
|
||||
## Extends
|
||||
|
||||
- `CoreContext`\<`Message`, `ChatInputCommandInteraction`\>
|
||||
|
||||
## Accessors
|
||||
|
||||
### channel
|
||||
@@ -23,7 +27,7 @@ Message and ChatInputCommandInteraction
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/context.ts:43](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/core/structures/context.ts#L43)
|
||||
[src/core/structures/context.ts:49](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/core/structures/context.ts#L49)
|
||||
|
||||
***
|
||||
|
||||
@@ -37,7 +41,7 @@ Message and ChatInputCommandInteraction
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/context.ts:47](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/core/structures/context.ts#L47)
|
||||
[src/core/structures/context.ts:53](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/core/structures/context.ts#L53)
|
||||
|
||||
***
|
||||
|
||||
@@ -51,7 +55,7 @@ Message and ChatInputCommandInteraction
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/context.ts:107](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/core/structures/context.ts#L107)
|
||||
[src/core/structures/context.ts:108](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/core/structures/context.ts#L108)
|
||||
|
||||
***
|
||||
|
||||
@@ -65,7 +69,7 @@ Message and ChatInputCommandInteraction
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/context.ts:67](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/core/structures/context.ts#L67)
|
||||
[src/core/structures/context.ts:73](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/core/structures/context.ts#L73)
|
||||
|
||||
***
|
||||
|
||||
@@ -79,7 +83,7 @@ Message and ChatInputCommandInteraction
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/context.ts:71](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/core/structures/context.ts#L71)
|
||||
[src/core/structures/context.ts:79](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/core/structures/context.ts#L79)
|
||||
|
||||
***
|
||||
|
||||
@@ -93,7 +97,7 @@ Message and ChatInputCommandInteraction
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/context.ts:75](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/core/structures/context.ts#L75)
|
||||
[src/core/structures/context.ts:85](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/core/structures/context.ts#L85)
|
||||
|
||||
***
|
||||
|
||||
@@ -107,7 +111,7 @@ Message and ChatInputCommandInteraction
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/context.ts:39](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/core/structures/context.ts#L39)
|
||||
[src/core/structures/context.ts:43](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/core/structures/context.ts#L43)
|
||||
|
||||
***
|
||||
|
||||
@@ -121,7 +125,7 @@ Message and ChatInputCommandInteraction
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/context.ts:111](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/core/structures/context.ts#L111)
|
||||
[src/core/structures/context.ts:114](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/core/structures/context.ts#L114)
|
||||
|
||||
***
|
||||
|
||||
@@ -135,7 +139,7 @@ Message and ChatInputCommandInteraction
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/context.ts:99](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/core/structures/context.ts#L99)
|
||||
[src/core/structures/context.ts:103](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/core/structures/context.ts#L103)
|
||||
|
||||
***
|
||||
|
||||
@@ -149,7 +153,7 @@ Message and ChatInputCommandInteraction
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/context.ts:81](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/core/structures/context.ts#L81)
|
||||
[src/core/structures/context.ts:93](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/core/structures/context.ts#L93)
|
||||
|
||||
***
|
||||
|
||||
@@ -163,7 +167,7 @@ Message and ChatInputCommandInteraction
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/context.ts:85](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/core/structures/context.ts#L85)
|
||||
[src/core/structures/context.ts:99](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/core/structures/context.ts#L99)
|
||||
|
||||
***
|
||||
|
||||
@@ -177,7 +181,7 @@ Message and ChatInputCommandInteraction
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/context.ts:25](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/core/structures/context.ts#L25)
|
||||
[src/core/structures/context.ts:26](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/core/structures/context.ts#L26)
|
||||
|
||||
***
|
||||
|
||||
@@ -191,7 +195,7 @@ Message and ChatInputCommandInteraction
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/context.ts:36](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/core/structures/context.ts#L36)
|
||||
[src/core/structures/context.ts:40](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/core/structures/context.ts#L40)
|
||||
|
||||
***
|
||||
|
||||
@@ -208,7 +212,7 @@ else, interaction.user
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/context.ts:55](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/core/structures/context.ts#L55)
|
||||
[src/core/structures/context.ts:63](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/core/structures/context.ts#L63)
|
||||
|
||||
***
|
||||
|
||||
@@ -222,35 +226,43 @@ else, interaction.user
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/context.ts:63](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/core/structures/context.ts#L63)
|
||||
[src/core/structures/context.ts:69](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/core/structures/context.ts#L69)
|
||||
|
||||
## Methods
|
||||
|
||||
### isMessage()
|
||||
|
||||
> **isMessage**(): `this is Context & Object`
|
||||
> **isMessage**(): `this is CoreContext<Message<boolean>, never>`
|
||||
|
||||
#### Returns
|
||||
|
||||
`this is Context & Object`
|
||||
`this is CoreContext<Message<boolean>, never>`
|
||||
|
||||
#### Inherited from
|
||||
|
||||
`CoreContext.isMessage`
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/context.ts:91](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/core/structures/context.ts#L91)
|
||||
[src/core/structures/core-context.ts:11](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/core/structures/core-context.ts#L11)
|
||||
|
||||
***
|
||||
|
||||
### isSlash()
|
||||
|
||||
> **isSlash**(): `this is Context & Object`
|
||||
> **isSlash**(): `this is CoreContext<never, ChatInputCommandInteraction<CacheType>>`
|
||||
|
||||
#### Returns
|
||||
|
||||
`this is Context & Object`
|
||||
`this is CoreContext<never, ChatInputCommandInteraction<CacheType>>`
|
||||
|
||||
#### Inherited from
|
||||
|
||||
`CoreContext.isSlash`
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/context.ts:95](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/core/structures/context.ts#L95)
|
||||
[src/core/structures/core-context.ts:15](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/core/structures/core-context.ts#L15)
|
||||
|
||||
***
|
||||
|
||||
@@ -268,7 +280,7 @@ else, interaction.user
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/context.ts:115](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/core/structures/context.ts#L115)
|
||||
[src/core/structures/context.ts:120](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/core/structures/context.ts#L120)
|
||||
|
||||
***
|
||||
|
||||
@@ -288,4 +300,4 @@ else, interaction.user
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/context.ts:124](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/core/structures/context.ts#L124)
|
||||
[src/core/structures/context.ts:129](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/core/structures/context.ts#L129)
|
||||
|
||||
@@ -31,7 +31,7 @@ export default commandModule({
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/enums.ts:20](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/core/structures/enums.ts#L20)
|
||||
[src/core/structures/enums.ts:20](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/core/structures/enums.ts#L20)
|
||||
|
||||
***
|
||||
|
||||
@@ -41,7 +41,7 @@ export default commandModule({
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/enums.ts:23](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/core/structures/enums.ts#L23)
|
||||
[src/core/structures/enums.ts:23](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/core/structures/enums.ts#L23)
|
||||
|
||||
***
|
||||
|
||||
@@ -51,7 +51,7 @@ export default commandModule({
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/enums.ts:29](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/core/structures/enums.ts#L29)
|
||||
[src/core/structures/enums.ts:29](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/core/structures/enums.ts#L29)
|
||||
|
||||
***
|
||||
|
||||
@@ -61,7 +61,7 @@ export default commandModule({
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/enums.ts:22](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/core/structures/enums.ts#L22)
|
||||
[src/core/structures/enums.ts:22](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/core/structures/enums.ts#L22)
|
||||
|
||||
***
|
||||
|
||||
@@ -71,7 +71,7 @@ export default commandModule({
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/enums.ts:21](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/core/structures/enums.ts#L21)
|
||||
[src/core/structures/enums.ts:21](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/core/structures/enums.ts#L21)
|
||||
|
||||
***
|
||||
|
||||
@@ -81,7 +81,7 @@ export default commandModule({
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/enums.ts:28](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/core/structures/enums.ts#L28)
|
||||
[src/core/structures/enums.ts:28](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/core/structures/enums.ts#L28)
|
||||
|
||||
***
|
||||
|
||||
@@ -91,7 +91,7 @@ export default commandModule({
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/enums.ts:25](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/core/structures/enums.ts#L25)
|
||||
[src/core/structures/enums.ts:25](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/core/structures/enums.ts#L25)
|
||||
|
||||
***
|
||||
|
||||
@@ -101,7 +101,7 @@ export default commandModule({
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/enums.ts:27](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/core/structures/enums.ts#L27)
|
||||
[src/core/structures/enums.ts:27](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/core/structures/enums.ts#L27)
|
||||
|
||||
***
|
||||
|
||||
@@ -111,7 +111,7 @@ export default commandModule({
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/enums.ts:19](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/core/structures/enums.ts#L19)
|
||||
[src/core/structures/enums.ts:19](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/core/structures/enums.ts#L19)
|
||||
|
||||
***
|
||||
|
||||
@@ -121,7 +121,7 @@ export default commandModule({
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/enums.ts:24](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/core/structures/enums.ts#L24)
|
||||
[src/core/structures/enums.ts:24](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/core/structures/enums.ts#L24)
|
||||
|
||||
***
|
||||
|
||||
@@ -131,7 +131,7 @@ export default commandModule({
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/enums.ts:18](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/core/structures/enums.ts#L18)
|
||||
[src/core/structures/enums.ts:18](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/core/structures/enums.ts#L18)
|
||||
|
||||
***
|
||||
|
||||
@@ -141,4 +141,4 @@ export default commandModule({
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/enums.ts:26](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/core/structures/enums.ts#L26)
|
||||
[src/core/structures/enums.ts:26](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/core/structures/enums.ts#L26)
|
||||
|
||||
@@ -22,6 +22,16 @@ export default eventModule({
|
||||
|
||||
## Enumeration Members
|
||||
|
||||
### Cron
|
||||
|
||||
> **Cron**: `3`
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/enums.ts:61](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/core/structures/enums.ts#L61)
|
||||
|
||||
***
|
||||
|
||||
### Discord
|
||||
|
||||
> **Discord**: `0`
|
||||
@@ -30,7 +40,7 @@ The EventType for handling discord events
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/enums.ts:51](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/core/structures/enums.ts#L51)
|
||||
[src/core/structures/enums.ts:51](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/core/structures/enums.ts#L51)
|
||||
|
||||
***
|
||||
|
||||
@@ -43,7 +53,7 @@ Could be for example, `process` events, database events
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/enums.ts:60](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/core/structures/enums.ts#L60)
|
||||
[src/core/structures/enums.ts:60](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/core/structures/enums.ts#L60)
|
||||
|
||||
***
|
||||
|
||||
@@ -55,4 +65,4 @@ The EventType for handling sern events
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/enums.ts:55](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/core/structures/enums.ts#L55)
|
||||
[src/core/structures/enums.ts:55](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/core/structures/enums.ts#L55)
|
||||
|
||||
@@ -17,7 +17,7 @@ title: "PayloadType"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/enums.ts:93](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/core/structures/enums.ts#L93)
|
||||
[src/core/structures/enums.ts:94](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/core/structures/enums.ts#L94)
|
||||
|
||||
***
|
||||
|
||||
@@ -27,7 +27,7 @@ title: "PayloadType"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/enums.ts:92](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/core/structures/enums.ts#L92)
|
||||
[src/core/structures/enums.ts:93](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/core/structures/enums.ts#L93)
|
||||
|
||||
***
|
||||
|
||||
@@ -37,4 +37,4 @@ title: "PayloadType"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/enums.ts:94](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/core/structures/enums.ts#L94)
|
||||
[src/core/structures/enums.ts:95](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/core/structures/enums.ts#L95)
|
||||
|
||||
@@ -29,7 +29,7 @@ The PluginType for EventPlugins
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/enums.ts:85](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/core/structures/enums.ts#L85)
|
||||
[src/core/structures/enums.ts:86](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/core/structures/enums.ts#L86)
|
||||
|
||||
***
|
||||
|
||||
@@ -41,4 +41,4 @@ The PluginType for InitPlugins
|
||||
|
||||
#### Source
|
||||
|
||||
[src/core/structures/enums.ts:81](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/core/structures/enums.ts#L81)
|
||||
[src/core/structures/enums.ts:82](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/core/structures/enums.ts#L82)
|
||||
|
||||
@@ -7,76 +7,22 @@ title: "CommandControlPlugin"
|
||||
|
||||
> **CommandControlPlugin**\<`I`\>(`execute`): [`Plugin`](/v4/api/interfaces/plugin/)\<`unknown`[]\>
|
||||
|
||||
Creates a control plugin for command preprocessing, filtering, and state management
|
||||
|
||||
## Type parameters
|
||||
|
||||
• **I** *extends* [`CommandType`](/v4/api/enumerations/commandtype/)
|
||||
|
||||
Extends CommandType to enforce type safety for command modules
|
||||
|
||||
## Parameters
|
||||
|
||||
• **execute**
|
||||
|
||||
Function to execute during command control flow
|
||||
|
||||
## Returns
|
||||
|
||||
[`Plugin`](/v4/api/interfaces/plugin/)\<`unknown`[]\>
|
||||
|
||||
A plugin that runs during command execution flow
|
||||
|
||||
## Since
|
||||
|
||||
2.5.0
|
||||
|
||||
## Example
|
||||
|
||||
```ts
|
||||
// Plugin to restrict command to specific guild
|
||||
export const inGuild = (guildId: string) => {
|
||||
return CommandControlPlugin((ctx, sdt) => {
|
||||
if(ctx.guild.id !== guildId) {
|
||||
return controller.stop();
|
||||
}
|
||||
return controller.next();
|
||||
});
|
||||
};
|
||||
```
|
||||
|
||||
## Example
|
||||
|
||||
```ts
|
||||
// Plugins passing state through the chain
|
||||
const plugin1 = CommandControlPlugin((ctx, sdt) => {
|
||||
return controller.next({ 'plugin1/data': 'from plugin1' });
|
||||
});
|
||||
|
||||
const plugin2 = CommandControlPlugin((ctx, sdt) => {
|
||||
return controller.next({ 'plugin2/data': ctx.user.id });
|
||||
});
|
||||
|
||||
export default commandModule({
|
||||
type: CommandType.Slash,
|
||||
plugins: [plugin1, plugin2],
|
||||
execute: (ctx, sdt) => {
|
||||
console.log(sdt.state); // Access accumulated state
|
||||
}
|
||||
});
|
||||
```
|
||||
|
||||
## Remarks
|
||||
|
||||
- Control plugins are executed in order when a discord.js event is emitted
|
||||
- Use controller.next() to continue to next plugin or controller.stop() to halt execution
|
||||
- State can be passed between plugins using controller.next({ key: value })
|
||||
- State keys should be namespaced to avoid collisions (e.g., 'plugin-name/key')
|
||||
- Final accumulated state is passed to the command's execute function
|
||||
- All plugins must succeed for the command to execute
|
||||
- Plugins have access to dependencies through the sdt.deps object
|
||||
- Useful for implementing preconditions, filters, and command preprocessing
|
||||
|
||||
## Source
|
||||
|
||||
[src/core/plugin.ts:120](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/core/plugin.ts#L120)
|
||||
[src/core/create-plugins.ts:28](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/core/create-plugins.ts#L28)
|
||||
|
||||
@@ -5,68 +5,24 @@ prev: false
|
||||
title: "CommandInitPlugin"
|
||||
---
|
||||
|
||||
> **CommandInitPlugin**\<`I`\>(`execute`): [`Plugin`](/v4/api/interfaces/plugin/)
|
||||
|
||||
Creates an initialization plugin for command preprocessing and modification
|
||||
> **CommandInitPlugin**\<`I`\>(`execute`): [`Plugin`](/v4/api/interfaces/plugin/)\<`unknown`[]\>
|
||||
|
||||
## Type parameters
|
||||
|
||||
• **I** *extends* [`CommandType`](/v4/api/enumerations/commandtype/)
|
||||
|
||||
Extends CommandType to enforce type safety for command modules
|
||||
|
||||
## Parameters
|
||||
|
||||
• **execute**
|
||||
|
||||
Function to execute during command initialization
|
||||
|
||||
## Returns
|
||||
|
||||
[`Plugin`](/v4/api/interfaces/plugin/)
|
||||
|
||||
A plugin that runs during command initialization
|
||||
[`Plugin`](/v4/api/interfaces/plugin/)\<`unknown`[]\>
|
||||
|
||||
## Since
|
||||
|
||||
2.5.0
|
||||
|
||||
## Example
|
||||
|
||||
```ts
|
||||
// Plugin to update command description
|
||||
export const updateDescription = (description: string) => {
|
||||
return CommandInitPlugin(({ deps }) => {
|
||||
if(description.length > 100) {
|
||||
deps.logger?.info({ message: "Invalid description" })
|
||||
return controller.stop("From updateDescription: description is invalid");
|
||||
}
|
||||
module.description = description;
|
||||
return controller.next();
|
||||
});
|
||||
};
|
||||
```
|
||||
|
||||
## Example
|
||||
|
||||
```ts
|
||||
// Plugin to store registration date in module locals
|
||||
export const dateRegistered = () => {
|
||||
return CommandInitPlugin(({ module }) => {
|
||||
module.locals.registered = Date.now()
|
||||
return controller.next();
|
||||
});
|
||||
};
|
||||
```
|
||||
|
||||
## Remarks
|
||||
|
||||
- Init plugins can modify how commands are loaded and perform preprocessing
|
||||
- The module.locals object can be used to store custom plugin-specific data
|
||||
- Be careful when modifying module fields as multiple plugins may interact with them
|
||||
- Use controller.next() to continue to the next plugin
|
||||
- Use controller.stop(reason) to halt plugin execution
|
||||
|
||||
## Source
|
||||
|
||||
[src/core/plugin.ts:62](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/core/plugin.ts#L62)
|
||||
[src/core/create-plugins.ts:20](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/core/create-plugins.ts#L20)
|
||||
|
||||
@@ -21,4 +21,4 @@ title: "EventInitPlugin"
|
||||
|
||||
## Source
|
||||
|
||||
[src/core/plugin.ts:15](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/core/plugin.ts#L15)
|
||||
[src/core/create-plugins.ts:14](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/core/create-plugins.ts#L14)
|
||||
|
||||
@@ -7,9 +7,9 @@ title: "Service"
|
||||
|
||||
> **Service**\<`T`\>(`key`): `Dependencies`\[`T`\]
|
||||
|
||||
The Service api, which allows users to access dependencies in places IOC cannot reach.
|
||||
The new Service api, a cleaner alternative to useContainer
|
||||
To obtain intellisense, ensure a .d.ts file exists in the root of compilation.
|
||||
Our scaffolding tool takes care of this.
|
||||
Usually our scaffolding tool takes care of this.
|
||||
Note: this method only works AFTER your container has been initiated
|
||||
|
||||
## Type parameters
|
||||
@@ -36,10 +36,6 @@ a key that corresponds to a dependency registered.
|
||||
const client = Service('@sern/client');
|
||||
```
|
||||
|
||||
## Throws
|
||||
|
||||
if container is absent or not present
|
||||
|
||||
## Source
|
||||
|
||||
[src/core/ioc.ts:93](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/core/ioc.ts#L93)
|
||||
[src/core/ioc.ts:87](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/core/ioc.ts#L87)
|
||||
|
||||
@@ -26,10 +26,6 @@ array of dependencies, in the same order of keys provided
|
||||
3.0.0
|
||||
The plural version of [Service](../../../../../../v4/api/functions/service)
|
||||
|
||||
## Throws
|
||||
|
||||
if container is absent or not present
|
||||
|
||||
## Source
|
||||
|
||||
[src/core/ioc.ts:103](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/core/ioc.ts#L103)
|
||||
[src/core/ioc.ts:95](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/core/ioc.ts#L95)
|
||||
|
||||
@@ -7,58 +7,18 @@ title: "commandModule"
|
||||
|
||||
> **commandModule**(`mod`): [`Module`](/v4/api/interfaces/module/)
|
||||
|
||||
Creates a command module with standardized structure and plugin support.
|
||||
|
||||
## Parameters
|
||||
|
||||
• **mod**: `InputCommand`
|
||||
|
||||
Command module configuration
|
||||
|
||||
## Returns
|
||||
|
||||
[`Module`](/v4/api/interfaces/module/)
|
||||
|
||||
Processed command module ready for registration
|
||||
|
||||
## Since
|
||||
|
||||
1.0.0
|
||||
|
||||
## Example
|
||||
|
||||
```ts
|
||||
// Basic slash command
|
||||
export default commandModule({
|
||||
type: CommandType.Slash,
|
||||
description: "Ping command",
|
||||
execute: async (ctx) => {
|
||||
await ctx.reply("Pong! 🏓");
|
||||
}
|
||||
});
|
||||
```
|
||||
|
||||
## Example
|
||||
|
||||
```ts
|
||||
// Command with component interaction
|
||||
export default commandModule({
|
||||
type: CommandType.Slash,
|
||||
description: "Interactive command",
|
||||
execute: async (ctx) => {
|
||||
const button = new ButtonBuilder({
|
||||
customId: "btn/someData",
|
||||
label: "Click me",
|
||||
style: ButtonStyle.Primary
|
||||
});
|
||||
await ctx.reply({
|
||||
content: "Interactive message",
|
||||
components: [new ActionRowBuilder().addComponents(button)]
|
||||
});
|
||||
}
|
||||
});
|
||||
```
|
||||
1.0.0 The wrapper function to define command modules for sern
|
||||
|
||||
## Source
|
||||
|
||||
[src/core/modules.ts:47](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/core/modules.ts#L47)
|
||||
[src/core/modules.ts:15](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/core/modules.ts#L15)
|
||||
|
||||
@@ -8,12 +8,8 @@ title: "discordEvent"
|
||||
> **discordEvent**\<`T`\>(`mod`): [`Module`](/v4/api/interfaces/module/)
|
||||
|
||||
Create event modules from discord.js client events,
|
||||
This was an [eventModule](../../../../../../v4/api/functions/eventmodule) for discord events,
|
||||
where typings were bad.
|
||||
|
||||
:::caution[Deprecated]
|
||||
Use [eventModule](/v4/api/functions/eventmodule/) instead
|
||||
:::
|
||||
This is an [eventModule](../../../../../../v4/api/functions/eventmodule) for discord events,
|
||||
where typings can be very bad.
|
||||
|
||||
## Type parameters
|
||||
|
||||
@@ -27,12 +23,12 @@ Use [eventModule](/v4/api/functions/eventmodule/) instead
|
||||
|
||||
• **mod.name**: `T`
|
||||
|
||||
• **mod.once?**: `boolean`
|
||||
|
||||
## Returns
|
||||
|
||||
[`Module`](/v4/api/interfaces/module/)
|
||||
|
||||
## Experimental
|
||||
|
||||
## Source
|
||||
|
||||
[src/core/modules.ts:97](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/core/modules.ts#L97)
|
||||
[src/core/modules.ts:42](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/core/modules.ts#L42)
|
||||
|
||||
@@ -5,60 +5,21 @@ prev: false
|
||||
title: "eventModule"
|
||||
---
|
||||
|
||||
> **eventModule**\<`T`\>(`mod`): [`Module`](/v4/api/interfaces/module/)
|
||||
|
||||
Creates an event module for handling Discord.js or custom events.
|
||||
|
||||
## Type parameters
|
||||
|
||||
• **T** *extends* keyof `ClientEvents` = keyof `ClientEvents`
|
||||
|
||||
Event name from ClientEvents
|
||||
> **eventModule**(`mod`): [`Module`](/v4/api/interfaces/module/)
|
||||
|
||||
## Parameters
|
||||
|
||||
• **mod**: `InputEvent`\<`T`\>
|
||||
|
||||
Event module configuration
|
||||
• **mod**: `InputEvent`
|
||||
|
||||
## Returns
|
||||
|
||||
[`Module`](/v4/api/interfaces/module/)
|
||||
|
||||
Processed event module ready for registration
|
||||
|
||||
## Since
|
||||
|
||||
1.0.0
|
||||
|
||||
## Throws
|
||||
|
||||
If ControlPlugins are used in event modules
|
||||
|
||||
## Example
|
||||
|
||||
```ts
|
||||
// Discord event listener
|
||||
export default eventModule({
|
||||
type: EventType.Discord,
|
||||
execute: async (message) => {
|
||||
console.log(`${message.author.tag}: ${message.content}`);
|
||||
}
|
||||
});
|
||||
```
|
||||
|
||||
## Example
|
||||
|
||||
```ts
|
||||
// Custom sern event
|
||||
export default eventModule({
|
||||
type: EventType.Sern,
|
||||
execute: async (eventData) => {
|
||||
// Handle sern-specific event
|
||||
}
|
||||
});
|
||||
```
|
||||
The wrapper function to define event modules for sern
|
||||
|
||||
## Source
|
||||
|
||||
[src/core/modules.ts:83](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/core/modules.ts#L83)
|
||||
[src/core/modules.ts:28](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/core/modules.ts#L28)
|
||||
|
||||
@@ -28,4 +28,4 @@ await makeDependencies(({ add }) => {
|
||||
|
||||
## Source
|
||||
|
||||
[src/core/ioc.ts:63](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/core/ioc.ts#L63)
|
||||
[src/core/ioc.ts:56](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/core/ioc.ts#L56)
|
||||
|
||||
@@ -23,4 +23,4 @@ title: "makePlugin"
|
||||
|
||||
## Source
|
||||
|
||||
[src/core/plugin.ts:6](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/core/plugin.ts#L6)
|
||||
[src/core/create-plugins.ts:5](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/core/create-plugins.ts#L5)
|
||||
|
||||
@@ -1,48 +0,0 @@
|
||||
---
|
||||
editUrl: false
|
||||
next: false
|
||||
prev: false
|
||||
title: "scheduledTask"
|
||||
---
|
||||
|
||||
> **scheduledTask**(`ism`): [`ScheduledTask`](/v4/api/interfaces/scheduledtask/)
|
||||
|
||||
Creates a scheduled task that can be executed at specified intervals using cron patterns
|
||||
|
||||
## Parameters
|
||||
|
||||
• **ism**: [`ScheduledTask`](/v4/api/interfaces/scheduledtask/)
|
||||
|
||||
The scheduled task configuration object
|
||||
|
||||
## Returns
|
||||
|
||||
[`ScheduledTask`](/v4/api/interfaces/scheduledtask/)
|
||||
|
||||
The configured scheduled task
|
||||
|
||||
## Example
|
||||
|
||||
```ts
|
||||
// Create a task that runs every minute
|
||||
export default scheduledTask({
|
||||
trigger: "* * * * *",
|
||||
execute: (context) => {
|
||||
console.log("Task executed!");
|
||||
}
|
||||
});
|
||||
```
|
||||
|
||||
## Remarks
|
||||
|
||||
- Tasks must be placed in the 'tasks' directory specified in your config
|
||||
- The file name serves as a unique identifier for the task
|
||||
- Tasks can be cancelled using deps['@sern/scheduler'].kill(uuid)
|
||||
|
||||
## See
|
||||
|
||||
[https://crontab.guru/](https://crontab.guru/) for testing and creating cron patterns
|
||||
|
||||
## Source
|
||||
|
||||
[src/core/modules.ts:132](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/core/modules.ts#L132)
|
||||
@@ -25,4 +25,4 @@ Creates a singleton object.
|
||||
|
||||
## Source
|
||||
|
||||
[src/core/ioc.ts:112](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/core/ioc.ts#L112)
|
||||
[src/core/ioc.ts:104](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/core/ioc.ts#L104)
|
||||
|
||||
@@ -30,4 +30,4 @@ Creates a transient object
|
||||
|
||||
## Source
|
||||
|
||||
[src/core/ioc.ts:123](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/core/ioc.ts#L123)
|
||||
[src/core/ioc.ts:115](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/core/ioc.ts#L115)
|
||||
|
||||
@@ -21,7 +21,7 @@ title: "BothCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:284](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/types/core-modules.ts#L284)
|
||||
[src/types/core-modules.ts:140](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/types/core-modules.ts#L140)
|
||||
|
||||
***
|
||||
|
||||
@@ -33,7 +33,7 @@ title: "BothCommand"
|
||||
|
||||
• **ctx**: [`Context`](/v4/api/classes/context/)
|
||||
|
||||
• **tbd**: [`SDT`](/v4/api/interfaces/sdt/)
|
||||
• **tbd**: [`SDT`](/v4/api/type-aliases/sdt/)
|
||||
|
||||
#### Returns
|
||||
|
||||
@@ -45,93 +45,13 @@ title: "BothCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:286](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/types/core-modules.ts#L286)
|
||||
[src/types/core-modules.ts:142](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/types/core-modules.ts#L142)
|
||||
|
||||
***
|
||||
|
||||
### locals
|
||||
|
||||
> **locals**: `Dictionary`
|
||||
|
||||
Custom data storage object for module-specific information.
|
||||
Plugins and module code can use this to store and retrieve metadata,
|
||||
configuration, or any other module-specific information.
|
||||
|
||||
#### Description
|
||||
|
||||
A key-value store that allows plugins and module code to persist
|
||||
data at the module level. This is especially useful for InitPlugins that need
|
||||
to attach metadata or configuration to modules.
|
||||
|
||||
#### Example
|
||||
|
||||
```ts
|
||||
// In a plugin
|
||||
module.locals.registrationDate = Date.now();
|
||||
module.locals.version = "1.0.0";
|
||||
module.locals.permissions = ["ADMIN", "MODERATE"];
|
||||
```
|
||||
|
||||
#### Example
|
||||
|
||||
```ts
|
||||
// In module execution
|
||||
console.log(`Command registered on: ${new Date(module.locals.registrationDate)}`);
|
||||
```
|
||||
|
||||
#### Example
|
||||
|
||||
```ts
|
||||
// Storing localization data
|
||||
module.locals.translations = {
|
||||
en: "Hello",
|
||||
es: "Hola",
|
||||
fr: "Bonjour"
|
||||
};
|
||||
```
|
||||
|
||||
#### Example
|
||||
|
||||
```ts
|
||||
// Storing command metadata
|
||||
module.locals.metadata = {
|
||||
category: "admin",
|
||||
cooldown: 5000,
|
||||
requiresPermissions: true
|
||||
};
|
||||
```
|
||||
|
||||
#### Remarks
|
||||
|
||||
- The locals object is initialized as an empty object ({}) by default
|
||||
- Keys should be namespaced to avoid collisions between plugins
|
||||
- Values can be of any type
|
||||
- Data persists for the lifetime of the module
|
||||
- Commonly used by InitPlugins during module initialization
|
||||
|
||||
@best-practices
|
||||
1. Namespace your keys to avoid conflicts:
|
||||
```typescript
|
||||
module.locals['myPlugin:data'] = value;
|
||||
```
|
||||
|
||||
2. Document the data structure you're storing:
|
||||
```typescript
|
||||
interface MyPluginData {
|
||||
version: string;
|
||||
timestamp: number;
|
||||
}
|
||||
module.locals['myPlugin:data'] = {
|
||||
version: '1.0.0',
|
||||
timestamp: Date.now()
|
||||
} as MyPluginData;
|
||||
```
|
||||
|
||||
3. Use type-safe accessors when possible:
|
||||
```typescript
|
||||
const getPluginData = (module: Module): MyPluginData =>
|
||||
module.locals['myPlugin:data'];
|
||||
```
|
||||
> **locals**: `Record`\<`string`, `unknown`\>
|
||||
|
||||
#### Inherited from
|
||||
|
||||
@@ -139,7 +59,7 @@ module.locals.metadata = {
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:195](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/types/core-modules.ts#L195)
|
||||
[src/types/core-modules.ts:44](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/types/core-modules.ts#L44)
|
||||
|
||||
***
|
||||
|
||||
@@ -161,7 +81,7 @@ module.locals.metadata = {
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:123](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/types/core-modules.ts#L123)
|
||||
[src/types/core-modules.ts:40](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/types/core-modules.ts#L40)
|
||||
|
||||
***
|
||||
|
||||
@@ -175,7 +95,7 @@ module.locals.metadata = {
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:119](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/types/core-modules.ts#L119)
|
||||
[src/types/core-modules.ts:36](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/types/core-modules.ts#L36)
|
||||
|
||||
***
|
||||
|
||||
@@ -189,7 +109,7 @@ module.locals.metadata = {
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:120](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/types/core-modules.ts#L120)
|
||||
[src/types/core-modules.ts:37](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/types/core-modules.ts#L37)
|
||||
|
||||
***
|
||||
|
||||
@@ -199,7 +119,7 @@ module.locals.metadata = {
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:285](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/types/core-modules.ts#L285)
|
||||
[src/types/core-modules.ts:141](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/types/core-modules.ts#L141)
|
||||
|
||||
***
|
||||
|
||||
@@ -213,7 +133,7 @@ module.locals.metadata = {
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:121](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/types/core-modules.ts#L121)
|
||||
[src/types/core-modules.ts:38](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/types/core-modules.ts#L38)
|
||||
|
||||
***
|
||||
|
||||
@@ -227,4 +147,4 @@ module.locals.metadata = {
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:283](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/types/core-modules.ts#L283)
|
||||
[src/types/core-modules.ts:139](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/types/core-modules.ts#L139)
|
||||
|
||||
@@ -21,7 +21,7 @@ title: "ButtonCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:122](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/types/core-modules.ts#L122)
|
||||
[src/types/core-modules.ts:39](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/types/core-modules.ts#L39)
|
||||
|
||||
***
|
||||
|
||||
@@ -33,7 +33,7 @@ title: "ButtonCommand"
|
||||
|
||||
• **ctx**: `ButtonInteraction`\<`CacheType`\>
|
||||
|
||||
• **tbd**: [`SDT`](/v4/api/interfaces/sdt/)
|
||||
• **tbd**: [`SDT`](/v4/api/type-aliases/sdt/)
|
||||
|
||||
#### Returns
|
||||
|
||||
@@ -45,93 +45,13 @@ title: "ButtonCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:226](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/types/core-modules.ts#L226)
|
||||
[src/types/core-modules.ts:82](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/types/core-modules.ts#L82)
|
||||
|
||||
***
|
||||
|
||||
### locals
|
||||
|
||||
> **locals**: `Dictionary`
|
||||
|
||||
Custom data storage object for module-specific information.
|
||||
Plugins and module code can use this to store and retrieve metadata,
|
||||
configuration, or any other module-specific information.
|
||||
|
||||
#### Description
|
||||
|
||||
A key-value store that allows plugins and module code to persist
|
||||
data at the module level. This is especially useful for InitPlugins that need
|
||||
to attach metadata or configuration to modules.
|
||||
|
||||
#### Example
|
||||
|
||||
```ts
|
||||
// In a plugin
|
||||
module.locals.registrationDate = Date.now();
|
||||
module.locals.version = "1.0.0";
|
||||
module.locals.permissions = ["ADMIN", "MODERATE"];
|
||||
```
|
||||
|
||||
#### Example
|
||||
|
||||
```ts
|
||||
// In module execution
|
||||
console.log(`Command registered on: ${new Date(module.locals.registrationDate)}`);
|
||||
```
|
||||
|
||||
#### Example
|
||||
|
||||
```ts
|
||||
// Storing localization data
|
||||
module.locals.translations = {
|
||||
en: "Hello",
|
||||
es: "Hola",
|
||||
fr: "Bonjour"
|
||||
};
|
||||
```
|
||||
|
||||
#### Example
|
||||
|
||||
```ts
|
||||
// Storing command metadata
|
||||
module.locals.metadata = {
|
||||
category: "admin",
|
||||
cooldown: 5000,
|
||||
requiresPermissions: true
|
||||
};
|
||||
```
|
||||
|
||||
#### Remarks
|
||||
|
||||
- The locals object is initialized as an empty object ({}) by default
|
||||
- Keys should be namespaced to avoid collisions between plugins
|
||||
- Values can be of any type
|
||||
- Data persists for the lifetime of the module
|
||||
- Commonly used by InitPlugins during module initialization
|
||||
|
||||
@best-practices
|
||||
1. Namespace your keys to avoid conflicts:
|
||||
```typescript
|
||||
module.locals['myPlugin:data'] = value;
|
||||
```
|
||||
|
||||
2. Document the data structure you're storing:
|
||||
```typescript
|
||||
interface MyPluginData {
|
||||
version: string;
|
||||
timestamp: number;
|
||||
}
|
||||
module.locals['myPlugin:data'] = {
|
||||
version: '1.0.0',
|
||||
timestamp: Date.now()
|
||||
} as MyPluginData;
|
||||
```
|
||||
|
||||
3. Use type-safe accessors when possible:
|
||||
```typescript
|
||||
const getPluginData = (module: Module): MyPluginData =>
|
||||
module.locals['myPlugin:data'];
|
||||
```
|
||||
> **locals**: `Record`\<`string`, `unknown`\>
|
||||
|
||||
#### Inherited from
|
||||
|
||||
@@ -139,7 +59,7 @@ module.locals.metadata = {
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:195](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/types/core-modules.ts#L195)
|
||||
[src/types/core-modules.ts:44](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/types/core-modules.ts#L44)
|
||||
|
||||
***
|
||||
|
||||
@@ -161,7 +81,7 @@ module.locals.metadata = {
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:123](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/types/core-modules.ts#L123)
|
||||
[src/types/core-modules.ts:40](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/types/core-modules.ts#L40)
|
||||
|
||||
***
|
||||
|
||||
@@ -175,7 +95,7 @@ module.locals.metadata = {
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:119](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/types/core-modules.ts#L119)
|
||||
[src/types/core-modules.ts:36](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/types/core-modules.ts#L36)
|
||||
|
||||
***
|
||||
|
||||
@@ -189,7 +109,7 @@ module.locals.metadata = {
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:120](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/types/core-modules.ts#L120)
|
||||
[src/types/core-modules.ts:37](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/types/core-modules.ts#L37)
|
||||
|
||||
***
|
||||
|
||||
@@ -203,7 +123,7 @@ module.locals.metadata = {
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:121](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/types/core-modules.ts#L121)
|
||||
[src/types/core-modules.ts:38](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/types/core-modules.ts#L38)
|
||||
|
||||
***
|
||||
|
||||
@@ -217,4 +137,4 @@ module.locals.metadata = {
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:225](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/types/core-modules.ts#L225)
|
||||
[src/types/core-modules.ts:81](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/types/core-modules.ts#L81)
|
||||
|
||||
@@ -21,7 +21,7 @@ title: "ChannelSelectCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:122](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/types/core-modules.ts#L122)
|
||||
[src/types/core-modules.ts:39](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/types/core-modules.ts#L39)
|
||||
|
||||
***
|
||||
|
||||
@@ -33,7 +33,7 @@ title: "ChannelSelectCommand"
|
||||
|
||||
• **ctx**: `ChannelSelectMenuInteraction`\<`CacheType`\>
|
||||
|
||||
• **tbd**: [`SDT`](/v4/api/interfaces/sdt/)
|
||||
• **tbd**: [`SDT`](/v4/api/type-aliases/sdt/)
|
||||
|
||||
#### Returns
|
||||
|
||||
@@ -45,93 +45,13 @@ title: "ChannelSelectCommand"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:236](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/types/core-modules.ts#L236)
|
||||
[src/types/core-modules.ts:92](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/types/core-modules.ts#L92)
|
||||
|
||||
***
|
||||
|
||||
### locals
|
||||
|
||||
> **locals**: `Dictionary`
|
||||
|
||||
Custom data storage object for module-specific information.
|
||||
Plugins and module code can use this to store and retrieve metadata,
|
||||
configuration, or any other module-specific information.
|
||||
|
||||
#### Description
|
||||
|
||||
A key-value store that allows plugins and module code to persist
|
||||
data at the module level. This is especially useful for InitPlugins that need
|
||||
to attach metadata or configuration to modules.
|
||||
|
||||
#### Example
|
||||
|
||||
```ts
|
||||
// In a plugin
|
||||
module.locals.registrationDate = Date.now();
|
||||
module.locals.version = "1.0.0";
|
||||
module.locals.permissions = ["ADMIN", "MODERATE"];
|
||||
```
|
||||
|
||||
#### Example
|
||||
|
||||
```ts
|
||||
// In module execution
|
||||
console.log(`Command registered on: ${new Date(module.locals.registrationDate)}`);
|
||||
```
|
||||
|
||||
#### Example
|
||||
|
||||
```ts
|
||||
// Storing localization data
|
||||
module.locals.translations = {
|
||||
en: "Hello",
|
||||
es: "Hola",
|
||||
fr: "Bonjour"
|
||||
};
|
||||
```
|
||||
|
||||
#### Example
|
||||
|
||||
```ts
|
||||
// Storing command metadata
|
||||
module.locals.metadata = {
|
||||
category: "admin",
|
||||
cooldown: 5000,
|
||||
requiresPermissions: true
|
||||
};
|
||||
```
|
||||
|
||||
#### Remarks
|
||||
|
||||
- The locals object is initialized as an empty object ({}) by default
|
||||
- Keys should be namespaced to avoid collisions between plugins
|
||||
- Values can be of any type
|
||||
- Data persists for the lifetime of the module
|
||||
- Commonly used by InitPlugins during module initialization
|
||||
|
||||
@best-practices
|
||||
1. Namespace your keys to avoid conflicts:
|
||||
```typescript
|
||||
module.locals['myPlugin:data'] = value;
|
||||
```
|
||||
|
||||
2. Document the data structure you're storing:
|
||||
```typescript
|
||||
interface MyPluginData {
|
||||
version: string;
|
||||
timestamp: number;
|
||||
}
|
||||
module.locals['myPlugin:data'] = {
|
||||
version: '1.0.0',
|
||||
timestamp: Date.now()
|
||||
} as MyPluginData;
|
||||
```
|
||||
|
||||
3. Use type-safe accessors when possible:
|
||||
```typescript
|
||||
const getPluginData = (module: Module): MyPluginData =>
|
||||
module.locals['myPlugin:data'];
|
||||
```
|
||||
> **locals**: `Record`\<`string`, `unknown`\>
|
||||
|
||||
#### Inherited from
|
||||
|
||||
@@ -139,7 +59,7 @@ module.locals.metadata = {
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:195](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/types/core-modules.ts#L195)
|
||||
[src/types/core-modules.ts:44](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/types/core-modules.ts#L44)
|
||||
|
||||
***
|
||||
|
||||
@@ -161,7 +81,7 @@ module.locals.metadata = {
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:123](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/types/core-modules.ts#L123)
|
||||
[src/types/core-modules.ts:40](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/types/core-modules.ts#L40)
|
||||
|
||||
***
|
||||
|
||||
@@ -175,7 +95,7 @@ module.locals.metadata = {
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:119](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/types/core-modules.ts#L119)
|
||||
[src/types/core-modules.ts:36](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/types/core-modules.ts#L36)
|
||||
|
||||
***
|
||||
|
||||
@@ -189,7 +109,7 @@ module.locals.metadata = {
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:120](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/types/core-modules.ts#L120)
|
||||
[src/types/core-modules.ts:37](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/types/core-modules.ts#L37)
|
||||
|
||||
***
|
||||
|
||||
@@ -203,7 +123,7 @@ module.locals.metadata = {
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:121](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/types/core-modules.ts#L121)
|
||||
[src/types/core-modules.ts:38](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/types/core-modules.ts#L38)
|
||||
|
||||
***
|
||||
|
||||
@@ -217,4 +137,4 @@ module.locals.metadata = {
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:235](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/types/core-modules.ts#L235)
|
||||
[src/types/core-modules.ts:91](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/types/core-modules.ts#L91)
|
||||
|
||||
@@ -13,7 +13,7 @@ title: "CommandModuleDefs"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:307](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/types/core-modules.ts#L307)
|
||||
[src/types/core-modules.ts:163](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/types/core-modules.ts#L163)
|
||||
|
||||
***
|
||||
|
||||
@@ -23,7 +23,7 @@ title: "CommandModuleDefs"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:315](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/types/core-modules.ts#L315)
|
||||
[src/types/core-modules.ts:171](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/types/core-modules.ts#L171)
|
||||
|
||||
***
|
||||
|
||||
@@ -33,7 +33,7 @@ title: "CommandModuleDefs"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:317](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/types/core-modules.ts#L317)
|
||||
[src/types/core-modules.ts:173](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/types/core-modules.ts#L173)
|
||||
|
||||
***
|
||||
|
||||
@@ -43,7 +43,7 @@ title: "CommandModuleDefs"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:312](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/types/core-modules.ts#L312)
|
||||
[src/types/core-modules.ts:168](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/types/core-modules.ts#L168)
|
||||
|
||||
***
|
||||
|
||||
@@ -53,7 +53,7 @@ title: "CommandModuleDefs"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:308](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/types/core-modules.ts#L308)
|
||||
[src/types/core-modules.ts:164](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/types/core-modules.ts#L164)
|
||||
|
||||
***
|
||||
|
||||
@@ -63,7 +63,7 @@ title: "CommandModuleDefs"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:314](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/types/core-modules.ts#L314)
|
||||
[src/types/core-modules.ts:170](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/types/core-modules.ts#L170)
|
||||
|
||||
***
|
||||
|
||||
@@ -73,7 +73,7 @@ title: "CommandModuleDefs"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:309](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/types/core-modules.ts#L309)
|
||||
[src/types/core-modules.ts:165](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/types/core-modules.ts#L165)
|
||||
|
||||
***
|
||||
|
||||
@@ -83,7 +83,7 @@ title: "CommandModuleDefs"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:313](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/types/core-modules.ts#L313)
|
||||
[src/types/core-modules.ts:169](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/types/core-modules.ts#L169)
|
||||
|
||||
***
|
||||
|
||||
@@ -93,7 +93,7 @@ title: "CommandModuleDefs"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:311](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/types/core-modules.ts#L311)
|
||||
[src/types/core-modules.ts:167](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/types/core-modules.ts#L167)
|
||||
|
||||
***
|
||||
|
||||
@@ -103,7 +103,7 @@ title: "CommandModuleDefs"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:316](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/types/core-modules.ts#L316)
|
||||
[src/types/core-modules.ts:172](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/types/core-modules.ts#L172)
|
||||
|
||||
***
|
||||
|
||||
@@ -113,7 +113,7 @@ title: "CommandModuleDefs"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:318](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/types/core-modules.ts#L318)
|
||||
[src/types/core-modules.ts:174](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/types/core-modules.ts#L174)
|
||||
|
||||
***
|
||||
|
||||
@@ -123,4 +123,4 @@ title: "CommandModuleDefs"
|
||||
|
||||
#### Source
|
||||
|
||||
[src/types/core-modules.ts:310](https://github.com/sern-handler/handler/blob/3f703c17b88b6add7de919772e7b2a7faffd3910/src/types/core-modules.ts#L310)
|
||||
[src/types/core-modules.ts:166](https://github.com/sern-handler/handler/blob/7c8e39defbafdd6312a04a2d30750d647a3ab22b/src/types/core-modules.ts#L166)
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user