{ "id": 0, "name": "@sern/handler", "kind": 1, "kindString": "Project", "flags": {}, "originalName": "", "children": [ { "id": 7, "name": "Sern", "kind": 4, "kindString": "Namespace", "flags": {}, "children": [ { "id": 15, "name": "commandModule", "kind": 8388608, "kindString": "Reference", "flags": {}, "sources": [ { "fileName": "src/handler/sern.ts", "line": 86, "character": 16, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/sern.ts#L86" } ], "target": 4 }, { "id": 16, "name": "eventModule", "kind": 8388608, "kindString": "Reference", "flags": {}, "sources": [ { "fileName": "src/handler/sern.ts", "line": 107, "character": 16, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/sern.ts#L107" } ], "target": 1 }, { "id": 17, "name": "controller", "kind": 32, "kindString": "Variable", "flags": { "isConst": true }, "comment": { "summary": [ { "kind": "text", "text": "The object passed into every plugin to control a command's behavior" } ] }, "sources": [ { "fileName": "src/handler/sern.ts", "line": 77, "character": 13, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/sern.ts#L77" } ], "type": { "type": "reflection", "declaration": { "id": 18, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { "id": 19, "name": "next", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/handler/sern.ts", "line": 78, "character": 4, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/sern.ts#L78" } ], "type": { "type": "reflection", "declaration": { "id": 20, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "sources": [ { "fileName": "src/handler/sern.ts", "line": 78, "character": 10, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/sern.ts#L78" } ], "signatures": [ { "id": 21, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "type": { "type": "reference", "typeArguments": [ { "type": "intrinsic", "name": "void" } ], "name": "OkImpl", "qualifiedName": "OkImpl", "package": "ts-results-es" } } ] } }, "defaultValue": "..." }, { "id": 22, "name": "stop", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/handler/sern.ts", "line": 79, "character": 4, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/sern.ts#L79" } ], "type": { "type": "reflection", "declaration": { "id": 23, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "sources": [ { "fileName": "src/handler/sern.ts", "line": 79, "character": 10, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/sern.ts#L79" } ], "signatures": [ { "id": 24, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "type": { "type": "reference", "typeArguments": [ { "type": "intrinsic", "name": "void" } ], "name": "ErrImpl", "qualifiedName": "ErrImpl", "package": "ts-results-es" } } ] } }, "defaultValue": "..." } ], "groups": [ { "title": "Properties", "children": [ 19, 22 ] } ], "sources": [ { "fileName": "src/handler/sern.ts", "line": 77, "character": 26, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/sern.ts#L77" } ] } }, "defaultValue": "..." }, { "id": 11, "name": "addExternal", "kind": 64, "kindString": "Function", "flags": {}, "sources": [ { "fileName": "src/handler/sern.ts", "line": 67, "character": 16, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/sern.ts#L67" } ], "signatures": [ { "id": 12, "name": "addExternal", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { "summary": [], "blockTags": [ { "tag": "@example", "content": [ { "kind": "code", "text": "```ts title=\"src/index.ts\"\r\n//Add this before initiating Sern!\r\nSern.addExternal(new Level())\r\n```" } ] }, { "tag": "@example", "content": [ { "kind": "code", "text": "```ts title=\"events/level.ts\"\r\n export default eventModule({\r\n emitter: 'Level',\r\n type : EventType.External,\r\n name: 'error',\r\n execute(args) {\r\n console.log(args)\r\n }\r\n })\r\n```" } ] } ] }, "typeParameter": [ { "id": 13, "name": "T", "kind": 131072, "kindString": "Type parameter", "flags": {}, "type": { "type": "reference", "name": "__module", "qualifiedName": "EventEmitter", "package": "@types/node" } } ], "parameters": [ { "id": 14, "name": "emitter", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "Any external event emitter.\r\nThe object will be stored in a map, and then fetched by the name of the instance's class.\r\nAs there are infinite possibilities to adding external event emitters,\r\nMost types aren't provided and are as narrow as possibly can." } ] }, "type": { "type": "reference", "id": 13, "name": "T" } } ], "type": { "type": "intrinsic", "name": "void" } } ] }, { "id": 8, "name": "init", "kind": 64, "kindString": "Function", "flags": {}, "sources": [ { "fileName": "src/handler/sern.ts", "line": 34, "character": 16, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/sern.ts#L34" } ], "signatures": [ { "id": 9, "name": "init", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { "summary": [], "blockTags": [ { "tag": "@example", "content": [ { "kind": "code", "text": "```ts title=\"src/index.ts\"\r\nSern.init({\r\n client,\r\n defaultPrefix: '!',\r\n commands: 'dist/commands',\r\n})\r\n```" } ] } ] }, "parameters": [ { "id": 10, "name": "wrapper", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "Options to pass into sern.\r\nFunction to start the handler up" } ] }, "type": { "type": "reference", "id": 173, "name": "Wrapper" } } ], "type": { "type": "intrinsic", "name": "void" } } ] } ], "groups": [ { "title": "References", "children": [ 15, 16 ] }, { "title": "Variables", "children": [ 17 ] }, { "title": "Functions", "children": [ 11, 8 ] } ], "sources": [ { "fileName": "src/handler/sern.ts", "line": 1, "character": 0, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/sern.ts#L1" } ] }, { "id": 203, "name": "CommandType", "kind": 8, "kindString": "Enumeration", "flags": {}, "comment": { "summary": [], "blockTags": [ { "tag": "@example", "content": [ { "kind": "code", "text": "```ts\r\nexport default commandModule({\r\n // highlight-next-line\r\n type : CommandType.Text,\r\n name : 'a text command'\r\n execute(message) {\r\n console.log(message.content)\r\n }\r\n})\r\n```" } ] } ] }, "children": [ { "id": 206, "name": "Both", "kind": 16, "kindString": "Enumeration Member", "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "The CommandType for hybrid commands, text and slash" } ] }, "sources": [ { "fileName": "src/handler/structures/enums.ts", "line": 27, "character": 4, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/enums.ts#L27" } ], "type": { "type": "literal", "value": 3 } }, { "id": 209, "name": "Button", "kind": 16, "kindString": "Enumeration Member", "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "The CommandType for ButtonInteraction commands" } ] }, "sources": [ { "fileName": "src/handler/structures/enums.ts", "line": 39, "character": 4, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/enums.ts#L39" } ], "type": { "type": "literal", "value": 16 } }, { "id": 208, "name": "MenuMsg", "kind": 16, "kindString": "Enumeration Member", "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "The CommandType for MessageContextMenuInteraction commands" } ] }, "sources": [ { "fileName": "src/handler/structures/enums.ts", "line": 35, "character": 4, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/enums.ts#L35" } ], "type": { "type": "literal", "value": 8 } }, { "id": 210, "name": "MenuSelect", "kind": 16, "kindString": "Enumeration Member", "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "The CommandType for SelectMenuInteraction commands" } ] }, "sources": [ { "fileName": "src/handler/structures/enums.ts", "line": 43, "character": 4, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/enums.ts#L43" } ], "type": { "type": "literal", "value": 32 } }, { "id": 207, "name": "MenuUser", "kind": 16, "kindString": "Enumeration Member", "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "The CommandType for UserContextMenuInteraction commands" } ] }, "sources": [ { "fileName": "src/handler/structures/enums.ts", "line": 31, "character": 4, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/enums.ts#L31" } ], "type": { "type": "literal", "value": 4 } }, { "id": 211, "name": "Modal", "kind": 16, "kindString": "Enumeration Member", "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "The CommandType for ModalSubmitInteraction commands" } ] }, "sources": [ { "fileName": "src/handler/structures/enums.ts", "line": 47, "character": 4, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/enums.ts#L47" } ], "type": { "type": "literal", "value": 64 } }, { "id": 205, "name": "Slash", "kind": 16, "kindString": "Enumeration Member", "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "The CommandType for slash commands" } ] }, "sources": [ { "fileName": "src/handler/structures/enums.ts", "line": 23, "character": 4, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/enums.ts#L23" } ], "type": { "type": "literal", "value": 2 } }, { "id": 204, "name": "Text", "kind": 16, "kindString": "Enumeration Member", "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "The CommandType for text commands" } ] }, "sources": [ { "fileName": "src/handler/structures/enums.ts", "line": 19, "character": 4, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/enums.ts#L19" } ], "type": { "type": "literal", "value": 1 } } ], "groups": [ { "title": "Enumeration Members", "children": [ 206, 209, 208, 210, 207, 211, 205, 204 ] } ], "sources": [ { "fileName": "src/handler/structures/enums.ts", "line": 15, "character": 12, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/enums.ts#L15" } ] }, { "id": 212, "name": "EventType", "kind": 8, "kindString": "Enumeration", "flags": {}, "comment": { "summary": [], "blockTags": [ { "tag": "@example", "content": [ { "kind": "code", "text": "```ts\r\nexport default eventModule({\r\n //highlight-next-line\r\n type : EventType.Discord,\r\n name : 'guildMemberAdd'\r\n execute(member : GuildMember) {\r\n console.log(member)\r\n }\r\n})\r\n```" } ] } ] }, "children": [ { "id": 213, "name": "Discord", "kind": 16, "kindString": "Enumeration Member", "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "The EventType for handling discord events" } ] }, "sources": [ { "fileName": "src/handler/structures/enums.ts", "line": 68, "character": 4, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/enums.ts#L68" } ], "type": { "type": "literal", "value": 1 } }, { "id": 215, "name": "External", "kind": 16, "kindString": "Enumeration Member", "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "The EventType for handling external events.\r\nCould be for example, " }, { "kind": "code", "text": "`process`" }, { "kind": "text", "text": " events, database events" } ] }, "sources": [ { "fileName": "src/handler/structures/enums.ts", "line": 77, "character": 4, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/enums.ts#L77" } ], "type": { "type": "literal", "value": 3 } }, { "id": 214, "name": "Sern", "kind": 16, "kindString": "Enumeration Member", "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "The EventType for handling sern events" } ] }, "sources": [ { "fileName": "src/handler/structures/enums.ts", "line": 72, "character": 4, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/enums.ts#L72" } ], "type": { "type": "literal", "value": 2 } } ], "groups": [ { "title": "Enumeration Members", "children": [ 213, 215, 214 ] } ], "sources": [ { "fileName": "src/handler/structures/enums.ts", "line": 64, "character": 12, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/enums.ts#L64" } ] }, { "id": 219, "name": "PayloadType", "kind": 8, "kindString": "Enumeration", "flags": {}, "children": [ { "id": 221, "name": "Failure", "kind": 16, "kindString": "Enumeration Member", "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "The PayloadType for a SernEmitter failure event" } ] }, "sources": [ { "fileName": "src/handler/structures/enums.ts", "line": 114, "character": 4, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/enums.ts#L114" } ], "type": { "type": "literal", "value": "failure" } }, { "id": 220, "name": "Success", "kind": 16, "kindString": "Enumeration Member", "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "The PayloadType for a SernEmitter success event" } ] }, "sources": [ { "fileName": "src/handler/structures/enums.ts", "line": 110, "character": 4, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/enums.ts#L110" } ], "type": { "type": "literal", "value": "success" } }, { "id": 222, "name": "Warning", "kind": 16, "kindString": "Enumeration Member", "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "The PayloadType for a SernEmitter warning event" } ] }, "sources": [ { "fileName": "src/handler/structures/enums.ts", "line": 118, "character": 4, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/enums.ts#L118" } ], "type": { "type": "literal", "value": "warning" } } ], "groups": [ { "title": "Enumeration Members", "children": [ 221, 220, 222 ] } ], "sources": [ { "fileName": "src/handler/structures/enums.ts", "line": 106, "character": 12, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/enums.ts#L106" } ] }, { "id": 216, "name": "PluginType", "kind": 8, "kindString": "Enumeration", "flags": {}, "comment": { "summary": [], "blockTags": [ { "tag": "@example", "content": [ { "kind": "code", "text": "```ts\r\nexport default function myPlugin() : EventPlugin {\r\n //highlight-next-line\r\n type : PluginType.Event,\r\n execute([ctx, args], controller) {\r\n return controller.next();\r\n }\r\n}\r\n```" } ] } ] }, "children": [ { "id": 217, "name": "Command", "kind": 16, "kindString": "Enumeration Member", "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "The PluginType for CommandPlugins" } ] }, "sources": [ { "fileName": "src/handler/structures/enums.ts", "line": 97, "character": 4, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/enums.ts#L97" } ], "type": { "type": "literal", "value": 1 } }, { "id": 218, "name": "Event", "kind": 16, "kindString": "Enumeration Member", "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "The PluginType for EventPlugins" } ] }, "sources": [ { "fileName": "src/handler/structures/enums.ts", "line": 101, "character": 4, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/enums.ts#L101" } ], "type": { "type": "literal", "value": 2 } } ], "groups": [ { "title": "Enumeration Members", "children": [ 217, 218 ] } ], "sources": [ { "fileName": "src/handler/structures/enums.ts", "line": 93, "character": 12, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/enums.ts#L93" } ] }, { "id": 103, "name": "Context", "kind": 128, "kindString": "Class", "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "Provides values shared between\r\nMessage and ChatInputCommandInteraction" } ] }, "children": [ { "id": 107, "name": "constructor", "kind": 512, "kindString": "Constructor", "flags": { "isPrivate": true }, "sources": [ { "fileName": "src/handler/structures/context.ts", "line": 31, "character": 4, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/context.ts#L31" } ], "signatures": [ { "id": 108, "name": "new Context", "kind": 16384, "kindString": "Constructor signature", "flags": {}, "parameters": [ { "id": 109, "name": "oMsg", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", "typeArguments": [ { "type": "reference", "typeArguments": [ { "type": "intrinsic", "name": "boolean" } ], "name": "Message", "qualifiedName": "Message", "package": "discord.js" } ], "name": "Option", "qualifiedName": "Option", "package": "ts-results-es" }, "defaultValue": "None" }, { "id": 110, "name": "oInterac", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", "typeArguments": [ { "type": "reference", "typeArguments": [ { "type": "reference", "name": "CacheType", "qualifiedName": "CacheType", "package": "discord.js" } ], "name": "ChatInputCommandInteraction", "qualifiedName": "ChatInputCommandInteraction", "package": "discord.js" } ], "name": "Option", "qualifiedName": "Option", "package": "ts-results-es" }, "defaultValue": "None" } ], "type": { "type": "reference", "id": 103, "name": "default" } } ] }, { "id": 117, "name": "channel", "kind": 262144, "kindString": "Accessor", "flags": { "isPublic": true }, "sources": [ { "fileName": "src/handler/structures/context.ts", "line": 63, "character": 15, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/context.ts#L63" } ], "getSignature": { "id": 118, "name": "channel", "kind": 524288, "kindString": "Get signature", "flags": {}, "type": { "type": "reference", "id": 50, "typeArguments": [ { "type": "reference", "name": "TextBasedChannel", "qualifiedName": "TextBasedChannel", "package": "discord.js" } ], "name": "Nullish" } } }, { "id": 129, "name": "client", "kind": 262144, "kindString": "Accessor", "flags": { "isPublic": true }, "sources": [ { "fileName": "src/handler/structures/context.ts", "line": 108, "character": 15, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/context.ts#L108" } ], "getSignature": { "id": 130, "name": "client", "kind": 524288, "kindString": "Get signature", "flags": {}, "type": { "type": "reference", "typeArguments": [ { "type": "intrinsic", "name": "boolean" } ], "name": "Client", "qualifiedName": "Client", "package": "discord.js" } } }, { "id": 121, "name": "createdTimestamp", "kind": 262144, "kindString": "Accessor", "flags": { "isPublic": true }, "sources": [ { "fileName": "src/handler/structures/context.ts", "line": 77, "character": 15, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/context.ts#L77" } ], "getSignature": { "id": 122, "name": "createdTimestamp", "kind": 524288, "kindString": "Get signature", "flags": {}, "type": { "type": "intrinsic", "name": "number" } } }, { "id": 123, "name": "guild", "kind": 262144, "kindString": "Accessor", "flags": { "isPublic": true }, "sources": [ { "fileName": "src/handler/structures/context.ts", "line": 84, "character": 15, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/context.ts#L84" } ], "getSignature": { "id": 124, "name": "guild", "kind": 524288, "kindString": "Get signature", "flags": {}, "type": { "type": "reference", "name": "Guild", "qualifiedName": "Guild", "package": "discord.js" } } }, { "id": 125, "name": "guildId", "kind": 262144, "kindString": "Accessor", "flags": { "isPublic": true }, "sources": [ { "fileName": "src/handler/structures/context.ts", "line": 91, "character": 15, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/context.ts#L91" } ], "getSignature": { "id": 126, "name": "guildId", "kind": 524288, "kindString": "Get signature", "flags": {}, "type": { "type": "intrinsic", "name": "string" } } }, { "id": 115, "name": "id", "kind": 262144, "kindString": "Accessor", "flags": { "isPublic": true }, "sources": [ { "fileName": "src/handler/structures/context.ts", "line": 56, "character": 15, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/context.ts#L56" } ], "getSignature": { "id": 116, "name": "id", "kind": 524288, "kindString": "Get signature", "flags": {}, "type": { "type": "intrinsic", "name": "string" } } }, { "id": 131, "name": "inGuild", "kind": 262144, "kindString": "Accessor", "flags": { "isPublic": true }, "sources": [ { "fileName": "src/handler/structures/context.ts", "line": 115, "character": 15, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/context.ts#L115" } ], "getSignature": { "id": 132, "name": "inGuild", "kind": 524288, "kindString": "Get signature", "flags": {}, "type": { "type": "intrinsic", "name": "boolean" } } }, { "id": 113, "name": "interaction", "kind": 262144, "kindString": "Accessor", "flags": { "isPublic": true }, "sources": [ { "fileName": "src/handler/structures/context.ts", "line": 52, "character": 15, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/context.ts#L52" } ], "getSignature": { "id": 114, "name": "interaction", "kind": 524288, "kindString": "Get signature", "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "Getting the ChatInputCommandInteraction object. Crashes if module type is\r\nCommandType.Text or the event fired in a Both command was\r\nMessage" } ] }, "type": { "type": "reference", "typeArguments": [ { "type": "reference", "name": "CacheType", "qualifiedName": "CacheType", "package": "discord.js" } ], "name": "ChatInputCommandInteraction", "qualifiedName": "ChatInputCommandInteraction", "package": "discord.js" } } }, { "id": 127, "name": "member", "kind": 262144, "kindString": "Accessor", "flags": { "isPublic": true }, "sources": [ { "fileName": "src/handler/structures/context.ts", "line": 101, "character": 15, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/context.ts#L101" } ], "getSignature": { "id": 128, "name": "member", "kind": 524288, "kindString": "Get signature", "flags": {}, "type": { "type": "reference", "id": 50, "typeArguments": [ { "type": "union", "types": [ { "type": "reference", "name": "GuildMember", "qualifiedName": "GuildMember", "package": "discord.js" }, { "type": "reference", "name": "APIGuildMember", "qualifiedName": "APIGuildMember", "package": "discord-api-types" } ] } ], "name": "Nullish" } } }, { "id": 111, "name": "message", "kind": 262144, "kindString": "Accessor", "flags": { "isPublic": true }, "sources": [ { "fileName": "src/handler/structures/context.ts", "line": 44, "character": 15, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/context.ts#L44" } ], "getSignature": { "id": 112, "name": "message", "kind": 524288, "kindString": "Get signature", "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "Getting the Message object. Crashes if module type is\r\nCommandType.Slash or the event fired in a Both command was\r\nChatInputCommandInteraction" } ] }, "type": { "type": "reference", "typeArguments": [ { "type": "intrinsic", "name": "boolean" } ], "name": "Message", "qualifiedName": "Message", "package": "discord.js" } } }, { "id": 119, "name": "user", "kind": 262144, "kindString": "Accessor", "flags": { "isPublic": true }, "sources": [ { "fileName": "src/handler/structures/context.ts", "line": 70, "character": 15, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/context.ts#L70" } ], "getSignature": { "id": 120, "name": "user", "kind": 524288, "kindString": "Get signature", "flags": {}, "type": { "type": "reference", "name": "User", "qualifiedName": "User", "package": "discord.js" } } }, { "id": 133, "name": "isEmpty", "kind": 2048, "kindString": "Method", "flags": { "isPublic": true }, "sources": [ { "fileName": "src/handler/structures/context.ts", "line": 129, "character": 11, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/context.ts#L129" } ], "signatures": [ { "id": 134, "name": "isEmpty", "kind": 4096, "kindString": "Call signature", "flags": {}, "type": { "type": "intrinsic", "name": "boolean" } } ] }, { "id": 135, "name": "reply", "kind": 2048, "kindString": "Method", "flags": { "isPublic": true }, "sources": [ { "fileName": "src/handler/structures/context.ts", "line": 133, "character": 11, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/context.ts#L133" } ], "signatures": [ { "id": 136, "name": "reply", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { "id": 137, "name": "content", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "string" }, { "type": "reference", "typeArguments": [ { "type": "reference", "name": "InteractionReplyOptions", "qualifiedName": "InteractionReplyOptions", "package": "discord.js" }, { "type": "literal", "value": "fetchReply" } ], "name": "Omit", "qualifiedName": "Omit", "package": "typescript" }, { "type": "reference", "name": "ReplyMessageOptions", "qualifiedName": "ReplyMessageOptions", "package": "discord.js" } ] } } ], "type": { "type": "reference", "typeArguments": [ { "type": "reference", "typeArguments": [ { "type": "intrinsic", "name": "boolean" } ], "name": "Message", "qualifiedName": "Message", "package": "discord.js" } ], "name": "Promise", "qualifiedName": "Promise", "package": "typescript" } } ] }, { "id": 104, "name": "wrap", "kind": 2048, "kindString": "Method", "flags": { "isStatic": true }, "sources": [ { "fileName": "src/handler/structures/context.ts", "line": 122, "character": 11, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/context.ts#L122" } ], "signatures": [ { "id": 105, "name": "wrap", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { "id": 106, "name": "wrappable", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "union", "types": [ { "type": "reference", "typeArguments": [ { "type": "intrinsic", "name": "boolean" } ], "name": "Message", "qualifiedName": "Message", "package": "discord.js" }, { "type": "reference", "typeArguments": [ { "type": "reference", "name": "CacheType", "qualifiedName": "CacheType", "package": "discord.js" } ], "name": "ChatInputCommandInteraction", "qualifiedName": "ChatInputCommandInteraction", "package": "discord.js" } ] } } ], "type": { "type": "reference", "id": 103, "name": "default" } } ] } ], "groups": [ { "title": "Constructors", "children": [ 107 ] }, { "title": "Accessors", "children": [ 117, 129, 121, 123, 125, 115, 131, 113, 127, 111, 119 ] }, { "title": "Methods", "children": [ 133, 135, 104 ] } ], "sources": [ { "fileName": "src/handler/structures/context.ts", "line": 30, "character": 21, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/context.ts#L30" } ] }, { "id": 25, "name": "SernEmitter", "kind": 128, "kindString": "Class", "flags": {}, "children": [ { "id": 26, "name": "constructor", "kind": 512, "kindString": "Constructor", "flags": { "isExternal": true }, "sources": [ { "fileName": "node_modules/@types/node/events.d.ts", "line": 74, "character": 8 } ], "signatures": [ { "id": 27, "name": "new SernEmitter", "kind": 16384, "kindString": "Constructor signature", "flags": { "isExternal": true }, "parameters": [ { "id": 28, "name": "options", "kind": 32768, "kindString": "Parameter", "flags": { "isExternal": true, "isOptional": true }, "type": { "type": "reference", "name": "EventEmitterOptions", "qualifiedName": "EventEmitterOptions", "package": "@types/node" } } ], "type": { "type": "reference", "id": 25, "name": "SernEmitter" }, "inheritedFrom": { "type": "reference", "name": "EventEmitter.constructor" } } ], "inheritedFrom": { "type": "reference", "name": "EventEmitter.constructor" } }, { "id": 45, "name": "emit", "kind": 2048, "kindString": "Method", "flags": { "isPublic": true }, "sources": [ { "fileName": "src/handler/sernEmitter.ts", "line": 32, "character": 20, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/sernEmitter.ts#L32" } ], "signatures": [ { "id": 46, "name": "emit", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "Listening to sern events with on. This event stays on until a crash or a normal exit" } ] }, "typeParameter": [ { "id": 47, "name": "T", "kind": 131072, "kindString": "Type parameter", "flags": {}, "type": { "type": "typeOperator", "operator": "keyof", "target": { "type": "reference", "id": 97, "name": "SernEventsMapping" } } } ], "parameters": [ { "id": 48, "name": "eventName", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", "id": 47, "name": "T" } }, { "id": 49, "name": "args", "kind": 32768, "kindString": "Parameter", "flags": { "isRest": true }, "comment": { "summary": [ { "kind": "text", "text": "the arguments for emitting the { eventName }" } ] }, "type": { "type": "indexedAccess", "indexType": { "type": "reference", "id": 47, "name": "T" }, "objectType": { "type": "reference", "id": 97, "name": "SernEventsMapping" } } } ], "type": { "type": "intrinsic", "name": "boolean" }, "overwrites": { "type": "reference", "name": "EventEmitter.emit" } } ], "overwrites": { "type": "reference", "name": "EventEmitter.emit" } }, { "id": 29, "name": "on", "kind": 2048, "kindString": "Method", "flags": { "isPublic": true }, "sources": [ { "fileName": "src/handler/sernEmitter.ts", "line": 10, "character": 20, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/sernEmitter.ts#L10" } ], "signatures": [ { "id": 30, "name": "on", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "Listening to sern events with on. This event stays on until a crash or a normal exit" } ] }, "typeParameter": [ { "id": 31, "name": "T", "kind": 131072, "kindString": "Type parameter", "flags": {}, "type": { "type": "typeOperator", "operator": "keyof", "target": { "type": "reference", "id": 97, "name": "SernEventsMapping" } } } ], "parameters": [ { "id": 32, "name": "eventName", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", "id": 31, "name": "T" } }, { "id": 33, "name": "listener", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "what to do with the data" } ] }, "type": { "type": "reflection", "declaration": { "id": 34, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "sources": [ { "fileName": "src/handler/sernEmitter.ts", "line": 12, "character": 18, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/sernEmitter.ts#L12" } ], "signatures": [ { "id": 35, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { "id": 36, "name": "args", "kind": 32768, "kindString": "Parameter", "flags": { "isRest": true }, "type": { "type": "array", "elementType": { "type": "indexedAccess", "indexType": { "type": "reference", "id": 31, "name": "T" }, "objectType": { "type": "reference", "id": 97, "name": "SernEventsMapping" } } } } ], "type": { "type": "intrinsic", "name": "void" } } ] } } } ], "type": { "type": "reference", "id": 25, "name": "SernEmitter" }, "overwrites": { "type": "reference", "name": "EventEmitter.on" } } ], "overwrites": { "type": "reference", "name": "EventEmitter.on" } }, { "id": 37, "name": "once", "kind": 2048, "kindString": "Method", "flags": { "isPublic": true }, "sources": [ { "fileName": "src/handler/sernEmitter.ts", "line": 21, "character": 20, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/sernEmitter.ts#L21" } ], "signatures": [ { "id": 38, "name": "once", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "Listening to sern events with on. This event stays on until a crash or a normal exit" } ] }, "typeParameter": [ { "id": 39, "name": "T", "kind": 131072, "kindString": "Type parameter", "flags": {}, "type": { "type": "typeOperator", "operator": "keyof", "target": { "type": "reference", "id": 97, "name": "SernEventsMapping" } } } ], "parameters": [ { "id": 40, "name": "eventName", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", "id": 39, "name": "T" } }, { "id": 41, "name": "listener", "kind": 32768, "kindString": "Parameter", "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "what to do with the data" } ] }, "type": { "type": "reflection", "declaration": { "id": 42, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "sources": [ { "fileName": "src/handler/sernEmitter.ts", "line": 23, "character": 18, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/sernEmitter.ts#L23" } ], "signatures": [ { "id": 43, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { "id": 44, "name": "args", "kind": 32768, "kindString": "Parameter", "flags": { "isRest": true }, "type": { "type": "array", "elementType": { "type": "indexedAccess", "indexType": { "type": "reference", "id": 39, "name": "T" }, "objectType": { "type": "reference", "id": 97, "name": "SernEventsMapping" } } } } ], "type": { "type": "intrinsic", "name": "void" } } ] } } } ], "type": { "type": "reference", "id": 25, "name": "SernEmitter" }, "overwrites": { "type": "reference", "name": "EventEmitter.once" } } ], "overwrites": { "type": "reference", "name": "EventEmitter.once" } } ], "groups": [ { "title": "Constructors", "children": [ 26 ] }, { "title": "Methods", "children": [ 45, 29, 37 ] } ], "sources": [ { "fileName": "src/handler/sernEmitter.ts", "line": 4, "character": 6, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/sernEmitter.ts#L4" } ], "extendedTypes": [ { "type": "reference", "name": "EventEmitter", "qualifiedName": "EventEmitter", "package": "@types/node" } ] }, { "id": 223, "name": "Controller", "kind": 256, "kindString": "Interface", "flags": {}, "children": [ { "id": 224, "name": "next", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 29, "character": 4, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L29" } ], "type": { "type": "reflection", "declaration": { "id": 225, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 29, "character": 10, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L29" } ], "signatures": [ { "id": 226, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "type": { "type": "reference", "typeArguments": [ { "type": "intrinsic", "name": "void" } ], "name": "Ok", "qualifiedName": "Ok", "package": "ts-results-es" } } ] } } }, { "id": 227, "name": "stop", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 30, "character": 4, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L30" } ], "type": { "type": "reflection", "declaration": { "id": 228, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 30, "character": 10, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L30" } ], "signatures": [ { "id": 229, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "type": { "type": "reference", "typeArguments": [ { "type": "intrinsic", "name": "void" } ], "name": "Err", "qualifiedName": "Err", "package": "ts-results-es" } } ] } } } ], "groups": [ { "title": "Properties", "children": [ 224, 227 ] } ], "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 28, "character": 17, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L28" } ] }, { "id": 173, "name": "Wrapper", "kind": 256, "kindString": "Interface", "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "An object to be passed into Sern#init() function." } ] }, "children": [ { "id": 174, "name": "client", "kind": 1024, "kindString": "Property", "flags": { "isReadonly": true }, "sources": [ { "fileName": "src/handler/structures/wrapper.ts", "line": 10, "character": 13, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/wrapper.ts#L10" } ], "type": { "type": "reference", "typeArguments": [ { "type": "intrinsic", "name": "boolean" } ], "name": "Client", "qualifiedName": "Client", "package": "discord.js" } }, { "id": 177, "name": "commands", "kind": 1024, "kindString": "Property", "flags": { "isReadonly": true }, "sources": [ { "fileName": "src/handler/structures/wrapper.ts", "line": 13, "character": 13, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/wrapper.ts#L13" } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 176, "name": "defaultPrefix", "kind": 1024, "kindString": "Property", "flags": { "isOptional": true, "isReadonly": true }, "sources": [ { "fileName": "src/handler/structures/wrapper.ts", "line": 12, "character": 13, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/wrapper.ts#L12" } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 178, "name": "events", "kind": 1024, "kindString": "Property", "flags": { "isOptional": true, "isReadonly": true }, "sources": [ { "fileName": "src/handler/structures/wrapper.ts", "line": 14, "character": 13, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/wrapper.ts#L14" } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "string" }, { "type": "array", "elementType": { "type": "reflection", "declaration": { "id": 179, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { "id": 181, "name": "absPath", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/handler/structures/wrapper.ts", "line": 16, "character": 30, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/wrapper.ts#L16" } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 180, "name": "mod", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/handler/structures/wrapper.ts", "line": 16, "character": 12, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/wrapper.ts#L16" } ], "type": { "type": "reference", "name": "EventModule" } } ], "groups": [ { "title": "Properties", "children": [ 181, 180 ] } ], "sources": [ { "fileName": "src/handler/structures/wrapper.ts", "line": 16, "character": 10, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/wrapper.ts#L16" } ] } } }, { "type": "reflection", "declaration": { "id": 182, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "sources": [ { "fileName": "src/handler/structures/wrapper.ts", "line": 17, "character": 11, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/wrapper.ts#L17" } ], "signatures": [ { "id": 183, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "type": { "type": "array", "elementType": { "type": "reflection", "declaration": { "id": 184, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { "id": 186, "name": "absPath", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/handler/structures/wrapper.ts", "line": 17, "character": 37, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/wrapper.ts#L17" } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 185, "name": "mod", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/handler/structures/wrapper.ts", "line": 17, "character": 19, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/wrapper.ts#L17" } ], "type": { "type": "reference", "name": "EventModule" } } ], "groups": [ { "title": "Properties", "children": [ 186, 185 ] } ], "sources": [ { "fileName": "src/handler/structures/wrapper.ts", "line": 17, "character": 17, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/wrapper.ts#L17" } ] } } } } ] } } ] } }, { "id": 175, "name": "sernEmitter", "kind": 1024, "kindString": "Property", "flags": { "isOptional": true, "isReadonly": true }, "sources": [ { "fileName": "src/handler/structures/wrapper.ts", "line": 11, "character": 13, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/wrapper.ts#L11" } ], "type": { "type": "reference", "id": 25, "name": "SernEmitter" } } ], "groups": [ { "title": "Properties", "children": [ 174, 177, 176, 178, 175 ] } ], "sources": [ { "fileName": "src/handler/structures/wrapper.ts", "line": 9, "character": 10, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/wrapper.ts#L9" } ] }, { "id": 54, "name": "Args", "kind": 4194304, "kindString": "Type alias", "flags": {}, "sources": [ { "fileName": "src/types/handler.ts", "line": 11, "character": 12, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/types/handler.ts#L11" } ], "type": { "type": "reference", "id": 52, "typeArguments": [ { "type": "reflection", "declaration": { "id": 55, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { "id": 57, "name": "slash", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/types/handler.ts", "line": 11, "character": 47, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/types/handler.ts#L11" } ], "type": { "type": "reference", "id": 58, "name": "SlashOptions" } }, { "id": 56, "name": "text", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/types/handler.ts", "line": 11, "character": 31, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/types/handler.ts#L11" } ], "type": { "type": "array", "elementType": { "type": "intrinsic", "name": "string" } } } ], "groups": [ { "title": "Properties", "children": [ 57, 56 ] } ], "sources": [ { "fileName": "src/types/handler.ts", "line": 11, "character": 29, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/types/handler.ts#L11" } ] } } ], "name": "ParseType" } }, { "id": 271, "name": "AutocompletePlugin", "kind": 4194304, "kindString": "Type alias", "flags": {}, "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 92, "character": 12, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L92" } ], "type": { "type": "reference", "id": 59, "typeArguments": [ { "type": "reference", "name": "BaseModule" }, { "type": "reflection", "declaration": { "id": 272, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { "id": 274, "name": "execute", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 96, "character": 8, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L96" } ], "type": { "type": "reflection", "declaration": { "id": 275, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 96, "character": 17, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L96" } ], "signatures": [ { "id": 276, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { "id": 277, "name": "autocmp", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", "name": "AutocompleteInteraction", "qualifiedName": "AutocompleteInteraction", "package": "discord.js" } }, { "id": 278, "name": "controlller", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", "id": 223, "name": "Controller" } } ], "type": { "type": "reference", "typeArguments": [ { "type": "reference", "typeArguments": [ { "type": "intrinsic", "name": "void" }, { "type": "intrinsic", "name": "void" } ], "name": "Result", "qualifiedName": "Result", "package": "ts-results-es" } ], "name": "Awaitable", "qualifiedName": "Awaitable", "package": "discord.js" } } ] } } }, { "id": 273, "name": "type", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 95, "character": 8, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L95" } ], "type": { "type": "reference", "id": 218, "name": "PluginType.Event" } } ], "groups": [ { "title": "Properties", "children": [ 274, 273 ] } ], "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 94, "character": 4, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L94" } ] } } ], "name": "Override" } }, { "id": 189, "name": "BaseOptions", "kind": 4194304, "kindString": "Type alias", "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "Type that replaces autocomplete with " }, { "kind": "inline-tag", "tag": "@link", "text": "SernAutocompleteData", "target": 190 } ] }, "sources": [ { "fileName": "src/handler/structures/module.ts", "line": 181, "character": 12, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/module.ts#L181" } ], "type": { "type": "union", "types": [ { "type": "reference", "name": "ApplicationCommandChoicesData", "qualifiedName": "ApplicationCommandChoicesData", "package": "discord.js" }, { "type": "reference", "name": "ApplicationCommandNonOptionsData", "qualifiedName": "ApplicationCommandNonOptionsData", "package": "discord.js" }, { "type": "reference", "name": "ApplicationCommandChannelOptionData", "qualifiedName": "ApplicationCommandChannelOptionData", "package": "discord.js" }, { "type": "reference", "name": "ApplicationCommandNumericOptionData", "qualifiedName": "ApplicationCommandNumericOptionData", "package": "discord.js" }, { "type": "reference", "name": "ApplicationCommandAttachmentOption", "qualifiedName": "ApplicationCommandAttachmentOption", "package": "discord.js" }, { "type": "reference", "id": 190, "name": "SernAutocompleteData" } ] } }, { "id": 160, "name": "BothCommand", "kind": 4194304, "kindString": "Type alias", "flags": {}, "sources": [ { "fileName": "src/handler/structures/module.ts", "line": 55, "character": 12, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/module.ts#L55" } ], "type": { "type": "reference", "id": 59, "typeArguments": [ { "type": "reference", "name": "BaseModule" }, { "type": "reflection", "declaration": { "id": 161, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { "id": 165, "name": "alias", "kind": 1024, "kindString": "Property", "flags": { "isOptional": true }, "sources": [ { "fileName": "src/handler/structures/module.ts", "line": 61, "character": 8, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/module.ts#L61" } ], "type": { "type": "array", "elementType": { "type": "intrinsic", "name": "string" } } }, { "id": 167, "name": "execute", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/handler/structures/module.ts", "line": 63, "character": 8, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/module.ts#L63" } ], "type": { "type": "reflection", "declaration": { "id": 168, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "sources": [ { "fileName": "src/handler/structures/module.ts", "line": 63, "character": 17, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/module.ts#L63" } ], "signatures": [ { "id": 169, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { "id": 170, "name": "ctx", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", "id": 103, "name": "Context" } }, { "id": 171, "name": "args", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", "id": 54, "name": "Args" } } ], "type": { "type": "reference", "typeArguments": [ { "type": "union", "types": [ { "type": "intrinsic", "name": "void" }, { "type": "intrinsic", "name": "unknown" } ] } ], "name": "Awaitable", "qualifiedName": "Awaitable", "package": "discord.js" } } ] } } }, { "id": 163, "name": "onEvent", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/handler/structures/module.ts", "line": 59, "character": 8, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/module.ts#L59" } ], "type": { "type": "array", "elementType": { "type": "reference", "id": 279, "typeArguments": [ { "type": "reference", "id": 206, "name": "CommandType.Both" } ], "name": "EventPlugin" } } }, { "id": 166, "name": "options", "kind": 1024, "kindString": "Property", "flags": { "isOptional": true }, "sources": [ { "fileName": "src/handler/structures/module.ts", "line": 62, "character": 8, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/module.ts#L62" } ], "type": { "type": "array", "elementType": { "type": "reference", "id": 187, "name": "SernOptionsData" } } }, { "id": 164, "name": "plugins", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/handler/structures/module.ts", "line": 60, "character": 8, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/module.ts#L60" } ], "type": { "type": "array", "elementType": { "type": "reference", "id": 230, "name": "CommandPlugin" } } }, { "id": 162, "name": "type", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/handler/structures/module.ts", "line": 58, "character": 8, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/module.ts#L58" } ], "type": { "type": "reference", "id": 206, "name": "CommandType.Both" } } ], "groups": [ { "title": "Properties", "children": [ 165, 167, 163, 166, 164, 162 ] } ], "sources": [ { "fileName": "src/handler/structures/module.ts", "line": 57, "character": 4, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/module.ts#L57" } ] } } ], "name": "Override" } }, { "id": 316, "name": "CommandModuleNoPlugins", "kind": 4194304, "kindString": "Type alias", "flags": {}, "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 145, "character": 12, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L145" } ], "type": { "type": "mapped", "parameter": "T", "parameterType": { "type": "reference", "id": 203, "name": "CommandType" }, "templateType": { "type": "reference", "typeArguments": [ { "type": "indexedAccess", "indexType": { "type": "reference", "name": "T" }, "objectType": { "type": "reference", "name": "CommandModuleDefs" } }, { "type": "union", "types": [ { "type": "literal", "value": "plugins" }, { "type": "literal", "value": "onEvent" } ] } ], "name": "Omit", "qualifiedName": "Omit", "package": "typescript" } } }, { "id": 330, "name": "CommandModulePlugin", "kind": 4194304, "kindString": "Type alias", "flags": {}, "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 173, "character": 12, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L173" } ], "typeParameters": [ { "id": 331, "name": "T", "kind": 131072, "kindString": "Type parameter", "flags": {}, "type": { "type": "reference", "id": 203, "name": "CommandType" } } ], "type": { "type": "union", "types": [ { "type": "reference", "id": 279, "typeArguments": [ { "type": "reference", "id": 331, "name": "T" } ], "name": "EventPlugin" }, { "type": "reference", "id": 230, "typeArguments": [ { "type": "reference", "id": 331, "name": "T" } ], "name": "CommandPlugin" } ] } }, { "id": 230, "name": "CommandPlugin", "kind": 4194304, "kindString": "Type alias", "flags": {}, "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 40, "character": 12, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L40" } ], "typeParameters": [ { "id": 242, "name": "T", "kind": 131072, "kindString": "Type parameter", "flags": {}, "type": { "type": "typeOperator", "operator": "keyof", "target": { "type": "reference", "name": "CommandModuleDefs" } }, "default": { "type": "typeOperator", "operator": "keyof", "target": { "type": "reference", "name": "CommandModuleDefs" } } } ], "type": { "type": "indexedAccess", "indexType": { "type": "reference", "id": 242, "name": "T" }, "objectType": { "type": "mapped", "parameter": "K", "parameterType": { "type": "reference", "id": 242, "name": "T" }, "templateType": { "type": "reference", "id": 59, "typeArguments": [ { "type": "reference", "name": "BasePlugin" }, { "type": "reflection", "declaration": { "id": 231, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { "id": 233, "name": "execute", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 45, "character": 12, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L45" } ], "type": { "type": "reflection", "declaration": { "id": 234, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 45, "character": 21, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L45" } ], "signatures": [ { "id": 235, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { "id": 236, "name": "wrapper", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", "id": 173, "name": "Wrapper" } }, { "id": 237, "name": "payload", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reflection", "declaration": { "id": 238, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { "id": 240, "name": "absPath", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 49, "character": 20, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L49" } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 239, "name": "mod", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 48, "character": 20, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L48" } ], "type": { "type": "reference", "id": 62, "typeArguments": [ { "type": "indexedAccess", "indexType": { "type": "reference", "id": 242, "name": "T" }, "objectType": { "type": "reference", "name": "CommandModuleDefs" } }, { "type": "union", "types": [ { "type": "literal", "value": "name" }, { "type": "literal", "value": "description" } ] } ], "name": "DefinitelyDefined" } } ], "groups": [ { "title": "Properties", "children": [ 240, 239 ] } ], "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 47, "character": 25, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L47" } ] } } }, { "id": 241, "name": "controller", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", "id": 223, "name": "Controller" } } ], "type": { "type": "reference", "typeArguments": [ { "type": "reference", "typeArguments": [ { "type": "intrinsic", "name": "void" }, { "type": "intrinsic", "name": "void" } ], "name": "Result", "qualifiedName": "Result", "package": "ts-results-es" } ], "name": "Awaitable", "qualifiedName": "Awaitable", "package": "discord.js" } } ] } } }, { "id": 232, "name": "type", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 44, "character": 12, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L44" } ], "type": { "type": "reference", "id": 217, "name": "PluginType.Command" } } ], "groups": [ { "title": "Properties", "children": [ 233, 232 ] } ], "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 43, "character": 8, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L43" } ] } } ], "name": "Override" } } } }, { "id": 87, "name": "DefinedCommandModule", "kind": 4194304, "kindString": "Type alias", "flags": {}, "sources": [ { "fileName": "src/types/handler.ts", "line": 48, "character": 12, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/types/handler.ts#L48" } ], "type": { "type": "reference", "id": 62, "typeArguments": [ { "type": "reference", "name": "CommandModule" }, { "type": "union", "types": [ { "type": "literal", "value": "name" }, { "type": "literal", "value": "description" } ] } ], "name": "DefinitelyDefined" } }, { "id": 88, "name": "DefinedEventModule", "kind": 4194304, "kindString": "Type alias", "flags": {}, "sources": [ { "fileName": "src/types/handler.ts", "line": 49, "character": 12, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/types/handler.ts#L49" } ], "type": { "type": "reference", "id": 62, "typeArguments": [ { "type": "reference", "name": "EventModule" }, { "type": "union", "types": [ { "type": "literal", "value": "name" }, { "type": "literal", "value": "description" } ] } ], "name": "DefinitelyDefined" } }, { "id": 86, "name": "DefinedModule", "kind": 4194304, "kindString": "Type alias", "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "After modules are transformed, name and description are given default values if none\r\nare provided to Module. This type represents that transformation" } ] }, "sources": [ { "fileName": "src/types/handler.ts", "line": 47, "character": 12, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/types/handler.ts#L47" } ], "type": { "type": "reference", "id": 62, "typeArguments": [ { "type": "reference", "id": 172, "name": "Module" }, { "type": "union", "types": [ { "type": "literal", "value": "name" }, { "type": "literal", "value": "description" } ] } ], "name": "DefinitelyDefined" } }, { "id": 62, "name": "DefinitelyDefined", "kind": 4194304, "kindString": "Type alias", "flags": {}, "sources": [ { "fileName": "src/types/handler.ts", "line": 18, "character": 12, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/types/handler.ts#L18" } ], "typeParameters": [ { "id": 63, "name": "T", "kind": 131072, "kindString": "Type parameter", "flags": {} }, { "id": 64, "name": "K", "kind": 131072, "kindString": "Type parameter", "flags": {}, "type": { "type": "typeOperator", "operator": "keyof", "target": { "type": "reference", "id": 63, "name": "T" } }, "default": { "type": "typeOperator", "operator": "keyof", "target": { "type": "reference", "id": 63, "name": "T" } } } ], "type": { "type": "intersection", "types": [ { "type": "mapped", "parameter": "L", "parameterType": { "type": "reference", "id": 64, "name": "K" }, "templateType": { "type": "conditional", "checkType": { "type": "indexedAccess", "indexType": { "type": "reference", "name": "L" }, "objectType": { "type": "reference", "id": 63, "name": "T" } }, "extendsType": { "type": "reference", "typeArguments": [ { "type": "intrinsic", "name": "string" }, { "type": "intrinsic", "name": "unknown" } ], "name": "Record", "qualifiedName": "Record", "package": "typescript" }, "trueType": { "type": "reference", "id": 62, "typeArguments": [ { "type": "indexedAccess", "indexType": { "type": "reference", "name": "L" }, "objectType": { "type": "reference", "id": 63, "name": "T" } }, { "type": "typeOperator", "operator": "keyof", "target": { "type": "indexedAccess", "indexType": { "type": "reference", "name": "L" }, "objectType": { "type": "reference", "id": 63, "name": "T" } } } ], "name": "DefinitelyDefined" }, "falseType": { "type": "indexedAccess", "indexType": { "type": "reference", "name": "L" }, "objectType": { "type": "reference", "typeArguments": [ { "type": "reference", "id": 63, "name": "T" } ], "name": "Required", "qualifiedName": "Required", "package": "typescript" } } }, "optionalModifier": "-" }, { "type": "reference", "id": 63, "name": "T" } ] } }, { "id": 243, "name": "DiscordEmitterPlugin", "kind": 4194304, "kindString": "Type alias", "flags": {}, "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 57, "character": 12, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L57" } ], "type": { "type": "reference", "id": 59, "typeArguments": [ { "type": "reference", "name": "BasePlugin" }, { "type": "reflection", "declaration": { "id": 244, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { "id": 246, "name": "execute", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 61, "character": 8, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L61" } ], "type": { "type": "reflection", "declaration": { "id": 247, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 61, "character": 17, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L61" } ], "signatures": [ { "id": 248, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { "id": 249, "name": "wrapper", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", "name": "Client", "qualifiedName": "Client", "package": "discord.js" } }, { "id": 250, "name": "module", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", "id": 62, "typeArguments": [ { "type": "reference", "name": "DiscordEventCommand" }, { "type": "union", "types": [ { "type": "literal", "value": "name" }, { "type": "literal", "value": "description" } ] } ], "name": "DefinitelyDefined" } }, { "id": 251, "name": "controller", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", "id": 223, "name": "Controller" } } ], "type": { "type": "reference", "typeArguments": [ { "type": "reference", "typeArguments": [ { "type": "intrinsic", "name": "void" }, { "type": "intrinsic", "name": "void" } ], "name": "Result", "qualifiedName": "Result", "package": "ts-results-es" } ], "name": "Awaitable", "qualifiedName": "Awaitable", "package": "discord.js" } } ] } } }, { "id": 245, "name": "type", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 60, "character": 8, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L60" } ], "type": { "type": "reference", "id": 217, "name": "PluginType.Command" } } ], "groups": [ { "title": "Properties", "children": [ 246, 245 ] } ], "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 59, "character": 4, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L59" } ] } } ], "name": "Override" } }, { "id": 306, "name": "DiscordEventPlugin", "kind": 4194304, "kindString": "Type alias", "flags": {}, "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 136, "character": 12, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L136" } ], "typeParameters": [ { "id": 315, "name": "T", "kind": 131072, "kindString": "Type parameter", "flags": {}, "type": { "type": "typeOperator", "operator": "keyof", "target": { "type": "reference", "name": "ClientEvents", "qualifiedName": "ClientEvents", "package": "discord.js" } }, "default": { "type": "typeOperator", "operator": "keyof", "target": { "type": "reference", "name": "ClientEvents", "qualifiedName": "ClientEvents", "package": "discord.js" } } } ], "type": { "type": "reference", "id": 59, "typeArguments": [ { "type": "reference", "name": "BasePlugin" }, { "type": "reflection", "declaration": { "id": 307, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { "id": 310, "name": "execute", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 141, "character": 8, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L141" } ], "type": { "type": "reflection", "declaration": { "id": 311, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 141, "character": 17, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L141" } ], "signatures": [ { "id": 312, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { "id": 313, "name": "args", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "indexedAccess", "indexType": { "type": "reference", "id": 315, "name": "T" }, "objectType": { "type": "reference", "name": "ClientEvents", "qualifiedName": "ClientEvents", "package": "discord.js" } } }, { "id": 314, "name": "controller", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", "id": 223, "name": "Controller" } } ], "type": { "type": "reference", "typeArguments": [ { "type": "reference", "typeArguments": [ { "type": "intrinsic", "name": "void" }, { "type": "intrinsic", "name": "void" } ], "name": "Result", "qualifiedName": "Result", "package": "ts-results-es" } ], "name": "Awaitable", "qualifiedName": "Awaitable", "package": "discord.js" } } ] } } }, { "id": 308, "name": "name", "kind": 1024, "kindString": "Property", "flags": { "isOptional": true }, "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 139, "character": 8, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L139" } ], "type": { "type": "reference", "id": 315, "name": "T" } }, { "id": 309, "name": "type", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 140, "character": 8, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L140" } ], "type": { "type": "reference", "id": 218, "name": "PluginType.Event" } } ], "groups": [ { "title": "Properties", "children": [ 310, 308, 309 ] } ], "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 138, "character": 4, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L138" } ] } } ], "name": "Override" } }, { "id": 65, "name": "EventInput", "kind": 4194304, "kindString": "Type alias", "flags": {}, "sources": [ { "fileName": "src/types/handler.ts", "line": 24, "character": 12, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/types/handler.ts#L24" } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "string" }, { "type": "array", "elementType": { "type": "reflection", "declaration": { "id": 66, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { "id": 68, "name": "absPath", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/types/handler.ts", "line": 26, "character": 26, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/types/handler.ts#L26" } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 67, "name": "mod", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/types/handler.ts", "line": 26, "character": 8, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/types/handler.ts#L26" } ], "type": { "type": "reference", "name": "EventModule" } } ], "groups": [ { "title": "Properties", "children": [ 68, 67 ] } ], "sources": [ { "fileName": "src/types/handler.ts", "line": 26, "character": 6, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/types/handler.ts#L26" } ] } } }, { "type": "reflection", "declaration": { "id": 69, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "sources": [ { "fileName": "src/types/handler.ts", "line": 27, "character": 7, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/types/handler.ts#L27" } ], "signatures": [ { "id": 70, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "type": { "type": "array", "elementType": { "type": "reflection", "declaration": { "id": 71, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { "id": 73, "name": "absPath", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/types/handler.ts", "line": 27, "character": 33, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/types/handler.ts#L27" } ], "type": { "type": "intrinsic", "name": "string" } }, { "id": 72, "name": "mod", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/types/handler.ts", "line": 27, "character": 15, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/types/handler.ts#L27" } ], "type": { "type": "reference", "name": "EventModule" } } ], "groups": [ { "title": "Properties", "children": [ 73, 72 ] } ], "sources": [ { "fileName": "src/types/handler.ts", "line": 27, "character": 13, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/types/handler.ts#L27" } ] } } } } ] } } ] } }, { "id": 323, "name": "EventModuleCommandPluginDefs", "kind": 4194304, "kindString": "Type alias", "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "Event Module Command Plugins" } ] }, "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 163, "character": 12, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L163" } ], "type": { "type": "reflection", "declaration": { "id": 324, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { "id": 325, "name": "1", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 164, "character": 4, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L164" } ], "type": { "type": "reference", "id": 243, "name": "DiscordEmitterPlugin" } }, { "id": 326, "name": "2", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 165, "character": 4, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L165" } ], "type": { "type": "reference", "id": 262, "name": "SernEmitterPlugin" } }, { "id": 327, "name": "3", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 166, "character": 4, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L166" } ], "type": { "type": "reference", "id": 252, "name": "ExternalEmitterPlugin" } } ], "groups": [ { "title": "Properties", "children": [ 325, 326, 327 ] } ], "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 163, "character": 43, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L163" } ] } } }, { "id": 318, "name": "EventModuleEventPluginDefs", "kind": 4194304, "kindString": "Type alias", "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "Event Module Event Plugins" } ] }, "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 154, "character": 12, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L154" } ], "type": { "type": "reflection", "declaration": { "id": 319, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { "id": 320, "name": "1", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 155, "character": 4, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L155" } ], "type": { "type": "reference", "id": 306, "name": "DiscordEventPlugin" } }, { "id": 321, "name": "2", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 156, "character": 4, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L156" } ], "type": { "type": "reference", "id": 288, "name": "SernEventPlugin" } }, { "id": 322, "name": "3", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 157, "character": 4, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L157" } ], "type": { "type": "reference", "id": 298, "name": "ExternalEventPlugin" } } ], "groups": [ { "title": "Properties", "children": [ 320, 321, 322 ] } ], "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 154, "character": 41, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L154" } ] } } }, { "id": 328, "name": "EventModulePlugin", "kind": 4194304, "kindString": "Type alias", "flags": {}, "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 169, "character": 12, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L169" } ], "typeParameters": [ { "id": 329, "name": "T", "kind": 131072, "kindString": "Type parameter", "flags": {}, "type": { "type": "reference", "id": 212, "name": "EventType" } } ], "type": { "type": "union", "types": [ { "type": "indexedAccess", "indexType": { "type": "reference", "id": 329, "name": "T" }, "objectType": { "type": "reference", "id": 318, "name": "EventModuleEventPluginDefs" } }, { "type": "indexedAccess", "indexType": { "type": "reference", "id": 329, "name": "T" }, "objectType": { "type": "reference", "id": 323, "name": "EventModuleCommandPluginDefs" } } ] } }, { "id": 317, "name": "EventModulesNoPlugins", "kind": 4194304, "kindString": "Type alias", "flags": {}, "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 148, "character": 12, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L148" } ], "type": { "type": "mapped", "parameter": "T", "parameterType": { "type": "reference", "id": 212, "name": "EventType" }, "templateType": { "type": "reference", "typeArguments": [ { "type": "indexedAccess", "indexType": { "type": "reference", "name": "T" }, "objectType": { "type": "reference", "name": "EventModuleDefs" } }, { "type": "union", "types": [ { "type": "literal", "value": "plugins" }, { "type": "literal", "value": "onEvent" } ] } ], "name": "Omit", "qualifiedName": "Omit", "package": "typescript" } } }, { "id": 279, "name": "EventPlugin", "kind": 4194304, "kindString": "Type alias", "flags": {}, "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 103, "character": 12, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L103" } ], "typeParameters": [ { "id": 287, "name": "T", "kind": 131072, "kindString": "Type parameter", "flags": {}, "type": { "type": "typeOperator", "operator": "keyof", "target": { "type": "reference", "name": "CommandModuleDefs" } }, "default": { "type": "typeOperator", "operator": "keyof", "target": { "type": "reference", "name": "CommandModuleDefs" } } } ], "type": { "type": "indexedAccess", "indexType": { "type": "reference", "id": 287, "name": "T" }, "objectType": { "type": "mapped", "parameter": "K", "parameterType": { "type": "reference", "id": 287, "name": "T" }, "templateType": { "type": "reference", "id": 59, "typeArguments": [ { "type": "reference", "name": "BasePlugin" }, { "type": "reflection", "declaration": { "id": 280, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { "id": 282, "name": "execute", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 108, "character": 12, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L108" } ], "type": { "type": "reflection", "declaration": { "id": 283, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 108, "character": 21, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L108" } ], "signatures": [ { "id": 284, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { "id": 285, "name": "event", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", "typeArguments": [ { "type": "indexedAccess", "indexType": { "type": "literal", "value": "execute" }, "objectType": { "type": "indexedAccess", "indexType": { "type": "reference", "name": "K" }, "objectType": { "type": "reference", "name": "CommandModuleDefs" } } } ], "name": "Parameters", "qualifiedName": "Parameters", "package": "typescript" } }, { "id": 286, "name": "controller", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", "id": 223, "name": "Controller" } } ], "type": { "type": "reference", "typeArguments": [ { "type": "reference", "typeArguments": [ { "type": "intrinsic", "name": "void" }, { "type": "intrinsic", "name": "void" } ], "name": "Result", "qualifiedName": "Result", "package": "ts-results-es" } ], "name": "Awaitable", "qualifiedName": "Awaitable", "package": "discord.js" } } ] } } }, { "id": 281, "name": "type", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 107, "character": 12, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L107" } ], "type": { "type": "reference", "id": 218, "name": "PluginType.Event" } } ], "groups": [ { "title": "Properties", "children": [ 282, 281 ] } ], "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 106, "character": 8, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L106" } ] } } ], "name": "Override" } } } }, { "id": 252, "name": "ExternalEmitterPlugin", "kind": 4194304, "kindString": "Type alias", "flags": {}, "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 68, "character": 12, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L68" } ], "typeParameters": [ { "id": 261, "name": "T", "kind": 131072, "kindString": "Type parameter", "flags": {}, "type": { "type": "reference", "name": "EventEmitter", "qualifiedName": "EventEmitter", "package": "@types/node" }, "default": { "type": "reference", "name": "EventEmitter", "qualifiedName": "EventEmitter", "package": "@types/node" } } ], "type": { "type": "reference", "id": 59, "typeArguments": [ { "type": "reference", "name": "BasePlugin" }, { "type": "reflection", "declaration": { "id": 253, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { "id": 255, "name": "execute", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 72, "character": 8, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L72" } ], "type": { "type": "reflection", "declaration": { "id": 256, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 72, "character": 17, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L72" } ], "signatures": [ { "id": 257, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { "id": 258, "name": "wrapper", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", "id": 261, "name": "T" } }, { "id": 259, "name": "module", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", "id": 62, "typeArguments": [ { "type": "reference", "name": "ExternalEventCommand" }, { "type": "union", "types": [ { "type": "literal", "value": "name" }, { "type": "literal", "value": "description" } ] } ], "name": "DefinitelyDefined" } }, { "id": 260, "name": "controller", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", "id": 223, "name": "Controller" } } ], "type": { "type": "reference", "typeArguments": [ { "type": "reference", "typeArguments": [ { "type": "intrinsic", "name": "void" }, { "type": "intrinsic", "name": "void" } ], "name": "Result", "qualifiedName": "Result", "package": "ts-results-es" } ], "name": "Awaitable", "qualifiedName": "Awaitable", "package": "discord.js" } } ] } } }, { "id": 254, "name": "type", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 71, "character": 8, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L71" } ], "type": { "type": "reference", "id": 217, "name": "PluginType.Command" } } ], "groups": [ { "title": "Properties", "children": [ 255, 254 ] } ], "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 70, "character": 4, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L70" } ] } } ], "name": "Override" } }, { "id": 298, "name": "ExternalEventPlugin", "kind": 4194304, "kindString": "Type alias", "flags": {}, "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 128, "character": 12, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L128" } ], "type": { "type": "reference", "id": 59, "typeArguments": [ { "type": "reference", "name": "BasePlugin" }, { "type": "reflection", "declaration": { "id": 299, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { "id": 301, "name": "execute", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 132, "character": 8, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L132" } ], "type": { "type": "reflection", "declaration": { "id": 302, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 132, "character": 17, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L132" } ], "signatures": [ { "id": 303, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { "id": 304, "name": "args", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "array", "elementType": { "type": "intrinsic", "name": "unknown" } } }, { "id": 305, "name": "controller", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", "id": 223, "name": "Controller" } } ], "type": { "type": "reference", "typeArguments": [ { "type": "reference", "typeArguments": [ { "type": "intrinsic", "name": "void" }, { "type": "intrinsic", "name": "void" } ], "name": "Result", "qualifiedName": "Result", "package": "ts-results-es" } ], "name": "Awaitable", "qualifiedName": "Awaitable", "package": "discord.js" } } ] } } }, { "id": 300, "name": "type", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 131, "character": 8, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L131" } ], "type": { "type": "reference", "id": 218, "name": "PluginType.Event" } } ], "groups": [ { "title": "Properties", "children": [ 301, 300 ] } ], "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 130, "character": 4, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L130" } ] } } ], "name": "Override" } }, { "id": 332, "name": "InputCommandModule", "kind": 4194304, "kindString": "Type alias", "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "User inputs this type. Sern processes behind the scenes for better usage" } ] }, "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 178, "character": 12, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L178" } ], "type": { "type": "indexedAccess", "indexType": { "type": "reference", "id": 203, "name": "CommandType" }, "objectType": { "type": "mapped", "parameter": "T", "parameterType": { "type": "reference", "id": 203, "name": "CommandType" }, "templateType": { "type": "intersection", "types": [ { "type": "indexedAccess", "indexType": { "type": "reference", "name": "T" }, "objectType": { "type": "reference", "id": 316, "name": "CommandModuleNoPlugins" } }, { "type": "reflection", "declaration": { "id": 333, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { "id": 334, "name": "plugins", "kind": 1024, "kindString": "Property", "flags": { "isOptional": true }, "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 179, "character": 54, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L179" } ], "type": { "type": "array", "elementType": { "type": "reference", "id": 330, "typeArguments": [ { "type": "reference", "name": "T" } ], "name": "CommandModulePlugin" } } } ], "groups": [ { "title": "Properties", "children": [ 334 ] } ], "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 179, "character": 52, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L179" } ] } } ] } } } }, { "id": 335, "name": "InputEventModule", "kind": 4194304, "kindString": "Type alias", "flags": {}, "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 182, "character": 12, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L182" } ], "type": { "type": "indexedAccess", "indexType": { "type": "reference", "id": 212, "name": "EventType" }, "objectType": { "type": "mapped", "parameter": "T", "parameterType": { "type": "reference", "id": 212, "name": "EventType" }, "templateType": { "type": "intersection", "types": [ { "type": "indexedAccess", "indexType": { "type": "reference", "name": "T" }, "objectType": { "type": "reference", "id": 317, "name": "EventModulesNoPlugins" } }, { "type": "reflection", "declaration": { "id": 336, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { "id": 337, "name": "plugins", "kind": 1024, "kindString": "Property", "flags": { "isOptional": true }, "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 183, "character": 51, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L183" } ], "type": { "type": "array", "elementType": { "type": "reference", "id": 328, "typeArguments": [ { "type": "reference", "name": "T" } ], "name": "EventModulePlugin" } } } ], "groups": [ { "title": "Properties", "children": [ 337 ] } ], "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 183, "character": 49, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L183" } ] } } ] } } } }, { "id": 76, "name": "IsOptional", "kind": 4194304, "kindString": "Type alias", "flags": {}, "sources": [ { "fileName": "src/types/handler.ts", "line": 31, "character": 12, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/types/handler.ts#L31" } ], "typeParameters": [ { "id": 77, "name": "T", "kind": 131072, "kindString": "Type parameter", "flags": {} } ], "type": { "type": "mapped", "parameter": "K", "parameterType": { "type": "typeOperator", "operator": "keyof", "target": { "type": "reference", "id": 77, "name": "T" } }, "templateType": { "type": "conditional", "checkType": { "type": "indexedAccess", "indexType": { "type": "reference", "name": "K" }, "objectType": { "type": "reference", "id": 77, "name": "T" } }, "extendsType": { "type": "indexedAccess", "indexType": { "type": "reference", "name": "K" }, "objectType": { "type": "reference", "typeArguments": [ { "type": "reference", "id": 77, "name": "T" } ], "name": "Required", "qualifiedName": "Required", "package": "typescript" } }, "trueType": { "type": "literal", "value": false }, "falseType": { "type": "literal", "value": true } }, "optionalModifier": "-" } }, { "id": 172, "name": "Module", "kind": 4194304, "kindString": "Type alias", "flags": {}, "sources": [ { "fileName": "src/handler/structures/module.ts", "line": 141, "character": 12, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/module.ts#L141" } ], "type": { "type": "union", "types": [ { "type": "reference", "name": "CommandModule" }, { "type": "reference", "name": "EventModule" } ] } }, { "id": 50, "name": "Nullish", "kind": 4194304, "kindString": "Type alias", "flags": {}, "sources": [ { "fileName": "src/types/handler.ts", "line": 4, "character": 12, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/types/handler.ts#L4" } ], "typeParameters": [ { "id": 51, "name": "T", "kind": 131072, "kindString": "Type parameter", "flags": {} } ], "type": { "type": "union", "types": [ { "type": "reference", "id": 51, "name": "T" }, { "type": "intrinsic", "name": "undefined" }, { "type": "literal", "value": null } ] } }, { "id": 59, "name": "Override", "kind": 4194304, "kindString": "Type alias", "flags": {}, "sources": [ { "fileName": "src/types/handler.ts", "line": 16, "character": 12, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/types/handler.ts#L16" } ], "typeParameters": [ { "id": 60, "name": "T1", "kind": 131072, "kindString": "Type parameter", "flags": {} }, { "id": 61, "name": "T2", "kind": 131072, "kindString": "Type parameter", "flags": {} } ], "type": { "type": "intersection", "types": [ { "type": "reference", "typeArguments": [ { "type": "reference", "id": 60, "name": "T1" }, { "type": "typeOperator", "operator": "keyof", "target": { "type": "reference", "id": 61, "name": "T2" } } ], "name": "Omit", "qualifiedName": "Omit", "package": "typescript" }, { "type": "reference", "id": 61, "name": "T2" } ] } }, { "id": 52, "name": "ParseType", "kind": 4194304, "kindString": "Type alias", "flags": {}, "sources": [ { "fileName": "src/types/handler.ts", "line": 7, "character": 12, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/types/handler.ts#L7" } ], "typeParameters": [ { "id": 53, "name": "T", "kind": 131072, "kindString": "Type parameter", "flags": {} } ], "type": { "type": "indexedAccess", "indexType": { "type": "typeOperator", "operator": "keyof", "target": { "type": "reference", "id": 53, "name": "T" } }, "objectType": { "type": "mapped", "parameter": "K", "parameterType": { "type": "typeOperator", "operator": "keyof", "target": { "type": "reference", "id": 53, "name": "T" } }, "templateType": { "type": "conditional", "checkType": { "type": "indexedAccess", "indexType": { "type": "reference", "name": "K" }, "objectType": { "type": "reference", "id": 53, "name": "T" } }, "extendsType": { "type": "intrinsic", "name": "unknown" }, "trueType": { "type": "tuple", "elements": [ { "type": "named-tuple-member", "name": "k", "isOptional": false, "element": { "type": "reference", "name": "K" } }, { "type": "named-tuple-member", "name": "args", "isOptional": false, "element": { "type": "indexedAccess", "indexType": { "type": "reference", "name": "K" }, "objectType": { "type": "reference", "id": 53, "name": "T" } } } ] }, "falseType": { "type": "intrinsic", "name": "never" } } } } }, { "id": 89, "name": "Payload", "kind": 4194304, "kindString": "Type alias", "flags": {}, "sources": [ { "fileName": "src/types/handler.ts", "line": 50, "character": 12, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/types/handler.ts#L50" } ], "type": { "type": "union", "types": [ { "type": "reflection", "declaration": { "id": 90, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { "id": 92, "name": "module", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/types/handler.ts", "line": 51, "character": 35, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/types/handler.ts#L51" } ], "type": { "type": "reference", "id": 172, "name": "Module" } }, { "id": 91, "name": "type", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/types/handler.ts", "line": 51, "character": 8, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/types/handler.ts#L51" } ], "type": { "type": "reference", "id": 220, "name": "PayloadType.Success" } } ], "groups": [ { "title": "Properties", "children": [ 92, 91 ] } ], "sources": [ { "fileName": "src/types/handler.ts", "line": 51, "character": 6, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/types/handler.ts#L51" } ] } }, { "type": "reflection", "declaration": { "id": 93, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { "id": 95, "name": "module", "kind": 1024, "kindString": "Property", "flags": { "isOptional": true }, "sources": [ { "fileName": "src/types/handler.ts", "line": 52, "character": 35, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/types/handler.ts#L52" } ], "type": { "type": "reference", "id": 172, "name": "Module" } }, { "id": 96, "name": "reason", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/types/handler.ts", "line": 52, "character": 52, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/types/handler.ts#L52" } ], "type": { "type": "union", "types": [ { "type": "intrinsic", "name": "string" }, { "type": "reference", "name": "Error", "qualifiedName": "Error", "package": "typescript" } ] } }, { "id": 94, "name": "type", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/types/handler.ts", "line": 52, "character": 8, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/types/handler.ts#L52" } ], "type": { "type": "reference", "id": 221, "name": "PayloadType.Failure" } } ], "groups": [ { "title": "Properties", "children": [ 95, 96, 94 ] } ], "sources": [ { "fileName": "src/types/handler.ts", "line": 52, "character": 6, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/types/handler.ts#L52" } ] } } ] } }, { "id": 74, "name": "Reconstruct", "kind": 4194304, "kindString": "Type alias", "flags": {}, "sources": [ { "fileName": "src/types/handler.ts", "line": 29, "character": 12, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/types/handler.ts#L29" } ], "typeParameters": [ { "id": 75, "name": "T", "kind": 131072, "kindString": "Type parameter", "flags": {} } ], "type": { "type": "conditional", "checkType": { "type": "reference", "id": 75, "name": "T" }, "extendsType": { "type": "reference", "typeArguments": [ { "type": "inferred", "name": "O" }, { "type": "intrinsic", "name": "never" } ], "name": "Omit", "qualifiedName": "Omit", "package": "typescript" }, "trueType": { "type": "intersection", "types": [ { "type": "reference", "name": "O" }, { "type": "reference", "id": 74, "typeArguments": [ { "type": "reference", "name": "O" } ], "name": "Reconstruct" } ] }, "falseType": { "type": "reference", "id": 75, "name": "T" } } }, { "id": 190, "name": "SernAutocompleteData", "kind": 4194304, "kindString": "Type alias", "flags": {}, "sources": [ { "fileName": "src/handler/structures/module.ts", "line": 166, "character": 12, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/module.ts#L166" } ], "type": { "type": "reference", "id": 59, "typeArguments": [ { "type": "reference", "name": "BaseApplicationCommandOptionsData", "qualifiedName": "BaseApplicationCommandOptionsData", "package": "discord.js" }, { "type": "reflection", "declaration": { "id": 191, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { "id": 192, "name": "autocomplete", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/handler/structures/module.ts", "line": 169, "character": 8, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/module.ts#L169" } ], "type": { "type": "literal", "value": true } }, { "id": 194, "name": "command", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/handler/structures/module.ts", "line": 174, "character": 8, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/module.ts#L174" } ], "type": { "type": "reference", "name": "AutocompleteCommand" } }, { "id": 193, "name": "type", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/handler/structures/module.ts", "line": 170, "character": 8, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/module.ts#L170" } ], "type": { "type": "union", "types": [ { "type": "reference", "name": "ApplicationCommandOptionType.String", "qualifiedName": "ApplicationCommandOptionType.String", "package": "discord-api-types" }, { "type": "reference", "name": "ApplicationCommandOptionType.Number", "qualifiedName": "ApplicationCommandOptionType.Number", "package": "discord-api-types" }, { "type": "reference", "name": "ApplicationCommandOptionType.Integer", "qualifiedName": "ApplicationCommandOptionType.Integer", "package": "discord-api-types" } ] } } ], "groups": [ { "title": "Properties", "children": [ 192, 194, 193 ] } ], "sources": [ { "fileName": "src/handler/structures/module.ts", "line": 168, "character": 4, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/module.ts#L168" } ] } } ], "name": "Override" } }, { "id": 262, "name": "SernEmitterPlugin", "kind": 4194304, "kindString": "Type alias", "flags": {}, "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 80, "character": 12, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L80" } ], "type": { "type": "reference", "id": 59, "typeArguments": [ { "type": "reference", "name": "BasePlugin" }, { "type": "reflection", "declaration": { "id": 263, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { "id": 265, "name": "execute", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 84, "character": 8, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L84" } ], "type": { "type": "reflection", "declaration": { "id": 266, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 84, "character": 17, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L84" } ], "signatures": [ { "id": 267, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { "id": 268, "name": "wrapper", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", "id": 25, "name": "SernEmitter" } }, { "id": 269, "name": "module", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", "id": 62, "typeArguments": [ { "type": "reference", "name": "SernEventCommand" }, { "type": "union", "types": [ { "type": "literal", "value": "name" }, { "type": "literal", "value": "description" } ] } ], "name": "DefinitelyDefined" } }, { "id": 270, "name": "controller", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", "id": 223, "name": "Controller" } } ], "type": { "type": "reference", "typeArguments": [ { "type": "reference", "typeArguments": [ { "type": "intrinsic", "name": "void" }, { "type": "intrinsic", "name": "void" } ], "name": "Result", "qualifiedName": "Result", "package": "ts-results-es" } ], "name": "Awaitable", "qualifiedName": "Awaitable", "package": "discord.js" } } ] } } }, { "id": 264, "name": "type", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 83, "character": 8, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L83" } ], "type": { "type": "reference", "id": 217, "name": "PluginType.Command" } } ], "groups": [ { "title": "Properties", "children": [ 265, 264 ] } ], "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 82, "character": 4, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L82" } ] } } ], "name": "Override" } }, { "id": 288, "name": "SernEventPlugin", "kind": 4194304, "kindString": "Type alias", "flags": {}, "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 116, "character": 12, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L116" } ], "typeParameters": [ { "id": 297, "name": "T", "kind": 131072, "kindString": "Type parameter", "flags": {}, "type": { "type": "typeOperator", "operator": "keyof", "target": { "type": "reference", "id": 97, "name": "SernEventsMapping" } }, "default": { "type": "typeOperator", "operator": "keyof", "target": { "type": "reference", "id": 97, "name": "SernEventsMapping" } } } ], "type": { "type": "reference", "id": 59, "typeArguments": [ { "type": "reference", "name": "BasePlugin" }, { "type": "reflection", "declaration": { "id": 289, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { "id": 292, "name": "execute", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 121, "character": 8, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L121" } ], "type": { "type": "reflection", "declaration": { "id": 293, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 121, "character": 17, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L121" } ], "signatures": [ { "id": 294, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { "id": 295, "name": "args", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "indexedAccess", "indexType": { "type": "reference", "id": 297, "name": "T" }, "objectType": { "type": "reference", "id": 97, "name": "SernEventsMapping" } } }, { "id": 296, "name": "controller", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", "id": 223, "name": "Controller" } } ], "type": { "type": "reference", "typeArguments": [ { "type": "reference", "typeArguments": [ { "type": "intrinsic", "name": "void" }, { "type": "intrinsic", "name": "void" } ], "name": "Result", "qualifiedName": "Result", "package": "ts-results-es" } ], "name": "Awaitable", "qualifiedName": "Awaitable", "package": "discord.js" } } ] } } }, { "id": 290, "name": "name", "kind": 1024, "kindString": "Property", "flags": { "isOptional": true }, "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 119, "character": 8, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L119" } ], "type": { "type": "reference", "id": 297, "name": "T" } }, { "id": 291, "name": "type", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 120, "character": 8, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L120" } ], "type": { "type": "reference", "id": 218, "name": "PluginType.Event" } } ], "groups": [ { "title": "Properties", "children": [ 292, 290, 291 ] } ], "sources": [ { "fileName": "src/handler/plugins/plugin.ts", "line": 118, "character": 4, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/plugins/plugin.ts#L118" } ] } } ], "name": "Override" } }, { "id": 97, "name": "SernEventsMapping", "kind": 4194304, "kindString": "Type alias", "flags": {}, "sources": [ { "fileName": "src/types/handler.ts", "line": 53, "character": 12, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/types/handler.ts#L53" } ], "type": { "type": "reflection", "declaration": { "id": 98, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { "id": 101, "name": "error", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/types/handler.ts", "line": 56, "character": 4, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/types/handler.ts#L56" } ], "type": { "type": "tuple", "elements": [ { "type": "reference", "id": 89, "name": "Payload" } ] } }, { "id": 100, "name": "module.activate", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/types/handler.ts", "line": 55, "character": 4, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/types/handler.ts#L55" } ], "type": { "type": "tuple", "elements": [ { "type": "reference", "id": 89, "name": "Payload" } ] } }, { "id": 99, "name": "module.register", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/types/handler.ts", "line": 54, "character": 4, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/types/handler.ts#L54" } ], "type": { "type": "tuple", "elements": [ { "type": "reference", "id": 89, "name": "Payload" } ] } }, { "id": 102, "name": "warning", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/types/handler.ts", "line": 57, "character": 4, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/types/handler.ts#L57" } ], "type": { "type": "tuple", "elements": [ { "type": "intrinsic", "name": "string" } ] } } ], "groups": [ { "title": "Properties", "children": [ 101, 100, 99, 102 ] } ], "sources": [ { "fileName": "src/types/handler.ts", "line": 53, "character": 32, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/types/handler.ts#L53" } ] } } }, { "id": 187, "name": "SernOptionsData", "kind": 4194304, "kindString": "Type alias", "flags": {}, "sources": [ { "fileName": "src/handler/structures/module.ts", "line": 205, "character": 12, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/module.ts#L205" } ], "typeParameters": [ { "id": 188, "name": "U", "kind": 131072, "kindString": "Type parameter", "flags": {}, "type": { "type": "reference", "name": "ApplicationCommandOptionData", "qualifiedName": "ApplicationCommandOptionData", "package": "discord.js" }, "default": { "type": "reference", "name": "ApplicationCommandOptionData", "qualifiedName": "ApplicationCommandOptionData", "package": "discord.js" } } ], "type": { "type": "conditional", "checkType": { "type": "reference", "id": 188, "name": "U" }, "extendsType": { "type": "reference", "name": "ApplicationCommandSubCommandData", "qualifiedName": "ApplicationCommandSubCommandData", "package": "discord.js" }, "trueType": { "type": "reference", "id": 195, "name": "SernSubCommandData" }, "falseType": { "type": "conditional", "checkType": { "type": "reference", "id": 188, "name": "U" }, "extendsType": { "type": "reference", "name": "ApplicationCommandSubGroupData", "qualifiedName": "ApplicationCommandSubGroupData", "package": "discord.js" }, "trueType": { "type": "reference", "id": 199, "name": "SernSubCommandGroupData" }, "falseType": { "type": "reference", "id": 189, "name": "BaseOptions" } } } }, { "id": 195, "name": "SernSubCommandData", "kind": 4194304, "kindString": "Type alias", "flags": {}, "sources": [ { "fileName": "src/handler/structures/module.ts", "line": 189, "character": 12, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/module.ts#L189" } ], "type": { "type": "reference", "id": 59, "typeArguments": [ { "type": "reference", "typeArguments": [ { "type": "reference", "name": "BaseApplicationCommandOptionsData", "qualifiedName": "BaseApplicationCommandOptionsData", "package": "discord.js" }, { "type": "literal", "value": "required" } ], "name": "Omit", "qualifiedName": "Omit", "package": "typescript" }, { "type": "reflection", "declaration": { "id": 196, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { "id": 198, "name": "options", "kind": 1024, "kindString": "Property", "flags": { "isOptional": true }, "sources": [ { "fileName": "src/handler/structures/module.ts", "line": 193, "character": 8, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/module.ts#L193" } ], "type": { "type": "array", "elementType": { "type": "reference", "id": 189, "name": "BaseOptions" } } }, { "id": 197, "name": "type", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/handler/structures/module.ts", "line": 192, "character": 8, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/module.ts#L192" } ], "type": { "type": "reference", "name": "ApplicationCommandOptionType.Subcommand", "qualifiedName": "ApplicationCommandOptionType.Subcommand", "package": "discord-api-types" } } ], "groups": [ { "title": "Properties", "children": [ 198, 197 ] } ], "sources": [ { "fileName": "src/handler/structures/module.ts", "line": 191, "character": 4, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/module.ts#L191" } ] } } ], "name": "Override" } }, { "id": 199, "name": "SernSubCommandGroupData", "kind": 4194304, "kindString": "Type alias", "flags": {}, "sources": [ { "fileName": "src/handler/structures/module.ts", "line": 197, "character": 12, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/module.ts#L197" } ], "type": { "type": "reference", "id": 59, "typeArguments": [ { "type": "reference", "typeArguments": [ { "type": "reference", "name": "BaseApplicationCommandOptionsData", "qualifiedName": "BaseApplicationCommandOptionsData", "package": "discord.js" }, { "type": "literal", "value": "required" } ], "name": "Omit", "qualifiedName": "Omit", "package": "typescript" }, { "type": "reflection", "declaration": { "id": 200, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { "id": 202, "name": "options", "kind": 1024, "kindString": "Property", "flags": { "isOptional": true }, "sources": [ { "fileName": "src/handler/structures/module.ts", "line": 201, "character": 8, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/module.ts#L201" } ], "type": { "type": "array", "elementType": { "type": "reference", "id": 195, "name": "SernSubCommandData" } } }, { "id": 201, "name": "type", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/handler/structures/module.ts", "line": 200, "character": 8, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/module.ts#L200" } ], "type": { "type": "reference", "name": "ApplicationCommandOptionType.SubcommandGroup", "qualifiedName": "ApplicationCommandOptionType.SubcommandGroup", "package": "discord-api-types" } } ], "groups": [ { "title": "Properties", "children": [ 202, 201 ] } ], "sources": [ { "fileName": "src/handler/structures/module.ts", "line": 199, "character": 4, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/module.ts#L199" } ] } } ], "name": "Override" } }, { "id": 138, "name": "SlashCommand", "kind": 4194304, "kindString": "Type alias", "flags": {}, "sources": [ { "fileName": "src/handler/structures/module.ts", "line": 44, "character": 12, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/module.ts#L44" } ], "type": { "type": "reference", "id": 59, "typeArguments": [ { "type": "reference", "name": "BaseModule" }, { "type": "reflection", "declaration": { "id": 139, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { "id": 144, "name": "execute", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/handler/structures/module.ts", "line": 51, "character": 8, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/module.ts#L51" } ], "type": { "type": "reflection", "declaration": { "id": 145, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "sources": [ { "fileName": "src/handler/structures/module.ts", "line": 51, "character": 17, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/module.ts#L51" } ], "signatures": [ { "id": 146, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { "id": 147, "name": "ctx", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", "id": 103, "name": "Context" } }, { "id": 148, "name": "args", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "tuple", "elements": [ { "type": "literal", "value": "slash" }, { "type": "reference", "id": 58, "name": "SlashOptions" } ] } } ], "type": { "type": "reference", "typeArguments": [ { "type": "union", "types": [ { "type": "intrinsic", "name": "void" }, { "type": "intrinsic", "name": "unknown" } ] } ], "name": "Awaitable", "qualifiedName": "Awaitable", "package": "discord.js" } } ] } } }, { "id": 141, "name": "onEvent", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/handler/structures/module.ts", "line": 48, "character": 8, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/module.ts#L48" } ], "type": { "type": "array", "elementType": { "type": "reference", "id": 279, "typeArguments": [ { "type": "reference", "id": 205, "name": "CommandType.Slash" } ], "name": "EventPlugin" } } }, { "id": 143, "name": "options", "kind": 1024, "kindString": "Property", "flags": { "isOptional": true }, "sources": [ { "fileName": "src/handler/structures/module.ts", "line": 50, "character": 8, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/module.ts#L50" } ], "type": { "type": "array", "elementType": { "type": "reference", "id": 187, "name": "SernOptionsData" } } }, { "id": 142, "name": "plugins", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/handler/structures/module.ts", "line": 49, "character": 8, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/module.ts#L49" } ], "type": { "type": "array", "elementType": { "type": "reference", "id": 230, "name": "CommandPlugin" } } }, { "id": 140, "name": "type", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/handler/structures/module.ts", "line": 47, "character": 8, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/module.ts#L47" } ], "type": { "type": "reference", "id": 205, "name": "CommandType.Slash" } } ], "groups": [ { "title": "Properties", "children": [ 144, 141, 143, 142, 140 ] } ], "sources": [ { "fileName": "src/handler/structures/module.ts", "line": 46, "character": 4, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/module.ts#L46" } ] } } ], "name": "Override" } }, { "id": 58, "name": "SlashOptions", "kind": 4194304, "kindString": "Type alias", "flags": {}, "sources": [ { "fileName": "src/types/handler.ts", "line": 13, "character": 12, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/types/handler.ts#L13" } ], "type": { "type": "reference", "typeArguments": [ { "type": "reference", "name": "CommandInteractionOptionResolver", "qualifiedName": "CommandInteractionOptionResolver", "package": "discord.js" }, { "type": "union", "types": [ { "type": "literal", "value": "getMessage" }, { "type": "literal", "value": "getFocused" } ] } ], "name": "Omit", "qualifiedName": "Omit", "package": "typescript" } }, { "id": 78, "name": "SpreadParams", "kind": 4194304, "kindString": "Type alias", "flags": {}, "sources": [ { "fileName": "src/types/handler.ts", "line": 39, "character": 12, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/types/handler.ts#L39" } ], "typeParameters": [ { "id": 85, "name": "T", "kind": 131072, "kindString": "Type parameter", "flags": {}, "type": { "type": "reflection", "declaration": { "id": 82, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "sources": [ { "fileName": "src/types/handler.ts", "line": 39, "character": 35, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/types/handler.ts#L39" } ], "signatures": [ { "id": 83, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { "id": 84, "name": "args", "kind": 32768, "kindString": "Parameter", "flags": { "isRest": true }, "type": { "type": "intrinsic", "name": "never" } } ], "type": { "type": "intrinsic", "name": "unknown" } } ] } } } ], "type": { "type": "reflection", "declaration": { "id": 79, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "sources": [ { "fileName": "src/types/handler.ts", "line": 39, "character": 66, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/types/handler.ts#L39" } ], "signatures": [ { "id": 80, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "Turns a function with a union of array of args into a single union\r\n [ T , V , B ] | [ A ] => T | V | B | A" } ] }, "parameters": [ { "id": 81, "name": "args", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "indexedAccess", "indexType": { "type": "intrinsic", "name": "number" }, "objectType": { "type": "reference", "typeArguments": [ { "type": "reference", "id": 85, "name": "T" } ], "name": "Parameters", "qualifiedName": "Parameters", "package": "typescript" } } } ], "type": { "type": "intrinsic", "name": "unknown" } } ] } } }, { "id": 149, "name": "TextCommand", "kind": 4194304, "kindString": "Type alias", "flags": {}, "sources": [ { "fileName": "src/handler/structures/module.ts", "line": 33, "character": 12, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/module.ts#L33" } ], "type": { "type": "reference", "id": 59, "typeArguments": [ { "type": "reference", "name": "BaseModule" }, { "type": "reflection", "declaration": { "id": 150, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "children": [ { "id": 154, "name": "alias", "kind": 1024, "kindString": "Property", "flags": { "isOptional": true }, "sources": [ { "fileName": "src/handler/structures/module.ts", "line": 39, "character": 8, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/module.ts#L39" } ], "type": { "type": "array", "elementType": { "type": "intrinsic", "name": "string" } } }, { "id": 155, "name": "execute", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/handler/structures/module.ts", "line": 40, "character": 8, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/module.ts#L40" } ], "type": { "type": "reflection", "declaration": { "id": 156, "name": "__type", "kind": 65536, "kindString": "Type literal", "flags": {}, "sources": [ { "fileName": "src/handler/structures/module.ts", "line": 40, "character": 17, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/module.ts#L40" } ], "signatures": [ { "id": 157, "name": "__type", "kind": 4096, "kindString": "Call signature", "flags": {}, "parameters": [ { "id": 158, "name": "ctx", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", "id": 103, "name": "Context" } }, { "id": 159, "name": "args", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "tuple", "elements": [ { "type": "literal", "value": "text" }, { "type": "array", "elementType": { "type": "intrinsic", "name": "string" } } ] } } ], "type": { "type": "reference", "typeArguments": [ { "type": "union", "types": [ { "type": "intrinsic", "name": "void" }, { "type": "intrinsic", "name": "unknown" } ] } ], "name": "Awaitable", "qualifiedName": "Awaitable", "package": "discord.js" } } ] } } }, { "id": 152, "name": "onEvent", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/handler/structures/module.ts", "line": 37, "character": 8, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/module.ts#L37" } ], "type": { "type": "array", "elementType": { "type": "reference", "id": 279, "typeArguments": [ { "type": "reference", "id": 204, "name": "CommandType.Text" } ], "name": "EventPlugin" } } }, { "id": 153, "name": "plugins", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/handler/structures/module.ts", "line": 38, "character": 8, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/module.ts#L38" } ], "type": { "type": "array", "elementType": { "type": "reference", "id": 230, "name": "CommandPlugin" } } }, { "id": 151, "name": "type", "kind": 1024, "kindString": "Property", "flags": {}, "sources": [ { "fileName": "src/handler/structures/module.ts", "line": 36, "character": 8, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/module.ts#L36" } ], "type": { "type": "reference", "id": 204, "name": "CommandType.Text" } } ], "groups": [ { "title": "Properties", "children": [ 154, 155, 152, 153, 151 ] } ], "sources": [ { "fileName": "src/handler/structures/module.ts", "line": 35, "character": 4, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/structures/module.ts#L35" } ] } } ], "name": "Override" } }, { "id": 4, "name": "commandModule", "kind": 64, "kindString": "Function", "flags": {}, "sources": [ { "fileName": "src/handler/sern.ts", "line": 86, "character": 16, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/sern.ts#L86" } ], "signatures": [ { "id": 5, "name": "commandModule", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "The wrapper function to define command modules for sern" } ] }, "parameters": [ { "id": 6, "name": "mod", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", "id": 332, "name": "InputCommandModule" } } ], "type": { "type": "reference", "name": "CommandModule" } } ] }, { "id": 1, "name": "eventModule", "kind": 64, "kindString": "Function", "flags": {}, "sources": [ { "fileName": "src/handler/sern.ts", "line": 107, "character": 16, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/handler/sern.ts#L107" } ], "signatures": [ { "id": 2, "name": "eventModule", "kind": 4096, "kindString": "Call signature", "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "The wrapper function to define event modules for sern" } ] }, "parameters": [ { "id": 3, "name": "mod", "kind": 32768, "kindString": "Parameter", "flags": {}, "type": { "type": "reference", "id": 335, "name": "InputEventModule" } } ], "type": { "type": "reference", "name": "EventModule" } } ] } ], "groups": [ { "title": "Namespaces", "children": [ 7 ] }, { "title": "Enumerations", "children": [ 203, 212, 219, 216 ] }, { "title": "Classes", "children": [ 103, 25 ] }, { "title": "Interfaces", "children": [ 223, 173 ] }, { "title": "Type Aliases", "children": [ 54, 271, 189, 160, 316, 330, 230, 87, 88, 86, 62, 243, 306, 65, 323, 318, 328, 317, 279, 252, 298, 332, 335, 76, 172, 50, 59, 52, 89, 74, 190, 262, 288, 97, 187, 195, 199, 138, 58, 78, 149 ] }, { "title": "Functions", "children": [ 4, 1 ] } ], "sources": [ { "fileName": "src/index.ts", "line": 1, "character": 0, "url": "https://github.com/sern-handler/handler/blob/6b8995d/src/index.ts#L1" } ] }