diff --git a/blog/1.2.0/index.html b/blog/1.2.0/index.html index d0fe60353..2b20a970b 100644 --- a/blog/1.2.0/index.html +++ b/blog/1.2.0/index.html @@ -81,4 +81,4 @@ Feel free to use TypeScript experimental decorators to augment and customize you
Tags:
\ No newline at end of file +
Tags:
\ No newline at end of file diff --git a/blog/2.0.0/index.html b/blog/2.0.0/index.html index 38df65b96..6e5a84ba6 100644 --- a/blog/2.0.0/index.html +++ b/blog/2.0.0/index.html @@ -102,4 +102,4 @@ All deprecation warnings from previous versions have taken effect, and are remov

Including the previous section, some names to symbols and data structures were altered to be better represented. view changelog

Context refactoring

-

The context data structure has been internally altered to represent its dynamics better.

Tags:
\ No newline at end of file +

The context data structure has been internally altered to represent its dynamics better.

Tags:
\ No newline at end of file diff --git a/blog/2.5.0/index.html b/blog/2.5.0/index.html index 9970da447..a55463758 100644 --- a/blog/2.5.0/index.html +++ b/blog/2.5.0/index.html @@ -74,4 +74,4 @@ What does this mean? -

This will probably be the last breaking change in a while. Thanks for using sern!

Tags:
\ No newline at end of file +

This will probably be the last breaking change in a while. Thanks for using sern!

Tags:
\ No newline at end of file diff --git a/blog/3.0.0/index.html b/blog/3.0.0/index.html index c8c2ec1c6..cf6aae0df 100644 --- a/blog/3.0.0/index.html +++ b/blog/3.0.0/index.html @@ -160,4 +160,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;
  • Removed all previous marked deprecations in v3
  • ModuleStore will be removed as a dependency in v4. The only way to access modules should be through ModuleManager
  • Default Dependencies will be made internal in the v4. Users should only have access to its interface / contract
  • -
    Tags:
    \ No newline at end of file +
    Tags:
    \ No newline at end of file diff --git a/blog/new-logo/index.html b/blog/new-logo/index.html index c1b69fde2..a78ebdf0a 100644 --- a/blog/new-logo/index.html +++ b/blog/new-logo/index.html @@ -56,4 +56,4 @@ And here we are!

    sern logo

    Pretty nice!

    By the way, we have animations and variations on the way, so make sure to stay updated in the discord server!

    -

    Finally, from the entire sern team, thank you for sticking around ❤️

    Tags:
    \ No newline at end of file +

    Finally, from the entire sern team, thank you for sticking around ❤️

    Tags:
    \ No newline at end of file diff --git a/blog/railway-deploy/index.html b/blog/railway-deploy/index.html index 8c43a854f..275aa0874 100644 --- a/blog/railway-deploy/index.html +++ b/blog/railway-deploy/index.html @@ -51,4 +51,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Deploy

    Once you’ve added your environment variables, click the “Deploy” button, and Railway will start deploying your bot. Once the deployment is complete, you’ll be able to see your bot’s URL and logs.

    -

    That’s it! Your bot is now deployed and running on Railway. If you have any issues or questions, feel free to ask in the sern Discord server.

    Tags:
    \ No newline at end of file +

    That’s it! Your bot is now deployed and running on Railway. If you have any issues or questions, feel free to ask in the sern Discord server.

    Tags:
    \ No newline at end of file diff --git a/es/blog/1.2.0/index.html b/es/blog/1.2.0/index.html index dfa506517..a04d4aee8 100644 --- a/es/blog/1.2.0/index.html +++ b/es/blog/1.2.0/index.html @@ -83,4 +83,4 @@ Feel free to use TypeScript experimental decorators to augment and customize you \ No newline at end of file + \ No newline at end of file diff --git a/es/blog/2.0.0/index.html b/es/blog/2.0.0/index.html index 3c9924df8..5cd9aa79c 100644 --- a/es/blog/2.0.0/index.html +++ b/es/blog/2.0.0/index.html @@ -104,4 +104,4 @@ All deprecation warnings from previous versions have taken effect, and are remov

    Including the previous section, some names to symbols and data structures were altered to be better represented. view changelog

    Context refactoring

    -

    The context data structure has been internally altered to represent its dynamics better.

    \ No newline at end of file +

    The context data structure has been internally altered to represent its dynamics better.

    \ No newline at end of file diff --git a/es/blog/2.5.0/index.html b/es/blog/2.5.0/index.html index df02f237f..bce9f27f4 100644 --- a/es/blog/2.5.0/index.html +++ b/es/blog/2.5.0/index.html @@ -76,4 +76,4 @@ What does this mean? -

    This will probably be the last breaking change in a while. Thanks for using sern!

    \ No newline at end of file +

    This will probably be the last breaking change in a while. Thanks for using sern!

    \ No newline at end of file diff --git a/es/blog/3.0.0/index.html b/es/blog/3.0.0/index.html index 8c0ab0f5e..23dcc3d42 100644 --- a/es/blog/3.0.0/index.html +++ b/es/blog/3.0.0/index.html @@ -162,4 +162,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;
  • Removed all previous marked deprecations in v3
  • ModuleStore will be removed as a dependency in v4. The only way to access modules should be through ModuleManager
  • Default Dependencies will be made internal in the v4. Users should only have access to its interface / contract
  • - \ No newline at end of file + \ No newline at end of file diff --git a/es/blog/new-logo/index.html b/es/blog/new-logo/index.html index ccaa92546..25cb0bfb5 100644 --- a/es/blog/new-logo/index.html +++ b/es/blog/new-logo/index.html @@ -58,4 +58,4 @@ And here we are!

    sern logo

    Pretty nice!

    By the way, we have animations and variations on the way, so make sure to stay updated in the discord server!

    -

    Finally, from the entire sern team, thank you for sticking around ❤️

    \ No newline at end of file +

    Finally, from the entire sern team, thank you for sticking around ❤️

    \ No newline at end of file diff --git a/es/blog/railway-deploy/index.html b/es/blog/railway-deploy/index.html index d291fa07e..477f46641 100644 --- a/es/blog/railway-deploy/index.html +++ b/es/blog/railway-deploy/index.html @@ -53,4 +53,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Deploy

    Once you’ve added your environment variables, click the “Deploy” button, and Railway will start deploying your bot. Once the deployment is complete, you’ll be able to see your bot’s URL and logs.

    -

    That’s it! Your bot is now deployed and running on Railway. If you have any issues or questions, feel free to ask in the sern Discord server.

    \ No newline at end of file +

    That’s it! Your bot is now deployed and running on Railway. If you have any issues or questions, feel free to ask in the sern Discord server.

    \ No newline at end of file diff --git a/es/index.html b/es/index.html index d0be36a3e..e85a15062 100644 --- a/es/index.html +++ b/es/index.html @@ -38,6 +38,6 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem; Saltearse al contenido
    sern

    Create your dream Discord bot.

    sern is a framework for building Discord bots; Better DX and an ecosystem of packages & plugins.

    Showcase

    -
    Discoin

    Discoin

    Fuel your server's engagement with a fun, easy to use, and simple economy bot!

    Vinci

    Vinci

    The discord bot for Mara Turing

    Bask

    Bask

    A discord music bot

    man-nomic

    man-nomic

    Displays LLM model information

    ezbd

    ezbd

    A simple birthday reminder bot

    SmokinWeed 💨

    SmokinWeed 💨

    Small moderation bot

    sern Community

    sern Community

    The bot used to manage sern Community

    Albion Guide

    Albion Guide

    Gets info about The First Descendant Game.

    +
    Vinci

    Vinci

    The discord bot for Mara Turing

    Albion Guide

    Albion Guide

    Gets info about The First Descendant Game.

    sern Community

    sern Community

    The bot used to manage sern Community

    Bask

    Bask

    A discord music bot

    Discoin

    Discoin

    Fuel your server's engagement with a fun, easy to use, and simple economy bot!

    ezbd

    ezbd

    A simple birthday reminder bot

    man-nomic

    man-nomic

    Displays LLM model information

    SmokinWeed 💨

    SmokinWeed 💨

    Small moderation bot

    Features

    -

    Modular

    Take apart, build, or customize code with ease to create robust bots.

    Concise

    Commands are significantly smaller than other competitors. Write impactful, concise code.

    Familiar

    Code like a traditional command framework. The API is simple and resembles classic v12 command handlers.

    \ No newline at end of file +

    Modular

    Take apart, build, or customize code with ease to create robust bots.

    Concise

    Commands are significantly smaller than other competitors. Write impactful, concise code.

    Familiar

    Code like a traditional command framework. The API is simple and resembles classic v12 command handlers.

    \ No newline at end of file diff --git a/es/v3/api/classes/context/index.html b/es/v3/api/classes/context/index.html index 4f3cc1a60..b997dca95 100644 --- a/es/v3/api/classes/context/index.html +++ b/es/v3/api/classes/context/index.html @@ -222,4 +222,4 @@ else, interaction.user

    Overrides

    CoreContext.wrap

    Source

    -

    src/core/structures/context.ts:113

    \ No newline at end of file +

    src/core/structures/context.ts:113

    \ No newline at end of file diff --git a/es/v3/api/classes/modulestore/index.html b/es/v3/api/classes/modulestore/index.html index f2266d50f..152a9a143 100644 --- a/es/v3/api/classes/modulestore/index.html +++ b/es/v3/api/classes/modulestore/index.html @@ -61,4 +61,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    metadata: WeakMap<Module, CommandMeta>

    Source

    -

    src/core/structures/module-store.ts:9

    \ No newline at end of file +

    src/core/structures/module-store.ts:9

    \ No newline at end of file diff --git a/es/v3/api/enumerations/commandtype/index.html b/es/v3/api/enumerations/commandtype/index.html index d584a9f3d..8afd95b76 100644 --- a/es/v3/api/enumerations/commandtype/index.html +++ b/es/v3/api/enumerations/commandtype/index.html @@ -129,4 +129,4 @@ A bitfield that discriminates command modules

    UserSelect: 128

    Source

    -

    src/core/structures/enums.ts:26

    \ No newline at end of file +

    src/core/structures/enums.ts:26

    \ No newline at end of file diff --git a/es/v3/api/enumerations/eventtype/index.html b/es/v3/api/enumerations/eventtype/index.html index 6c874d838..8da6e7af1 100644 --- a/es/v3/api/enumerations/eventtype/index.html +++ b/es/v3/api/enumerations/eventtype/index.html @@ -68,4 +68,4 @@ Could be for example, process events, database events

    The EventType for handling sern events

    Source

    -

    src/core/structures/enums.ts:55

    \ No newline at end of file +

    src/core/structures/enums.ts:55

    \ No newline at end of file diff --git a/es/v3/api/enumerations/payloadtype/index.html b/es/v3/api/enumerations/payloadtype/index.html index 70ca65d04..5a871f1b4 100644 --- a/es/v3/api/enumerations/payloadtype/index.html +++ b/es/v3/api/enumerations/payloadtype/index.html @@ -64,4 +64,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    The PayloadType for a SernEmitter warning event

    Source

    -

    src/core/structures/enums.ts:102

    \ No newline at end of file +

    src/core/structures/enums.ts:102

    \ No newline at end of file diff --git a/es/v3/api/enumerations/plugintype/index.html b/es/v3/api/enumerations/plugintype/index.html index 4bcad1ab3..d9cb795eb 100644 --- a/es/v3/api/enumerations/plugintype/index.html +++ b/es/v3/api/enumerations/plugintype/index.html @@ -59,4 +59,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    The PluginType for InitPlugins

    Source

    -

    src/core/structures/enums.ts:81

    \ No newline at end of file +

    src/core/structures/enums.ts:81

    \ No newline at end of file diff --git a/es/v3/api/functions/commandcontrolplugin/index.html b/es/v3/api/functions/commandcontrolplugin/index.html index 70b9fd132..683021185 100644 --- a/es/v3/api/functions/commandcontrolplugin/index.html +++ b/es/v3/api/functions/commandcontrolplugin/index.html @@ -54,4 +54,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    2.5.0 @PURE

    Source

    -

    src/core/create-plugins.ts:37

    \ No newline at end of file +

    src/core/create-plugins.ts:37

    \ No newline at end of file diff --git a/es/v3/api/functions/commandinitplugin/index.html b/es/v3/api/functions/commandinitplugin/index.html index ba2023b2d..01dd02882 100644 --- a/es/v3/api/functions/commandinitplugin/index.html +++ b/es/v3/api/functions/commandinitplugin/index.html @@ -54,4 +54,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    2.5.0 @PURE

    Source

    -

    src/core/create-plugins.ts:28

    \ No newline at end of file +

    src/core/create-plugins.ts:28

    \ No newline at end of file diff --git a/es/v3/api/functions/commandmodule/index.html b/es/v3/api/functions/commandmodule/index.html index 5bdb985bc..2a9dd8113 100644 --- a/es/v3/api/functions/commandmodule/index.html +++ b/es/v3/api/functions/commandmodule/index.html @@ -51,4 +51,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Since

    1.0.0 The wrapper function to define command modules for sern

    Source

    -

    src/core/modules.ts:19

    \ No newline at end of file +

    src/core/modules.ts:19

    \ No newline at end of file diff --git a/es/v3/api/functions/discordevent/index.html b/es/v3/api/functions/discordevent/index.html index 0bd903b79..a16cd0e62 100644 --- a/es/v3/api/functions/discordevent/index.html +++ b/es/v3/api/functions/discordevent/index.html @@ -58,4 +58,4 @@ where typings can be very bad.

    EventModule

    Experimental

    Source

    -

    src/core/modules.ts:47

    \ No newline at end of file +

    src/core/modules.ts:47

    \ No newline at end of file diff --git a/es/v3/api/functions/discordeventcontrolplugin/index.html b/es/v3/api/functions/discordeventcontrolplugin/index.html index 1cb90c008..f407627d5 100644 --- a/es/v3/api/functions/discordeventcontrolplugin/index.html +++ b/es/v3/api/functions/discordeventcontrolplugin/index.html @@ -57,4 +57,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    A specialized function for creating control plugins with discord.js ClientEvents. Will probably be moved one day!

    Source

    -

    src/core/create-plugins.ts:58

    \ No newline at end of file +

    src/core/create-plugins.ts:58

    \ No newline at end of file diff --git a/es/v3/api/functions/eventcontrolplugin/index.html b/es/v3/api/functions/eventcontrolplugin/index.html index f088447a8..fc3565d6d 100644 --- a/es/v3/api/functions/eventcontrolplugin/index.html +++ b/es/v3/api/functions/eventcontrolplugin/index.html @@ -54,4 +54,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    2.5.0 @PURE

    Source

    -

    src/core/create-plugins.ts:46

    \ No newline at end of file +

    src/core/create-plugins.ts:46

    \ No newline at end of file diff --git a/es/v3/api/functions/eventinitplugin/index.html b/es/v3/api/functions/eventinitplugin/index.html index 3ce9b7455..c9efd0873 100644 --- a/es/v3/api/functions/eventinitplugin/index.html +++ b/es/v3/api/functions/eventinitplugin/index.html @@ -54,4 +54,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    2.5.0 @PURE

    Source

    -

    src/core/create-plugins.ts:19

    \ No newline at end of file +

    src/core/create-plugins.ts:19

    \ No newline at end of file diff --git a/es/v3/api/functions/eventmodule/index.html b/es/v3/api/functions/eventmodule/index.html index 3ca1c66c6..cfd4ddf17 100644 --- a/es/v3/api/functions/eventmodule/index.html +++ b/es/v3/api/functions/eventmodule/index.html @@ -52,4 +52,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    1.0.0 The wrapper function to define event modules for sern

    Source

    -

    src/core/modules.ts:32

    \ No newline at end of file +

    src/core/modules.ts:32

    \ No newline at end of file diff --git a/es/v3/api/functions/makedependencies/index.html b/es/v3/api/functions/makedependencies/index.html index fca497cd2..11d8ebeb1 100644 --- a/es/v3/api/functions/makedependencies/index.html +++ b/es/v3/api/functions/makedependencies/index.html @@ -51,4 +51,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Returns

    Promise<<V>(…keys) => IntoDependencies<V>>

    Source

    -

    src/core/ioc/base.ts:144

    \ No newline at end of file +

    src/core/ioc/base.ts:144

    \ No newline at end of file diff --git a/es/v3/api/functions/makeplugin/index.html b/es/v3/api/functions/makeplugin/index.html index 0cab5044b..3425a0ff9 100644 --- a/es/v3/api/functions/makeplugin/index.html +++ b/es/v3/api/functions/makeplugin/index.html @@ -52,4 +52,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Returns

    Plugin<V>

    Source

    -

    src/core/create-plugins.ts:6

    \ No newline at end of file +

    src/core/create-plugins.ts:6

    \ No newline at end of file diff --git a/es/v3/api/functions/service/index.html b/es/v3/api/functions/service/index.html index 3466ef384..8ef11d047 100644 --- a/es/v3/api/functions/service/index.html +++ b/es/v3/api/functions/service/index.html @@ -60,4 +60,4 @@ Note: this method only works AFTER your container has been initiated

    Example

    1
    const client = Service('@sern/client');

    Source

    -

    src/core/ioc/dependency-injection.ts:37

    \ No newline at end of file +

    src/core/ioc/dependency-injection.ts:37

    \ No newline at end of file diff --git a/es/v3/api/functions/services/index.html b/es/v3/api/functions/services/index.html index 830aed9ba..b7f0de55e 100644 --- a/es/v3/api/functions/services/index.html +++ b/es/v3/api/functions/services/index.html @@ -55,4 +55,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    3.0.0 The plural version of Service

    Source

    -

    src/core/ioc/dependency-injection.ts:47

    \ No newline at end of file +

    src/core/ioc/dependency-injection.ts:47

    \ No newline at end of file diff --git a/es/v3/api/functions/single/index.html b/es/v3/api/functions/single/index.html index e0e288b54..cfe6bd362 100644 --- a/es/v3/api/functions/single/index.html +++ b/es/v3/api/functions/single/index.html @@ -57,4 +57,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    2.0.0. Creates a singleton object.

    Source

    -

    src/core/ioc/dependency-injection.ts:11

    \ No newline at end of file +

    src/core/ioc/dependency-injection.ts:11

    \ No newline at end of file diff --git a/es/v3/api/functions/transient/index.html b/es/v3/api/functions/transient/index.html index f52edf6ed..2463dd081 100644 --- a/es/v3/api/functions/transient/index.html +++ b/es/v3/api/functions/transient/index.html @@ -59,4 +59,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    2.0.0 Creates a transient object

    Source

    -

    src/core/ioc/dependency-injection.ts:21

    \ No newline at end of file +

    src/core/ioc/dependency-injection.ts:21

    \ No newline at end of file diff --git a/es/v3/api/interfaces/bothcommand/index.html b/es/v3/api/interfaces/bothcommand/index.html index d74c30035..54973a65b 100644 --- a/es/v3/api/interfaces/bothcommand/index.html +++ b/es/v3/api/interfaces/bothcommand/index.html @@ -117,4 +117,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:124

    \ No newline at end of file +

    src/types/core-modules.ts:124

    \ No newline at end of file diff --git a/es/v3/api/interfaces/buttoncommand/index.html b/es/v3/api/interfaces/buttoncommand/index.html index de19a1b83..21fd73957 100644 --- a/es/v3/api/interfaces/buttoncommand/index.html +++ b/es/v3/api/interfaces/buttoncommand/index.html @@ -102,4 +102,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:64

    \ No newline at end of file +

    src/types/core-modules.ts:64

    \ No newline at end of file diff --git a/es/v3/api/interfaces/channelselectcommand/index.html b/es/v3/api/interfaces/channelselectcommand/index.html index 629d6e562..991a6eadf 100644 --- a/es/v3/api/interfaces/channelselectcommand/index.html +++ b/es/v3/api/interfaces/channelselectcommand/index.html @@ -102,4 +102,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:74

    \ No newline at end of file +

    src/types/core-modules.ts:74

    \ No newline at end of file diff --git a/es/v3/api/interfaces/commandmoduledefs/index.html b/es/v3/api/interfaces/commandmoduledefs/index.html index bcfc290bc..c264ff15b 100644 --- a/es/v3/api/interfaces/commandmoduledefs/index.html +++ b/es/v3/api/interfaces/commandmoduledefs/index.html @@ -124,4 +124,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    8: ContextMenuMsg

    Source

    -

    src/types/core-modules.ts:153

    \ No newline at end of file +

    src/types/core-modules.ts:153

    \ No newline at end of file diff --git a/es/v3/api/interfaces/contextmenumsg/index.html b/es/v3/api/interfaces/contextmenumsg/index.html index 35af5900f..559ce751e 100644 --- a/es/v3/api/interfaces/contextmenumsg/index.html +++ b/es/v3/api/interfaces/contextmenumsg/index.html @@ -102,4 +102,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:59

    \ No newline at end of file +

    src/types/core-modules.ts:59

    \ No newline at end of file diff --git a/es/v3/api/interfaces/contextmenuuser/index.html b/es/v3/api/interfaces/contextmenuuser/index.html index 37ebb64a7..675f1e134 100644 --- a/es/v3/api/interfaces/contextmenuuser/index.html +++ b/es/v3/api/interfaces/contextmenuuser/index.html @@ -102,4 +102,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:54

    \ No newline at end of file +

    src/types/core-modules.ts:54

    \ No newline at end of file diff --git a/es/v3/api/interfaces/controller/index.html b/es/v3/api/interfaces/controller/index.html index 3d882bfb0..5bcdecf20 100644 --- a/es/v3/api/interfaces/controller/index.html +++ b/es/v3/api/interfaces/controller/index.html @@ -58,4 +58,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Returns

    Err<void>

    Source

    -

    src/types/core-plugin.ts:60

    \ No newline at end of file +

    src/types/core-plugin.ts:60

    \ No newline at end of file diff --git a/es/v3/api/interfaces/controlplugin/index.html b/es/v3/api/interfaces/controlplugin/index.html index cd4d2ecaf..63ac79376 100644 --- a/es/v3/api/interfaces/controlplugin/index.html +++ b/es/v3/api/interfaces/controlplugin/index.html @@ -60,4 +60,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    type: Control

    Source

    -

    src/types/core-plugin.ts:72

    \ No newline at end of file +

    src/types/core-plugin.ts:72

    \ No newline at end of file diff --git a/es/v3/api/interfaces/coredependencies/index.html b/es/v3/api/interfaces/coredependencies/index.html index 6703d13b6..db2b45a69 100644 --- a/es/v3/api/interfaces/coredependencies/index.html +++ b/es/v3/api/interfaces/coredependencies/index.html @@ -95,4 +95,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Returns

    CoreModuleStore

    Source

    -

    src/types/ioc.ts:34

    \ No newline at end of file +

    src/types/ioc.ts:34

    \ No newline at end of file diff --git a/es/v3/api/interfaces/coremodulestore/index.html b/es/v3/api/interfaces/coremodulestore/index.html index 444667751..f220957fa 100644 --- a/es/v3/api/interfaces/coremodulestore/index.html +++ b/es/v3/api/interfaces/coremodulestore/index.html @@ -55,4 +55,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    metadata: WeakMap<Module, CommandMeta>

    Source

    -

    src/core/contracts/module-store.ts:8

    \ No newline at end of file +

    src/core/contracts/module-store.ts:8

    \ No newline at end of file diff --git a/es/v3/api/interfaces/discordeventcommand/index.html b/es/v3/api/interfaces/discordeventcommand/index.html index 844ed5c1c..66e04adad 100644 --- a/es/v3/api/interfaces/discordeventcommand/index.html +++ b/es/v3/api/interfaces/discordeventcommand/index.html @@ -104,4 +104,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.execute

    Source

    -

    src/types/core-modules.ts:108

    \ No newline at end of file +

    src/types/core-modules.ts:108

    \ No newline at end of file diff --git a/es/v3/api/interfaces/disposable/index.html b/es/v3/api/interfaces/disposable/index.html index e1d6db206..1f65d83d5 100644 --- a/es/v3/api/interfaces/disposable/index.html +++ b/es/v3/api/interfaces/disposable/index.html @@ -51,4 +51,4 @@ Let dependencies implement this to dispose and cleanup.

    Returns

    unknown

    Source

    -

    src/core/contracts/hooks.ts:15

    \ No newline at end of file +

    src/core/contracts/hooks.ts:15

    \ No newline at end of file diff --git a/es/v3/api/interfaces/emitter/index.html b/es/v3/api/interfaces/emitter/index.html index b73a1dfbd..fa87738dd 100644 --- a/es/v3/api/interfaces/emitter/index.html +++ b/es/v3/api/interfaces/emitter/index.html @@ -76,4 +76,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Returns

    this

    Source

    -

    src/core/contracts/emitter.ts:7

    \ No newline at end of file +

    src/core/contracts/emitter.ts:7

    \ No newline at end of file diff --git a/es/v3/api/interfaces/errorhandling/index.html b/es/v3/api/interfaces/errorhandling/index.html index bc2c6345d..0643cbe9e 100644 --- a/es/v3/api/interfaces/errorhandling/index.html +++ b/es/v3/api/interfaces/errorhandling/index.html @@ -66,4 +66,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Returns

    void

    Source

    -

    src/core/contracts/error-handling.ts:14

    \ No newline at end of file +

    src/core/contracts/error-handling.ts:14

    \ No newline at end of file diff --git a/es/v3/api/interfaces/eventmoduledefs/index.html b/es/v3/api/interfaces/eventmoduledefs/index.html index 3dd263b89..08190b742 100644 --- a/es/v3/api/interfaces/eventmoduledefs/index.html +++ b/es/v3/api/interfaces/eventmoduledefs/index.html @@ -61,4 +61,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    3: ExternalEventCommand

    Source

    -

    src/types/core-modules.ts:167

    \ No newline at end of file +

    src/types/core-modules.ts:167

    \ No newline at end of file diff --git a/es/v3/api/interfaces/externaleventcommand/index.html b/es/v3/api/interfaces/externaleventcommand/index.html index fb2ab3f7f..6909225e8 100644 --- a/es/v3/api/interfaces/externaleventcommand/index.html +++ b/es/v3/api/interfaces/externaleventcommand/index.html @@ -109,4 +109,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.execute

    Source

    -

    src/types/core-modules.ts:50

    \ No newline at end of file +

    src/types/core-modules.ts:50

    \ No newline at end of file diff --git a/es/v3/api/interfaces/init/index.html b/es/v3/api/interfaces/init/index.html index d7deda547..bbaac63ee 100644 --- a/es/v3/api/interfaces/init/index.html +++ b/es/v3/api/interfaces/init/index.html @@ -51,4 +51,4 @@ Let dependencies implement this to initiate some logic.

    Returns

    unknown

    Source

    -

    src/core/contracts/hooks.ts:7

    \ No newline at end of file +

    src/core/contracts/hooks.ts:7

    \ No newline at end of file diff --git a/es/v3/api/interfaces/initplugin/index.html b/es/v3/api/interfaces/initplugin/index.html index f96225559..849f1b6d4 100644 --- a/es/v3/api/interfaces/initplugin/index.html +++ b/es/v3/api/interfaces/initplugin/index.html @@ -60,4 +60,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    type: Init

    Source

    -

    src/types/core-plugin.ts:68

    \ No newline at end of file +

    src/types/core-plugin.ts:68

    \ No newline at end of file diff --git a/es/v3/api/interfaces/logging/index.html b/es/v3/api/interfaces/logging/index.html index b3b6eb944..888ea58d8 100644 --- a/es/v3/api/interfaces/logging/index.html +++ b/es/v3/api/interfaces/logging/index.html @@ -88,4 +88,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Returns

    void

    Source

    -

    src/core/contracts/logging.ts:6

    \ No newline at end of file +

    src/core/contracts/logging.ts:6

    \ No newline at end of file diff --git a/es/v3/api/interfaces/mentionableselectcommand/index.html b/es/v3/api/interfaces/mentionableselectcommand/index.html index edb0fc115..26d195496 100644 --- a/es/v3/api/interfaces/mentionableselectcommand/index.html +++ b/es/v3/api/interfaces/mentionableselectcommand/index.html @@ -102,4 +102,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:84

    \ No newline at end of file +

    src/types/core-modules.ts:84

    \ No newline at end of file diff --git a/es/v3/api/interfaces/modalsubmitcommand/index.html b/es/v3/api/interfaces/modalsubmitcommand/index.html index 822988192..a34ee402d 100644 --- a/es/v3/api/interfaces/modalsubmitcommand/index.html +++ b/es/v3/api/interfaces/modalsubmitcommand/index.html @@ -102,4 +102,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:94

    \ No newline at end of file +

    src/types/core-modules.ts:94

    \ No newline at end of file diff --git a/es/v3/api/interfaces/plugin/index.html b/es/v3/api/interfaces/plugin/index.html index c43ca3580..e14def7d0 100644 --- a/es/v3/api/interfaces/plugin/index.html +++ b/es/v3/api/interfaces/plugin/index.html @@ -60,4 +60,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    type: PluginType

    Source

    -

    src/types/core-plugin.ts:63

    \ No newline at end of file +

    src/types/core-plugin.ts:63

    \ No newline at end of file diff --git a/es/v3/api/interfaces/roleselectcommand/index.html b/es/v3/api/interfaces/roleselectcommand/index.html index c053d7bb6..14e005177 100644 --- a/es/v3/api/interfaces/roleselectcommand/index.html +++ b/es/v3/api/interfaces/roleselectcommand/index.html @@ -102,4 +102,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:79

    \ No newline at end of file +

    src/types/core-modules.ts:79

    \ No newline at end of file diff --git a/es/v3/api/interfaces/sernautocompletedata/index.html b/es/v3/api/interfaces/sernautocompletedata/index.html index ac4aecc32..c92492ab7 100644 --- a/es/v3/api/interfaces/sernautocompletedata/index.html +++ b/es/v3/api/interfaces/sernautocompletedata/index.html @@ -110,4 +110,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    type: String | Integer | Number

    Source

    -

    src/types/core-modules.ts:173

    \ No newline at end of file +

    src/types/core-modules.ts:173

    \ No newline at end of file diff --git a/es/v3/api/interfaces/serneventcommand/index.html b/es/v3/api/interfaces/serneventcommand/index.html index 61b42c16f..01a17fc28 100644 --- a/es/v3/api/interfaces/serneventcommand/index.html +++ b/es/v3/api/interfaces/serneventcommand/index.html @@ -104,4 +104,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.execute

    Source

    -

    src/types/core-modules.ts:44

    \ No newline at end of file +

    src/types/core-modules.ts:44

    \ No newline at end of file diff --git a/es/v3/api/interfaces/serneventsmapping/index.html b/es/v3/api/interfaces/serneventsmapping/index.html index 0ec64e41d..e84fe277d 100644 --- a/es/v3/api/interfaces/serneventsmapping/index.html +++ b/es/v3/api/interfaces/serneventsmapping/index.html @@ -75,4 +75,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    warning: [Payload]

    Source

    -

    src/types/utility.ts:22

    \ No newline at end of file +

    src/types/utility.ts:22

    \ No newline at end of file diff --git a/es/v3/api/interfaces/sernsubcommanddata/index.html b/es/v3/api/interfaces/sernsubcommanddata/index.html index e2624eae8..7500f6489 100644 --- a/es/v3/api/interfaces/sernsubcommanddata/index.html +++ b/es/v3/api/interfaces/sernsubcommanddata/index.html @@ -105,4 +105,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    APIApplicationCommandOptionBase.type

    Source

    -

    src/types/core-modules.ts:208

    \ No newline at end of file +

    src/types/core-modules.ts:208

    \ No newline at end of file diff --git a/es/v3/api/interfaces/sernsubcommandgroupdata/index.html b/es/v3/api/interfaces/sernsubcommandgroupdata/index.html index 29a6d474f..e2151baf8 100644 --- a/es/v3/api/interfaces/sernsubcommandgroupdata/index.html +++ b/es/v3/api/interfaces/sernsubcommandgroupdata/index.html @@ -112,4 +112,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    type: SubcommandGroup

    Source

    -

    src/types/core-modules.ts:213

    \ No newline at end of file +

    src/types/core-modules.ts:213

    \ No newline at end of file diff --git a/es/v3/api/interfaces/slashcommand/index.html b/es/v3/api/interfaces/slashcommand/index.html index 5534c0ca3..09938369c 100644 --- a/es/v3/api/interfaces/slashcommand/index.html +++ b/es/v3/api/interfaces/slashcommand/index.html @@ -110,4 +110,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:117

    \ No newline at end of file +

    src/types/core-modules.ts:117

    \ No newline at end of file diff --git a/es/v3/api/interfaces/stringselectcommand/index.html b/es/v3/api/interfaces/stringselectcommand/index.html index 904e01a38..7cd3c6468 100644 --- a/es/v3/api/interfaces/stringselectcommand/index.html +++ b/es/v3/api/interfaces/stringselectcommand/index.html @@ -102,4 +102,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:69

    \ No newline at end of file +

    src/types/core-modules.ts:69

    \ No newline at end of file diff --git a/es/v3/api/interfaces/textcommand/index.html b/es/v3/api/interfaces/textcommand/index.html index 26f61d32e..047ac93c1 100644 --- a/es/v3/api/interfaces/textcommand/index.html +++ b/es/v3/api/interfaces/textcommand/index.html @@ -110,4 +110,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:111

    \ No newline at end of file +

    src/types/core-modules.ts:111

    \ No newline at end of file diff --git a/es/v3/api/interfaces/userselectcommand/index.html b/es/v3/api/interfaces/userselectcommand/index.html index 4bde81eb5..29fb25f1d 100644 --- a/es/v3/api/interfaces/userselectcommand/index.html +++ b/es/v3/api/interfaces/userselectcommand/index.html @@ -102,4 +102,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:89

    \ No newline at end of file +

    src/types/core-modules.ts:89

    \ No newline at end of file diff --git a/es/v3/api/interfaces/wrapper/index.html b/es/v3/api/interfaces/wrapper/index.html index 91897325b..c7f9136e4 100644 --- a/es/v3/api/interfaces/wrapper/index.html +++ b/es/v3/api/interfaces/wrapper/index.html @@ -87,4 +87,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;
  • https://github.com/sern-handler/handler/pull/325
  • Source

    -

    src/types/core.ts:16

    \ No newline at end of file +

    src/types/core.ts:16

    \ No newline at end of file diff --git a/es/v3/api/namespaces/presence/functions/module/index.html b/es/v3/api/namespaces/presence/functions/module/index.html index e5d50b69e..18f1b7a8f 100644 --- a/es/v3/api/namespaces/presence/functions/module/index.html +++ b/es/v3/api/namespaces/presence/functions/module/index.html @@ -54,4 +54,4 @@ adjacent to the file where Sern.init is CALLED.

    Returns

    Config<T>

    Source

    -

    src/core/presences.ts:28

    \ No newline at end of file +

    src/core/presences.ts:28

    \ No newline at end of file diff --git a/es/v3/api/namespaces/presence/functions/of/index.html b/es/v3/api/namespaces/presence/functions/of/index.html index 1ff80f6ee..7298b8880 100644 --- a/es/v3/api/namespaces/presence/functions/of/index.html +++ b/es/v3/api/namespaces/presence/functions/of/index.html @@ -97,4 +97,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    optional status: Status

    Source

    -

    src/core/presences.ts:37

    \ No newline at end of file +

    src/core/presences.ts:37

    \ No newline at end of file diff --git a/es/v3/api/namespaces/presence/interfaces/result/index.html b/es/v3/api/namespaces/presence/interfaces/result/index.html index 4657b3c0a..43f102df6 100644 --- a/es/v3/api/namespaces/presence/interfaces/result/index.html +++ b/es/v3/api/namespaces/presence/interfaces/result/index.html @@ -86,4 +86,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    optional status: Status

    Source

    -

    src/core/presences.ts:9

    \ No newline at end of file +

    src/core/presences.ts:9

    \ No newline at end of file diff --git a/es/v3/api/namespaces/presence/type-aliases/config/index.html b/es/v3/api/namespaces/presence/type-aliases/config/index.html index ea7a50524..8ea602ded 100644 --- a/es/v3/api/namespaces/presence/type-aliases/config/index.html +++ b/es/v3/api/namespaces/presence/type-aliases/config/index.html @@ -60,4 +60,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    optional inject: [...T]

    Source

    -

    src/core/presences.ts:17

    \ No newline at end of file +

    src/core/presences.ts:17

    \ No newline at end of file diff --git a/es/v3/api/namespaces/sern/functions/init/index.html b/es/v3/api/namespaces/sern/functions/init/index.html index 5af5b9141..1dd8d7017 100644 --- a/es/v3/api/namespaces/sern/functions/init/index.html +++ b/es/v3/api/namespaces/sern/functions/init/index.html @@ -53,4 +53,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Example

    src/index.ts
    1
    Sern.init({
    2
    commands: 'dist/commands',
    3
    events: 'dist/events',
    4
    })

    Source

    -

    src/sern.ts:26

    \ No newline at end of file +

    src/sern.ts:26

    \ No newline at end of file diff --git a/es/v3/api/readme/index.html b/es/v3/api/readme/index.html index af633e426..c46c12680 100644 --- a/es/v3/api/readme/index.html +++ b/es/v3/api/readme/index.html @@ -130,4 +130,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;
  • makePlugin
  • single
  • transient
  • - \ No newline at end of file + \ No newline at end of file diff --git a/es/v3/api/type-aliases/anycommandplugin/index.html b/es/v3/api/type-aliases/anycommandplugin/index.html index 85e9c063f..dac1977c0 100644 --- a/es/v3/api/type-aliases/anycommandplugin/index.html +++ b/es/v3/api/type-aliases/anycommandplugin/index.html @@ -45,4 +45,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    AnyCommandPlugin: ControlPlugin | InitPlugin<[InitArgs<Processed<CommandModule>>]>

    Source

    -

    src/types/core-plugin.ts:76

    \ No newline at end of file +

    src/types/core-plugin.ts:76

    \ No newline at end of file diff --git a/es/v3/api/type-aliases/anyeventplugin/index.html b/es/v3/api/type-aliases/anyeventplugin/index.html index 83b259403..1a10b4f0a 100644 --- a/es/v3/api/type-aliases/anyeventplugin/index.html +++ b/es/v3/api/type-aliases/anyeventplugin/index.html @@ -45,4 +45,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    AnyEventPlugin: ControlPlugin | InitPlugin<[InitArgs<Processed<EventModule>>]>

    Source

    -

    src/types/core-plugin.ts:77

    \ No newline at end of file +

    src/types/core-plugin.ts:77

    \ No newline at end of file diff --git a/es/v3/api/type-aliases/args/index.html b/es/v3/api/type-aliases/args/index.html index a4e60bedb..185fc0438 100644 --- a/es/v3/api/type-aliases/args/index.html +++ b/es/v3/api/type-aliases/args/index.html @@ -54,4 +54,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    text: string[]

    Source

    -

    src/types/utility.ts:16

    \ No newline at end of file +

    src/types/utility.ts:16

    \ No newline at end of file diff --git a/es/v3/api/type-aliases/commandmodule/index.html b/es/v3/api/type-aliases/commandmodule/index.html index 719007f33..dc51f5e15 100644 --- a/es/v3/api/type-aliases/commandmodule/index.html +++ b/es/v3/api/type-aliases/commandmodule/index.html @@ -45,4 +45,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    CommandModule: TextCommand | SlashCommand | BothCommand | ContextMenuUser | ContextMenuMsg | ButtonCommand | StringSelectCommand | MentionableSelectCommand | UserSelectCommand | ChannelSelectCommand | RoleSelectCommand | ModalSubmitCommand

    Source

    -

    src/types/core-modules.ts:132

    \ No newline at end of file +

    src/types/core-modules.ts:132

    \ No newline at end of file diff --git a/es/v3/api/type-aliases/eventmodule/index.html b/es/v3/api/type-aliases/eventmodule/index.html index af1e093da..6216e6b6b 100644 --- a/es/v3/api/type-aliases/eventmodule/index.html +++ b/es/v3/api/type-aliases/eventmodule/index.html @@ -45,4 +45,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    EventModule: DiscordEventCommand | SernEventCommand | ExternalEventCommand

    Source

    -

    src/types/core-modules.ts:131

    \ No newline at end of file +

    src/types/core-modules.ts:131

    \ No newline at end of file diff --git a/es/v3/api/type-aliases/initializable/index.html b/es/v3/api/type-aliases/initializable/index.html index 989c7fa1f..f6b5bb0f5 100644 --- a/es/v3/api/type-aliases/initializable/index.html +++ b/es/v3/api/type-aliases/initializable/index.html @@ -49,4 +49,4 @@ If T has an init method, this will be called.

    Type parameters

    T extends Init

    Source

    -

    src/types/ioc.ts:17

    \ No newline at end of file +

    src/types/ioc.ts:17

    \ No newline at end of file diff --git a/es/v3/api/type-aliases/logpayload/index.html b/es/v3/api/type-aliases/logpayload/index.html index 6b2a94050..a73a0cfad 100644 --- a/es/v3/api/type-aliases/logpayload/index.html +++ b/es/v3/api/type-aliases/logpayload/index.html @@ -52,4 +52,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    message: T

    Source

    -

    src/core/contracts/logging.ts:11

    \ No newline at end of file +

    src/core/contracts/logging.ts:11

    \ No newline at end of file diff --git a/es/v3/api/type-aliases/payload/index.html b/es/v3/api/type-aliases/payload/index.html index 31d83a40e..b209c50e7 100644 --- a/es/v3/api/type-aliases/payload/index.html +++ b/es/v3/api/type-aliases/payload/index.html @@ -45,4 +45,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Payload: object | object | object

    Source

    -

    src/types/utility.ts:26

    \ No newline at end of file +

    src/types/utility.ts:26

    \ No newline at end of file diff --git a/es/v3/api/type-aliases/pluginresult/index.html b/es/v3/api/type-aliases/pluginresult/index.html index 1f098294c..256992b46 100644 --- a/es/v3/api/type-aliases/pluginresult/index.html +++ b/es/v3/api/type-aliases/pluginresult/index.html @@ -45,4 +45,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    PluginResult: Awaitable<VoidResult>

    Source

    -

    src/types/core-plugin.ts:51

    \ No newline at end of file +

    src/types/core-plugin.ts:51

    \ No newline at end of file diff --git a/es/v3/api/type-aliases/sernoptionsdata/index.html b/es/v3/api/type-aliases/sernoptionsdata/index.html index 892f08af3..c2f625329 100644 --- a/es/v3/api/type-aliases/sernoptionsdata/index.html +++ b/es/v3/api/type-aliases/sernoptionsdata/index.html @@ -46,4 +46,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Type that replaces autocomplete with SernAutocompleteData

    Source

    -

    src/types/core-modules.ts:200

    \ No newline at end of file +

    src/types/core-modules.ts:200

    \ No newline at end of file diff --git a/es/v3/api/type-aliases/singleton/index.html b/es/v3/api/type-aliases/singleton/index.html index 4b4cce41d..96cbe2493 100644 --- a/es/v3/api/type-aliases/singleton/index.html +++ b/es/v3/api/type-aliases/singleton/index.html @@ -51,4 +51,4 @@ T is created once and lazily.

    Returns

    T

    Source

    -

    src/types/ioc.ts:7

    \ No newline at end of file +

    src/types/ioc.ts:7

    \ No newline at end of file diff --git a/es/v3/api/type-aliases/slashoptions/index.html b/es/v3/api/type-aliases/slashoptions/index.html index 99731a67d..1d2bdc718 100644 --- a/es/v3/api/type-aliases/slashoptions/index.html +++ b/es/v3/api/type-aliases/slashoptions/index.html @@ -45,4 +45,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    SlashOptions: Omit<CommandInteractionOptionResolver, "getMessage" | "getFocused">

    Source

    -

    src/types/utility.ts:14

    \ No newline at end of file +

    src/types/utility.ts:14

    \ No newline at end of file diff --git a/es/v3/api/type-aliases/transient/index.html b/es/v3/api/type-aliases/transient/index.html index 43aef5c8c..992956725 100644 --- a/es/v3/api/type-aliases/transient/index.html +++ b/es/v3/api/type-aliases/transient/index.html @@ -53,4 +53,4 @@ Every time this is called, a new object is created

    Returns

    T

    Source

    -

    src/types/ioc.ts:12

    \ No newline at end of file +

    src/types/ioc.ts:12

    \ No newline at end of file diff --git a/es/v3/api/variables/controller/index.html b/es/v3/api/variables/controller/index.html index 9dca8457b..5c5010382 100644 --- a/es/v3/api/variables/controller/index.html +++ b/es/v3/api/variables/controller/index.html @@ -61,4 +61,4 @@ The object passed into every plugin to control a command’s behavior

    Returns

    ErrImpl<void>

    Source

    -

    src/core/create-plugins.ts:69

    \ No newline at end of file +

    src/core/create-plugins.ts:69

    \ No newline at end of file diff --git a/es/v3/cli/about/index.html b/es/v3/cli/about/index.html index e8eed062f..b6dfc2e94 100644 --- a/es/v3/cli/about/index.html +++ b/es/v3/cli/about/index.html @@ -50,4 +50,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;
    If you're new to sern, run npm create @sern/bot for an interactive setup to your new bot project!
    If you have any ideas, suggestions, bug reports, kindly join our support server: https://sern.dev/discord
    Options:
    -v, --version output the version number
    -h, --help display help for command
    -
    Commands:
    init [options] Quickest way to scaffold a new project [DEPRECATED]
    plugins [options] Install plugins from https://github.com/sern-handler/awesome-plugins
    extra Easy way to add extra things in your sern project
    commands Defacto way to manage your slash commands
    help [command] display help for command
    \ No newline at end of file +
    Commands:
    init [options] Quickest way to scaffold a new project [DEPRECATED]
    plugins [options] Install plugins from https://github.com/sern-handler/awesome-plugins
    extra Easy way to add extra things in your sern project
    commands Defacto way to manage your slash commands
    help [command] display help for command
    \ No newline at end of file diff --git a/es/v3/cli/build/index.html b/es/v3/cli/build/index.html index 3c783e27f..4814075e3 100644 --- a/es/v3/cli/build/index.html +++ b/es/v3/cli/build/index.html @@ -113,4 +113,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Full esbuild documentation here. Add more to the define field in build options (only availible with a sern.build file at the moment)

    process.env

    We generate your process.env with dotenv and generate typings for process.env. Less hassle!

    -
    DISCORD_TOKEN=<your token>
    1
    process.env.DISCORD_TOKEN; // string | undefined (not typesafe :()
    \ No newline at end of file +
    DISCORD_TOKEN=<your token>
    1
    process.env.DISCORD_TOKEN; // string | undefined (not typesafe :()
    \ No newline at end of file diff --git a/es/v3/cli/clear/index.html b/es/v3/cli/clear/index.html index 2c461a3b0..4d2be6e3c 100644 --- a/es/v3/cli/clear/index.html +++ b/es/v3/cli/clear/index.html @@ -55,4 +55,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem; \ No newline at end of file + \ No newline at end of file diff --git a/es/v3/cli/extra/index.html b/es/v3/cli/extra/index.html index 840ba3d85..a6600938b 100644 --- a/es/v3/cli/extra/index.html +++ b/es/v3/cli/extra/index.html @@ -48,4 +48,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    This command is pretty straightfoward. Install utilities into your application, assuming you have a sern.config.json.

    You can use this command to install things such as a Dockerfile

    Usage

    -
    Terminal window
    sern extra
    # Choose which extra feature from the prompt, such as this:
    What extra feature do you want to add? Dockerfile (TypeScript)
    \ No newline at end of file +
    Terminal window
    sern extra
    # Choose which extra feature from the prompt, such as this:
    What extra feature do you want to add? Dockerfile (TypeScript)
    \ No newline at end of file diff --git a/es/v3/cli/publish/index.html b/es/v3/cli/publish/index.html index 7b44da3e1..4db0df092 100644 --- a/es/v3/cli/publish/index.html +++ b/es/v3/cli/publish/index.html @@ -88,4 +88,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;
    src/commands/ping.ts
    1
    import { commandModule, Service, CommandType } from '@sern/handler'
    2
    3
    const client = Service('@sern/client');
    4
    5
    export const config = {
    6
    guildIds: ["889026545715400705"]
    7
    }
    8
    -
    9
    export default commandModule( {
    10
    type: CommandType.Slash
    11
    description: `${client.user.username}'s ping`,
    12
    execute: (ctx) => {
    13
    ctx.reply('pong')
    14
    }
    15
    })
    \ No newline at end of file +
    9
    export default commandModule( {
    10
    type: CommandType.Slash
    11
    description: `${client.user.username}'s ping`,
    12
    execute: (ctx) => {
    13
    ctx.reply('pong')
    14
    }
    15
    })
    \ No newline at end of file diff --git a/es/v3/guide/getting-started/choose-ide/index.html b/es/v3/guide/getting-started/choose-ide/index.html index 7a65ebefe..e1df37141 100644 --- a/es/v3/guide/getting-started/choose-ide/index.html +++ b/es/v3/guide/getting-started/choose-ide/index.html @@ -51,4 +51,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;
  • Sublime Text
  • NotePad++
  • nvim (chad)
  • - \ No newline at end of file + \ No newline at end of file diff --git a/es/v3/guide/getting-started/preparing/index.html b/es/v3/guide/getting-started/preparing/index.html index d48200428..58d1e0a24 100644 --- a/es/v3/guide/getting-started/preparing/index.html +++ b/es/v3/guide/getting-started/preparing/index.html @@ -44,4 +44,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Preparing to Code

    Esta página aún no está disponible en tu idioma.

    After installing an IDE, you need to install node. Node is necessary to use sern, as it’s based on Discord.js.

    You can download Node from the official website here.

    After you’ve downloaded Node you will need a Discord token

    -

    CONTINUE 🤓

    \ No newline at end of file +

    CONTINUE 🤓

    \ No newline at end of file diff --git a/es/v3/guide/walkthrough/autocomplete/index.html b/es/v3/guide/walkthrough/autocomplete/index.html index 9ac63f5b7..06e864bfc 100644 --- a/es/v3/guide/walkthrough/autocomplete/index.html +++ b/es/v3/guide/walkthrough/autocomplete/index.html @@ -51,4 +51,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    We can filter the cheeses based on the focus object, and return only the cheeses that start with the focus object.

    You can do a lot more with the focus object, such as performing API calls, or implementing a fuzzy search.

    src/commands/cheese.ts
    1
    export default commandModule({
    2
    type: CommandType.Slash,
    3
    description: "show me cheese",
    4
    options: [
    5
    {
    6
    name: "list",
    7
    type: ApplicationCommandOptionType.String,
    8
    description: "pick a cheese to show",
    9
    required: true,
    10
    autocomplete: true,
    11
    command: {
    12
    onEvent: [],
    13
    execute: (ctx) => {
    14
    const focus = ctx.options.getFocused();
    15
    ctx.respond(
    16
    ["gouda", "parmesan", "harvarti"]
    17
    .filter((cheese) => cheese.startsWith(focus))
    18
    .map((cheese) => ({
    19
    name: cheese,
    20
    value: cheese,
    21
    })),
    22
    );
    23
    },
    24
    },
    25
    },
    26
    ],
    27
    execute: (ctx, [, args]) => {
    28
    const cheese = args.getString("list", true);
    29
    ctx.reply("selected cheese");
    30
    },
    31
    });
    - \ No newline at end of file + \ No newline at end of file diff --git a/es/v3/guide/walkthrough/cli/index.html b/es/v3/guide/walkthrough/cli/index.html index d39d10eed..7c11e2634 100644 --- a/es/v3/guide/walkthrough/cli/index.html +++ b/es/v3/guide/walkthrough/cli/index.html @@ -56,4 +56,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Extra Utilities

    To install extra utilities into your project, run:

    Terminal window
    sern extra
    -

    We have a more in depth guide on the CLI if you’re interested in learning more.

    \ No newline at end of file +

    We have a more in depth guide on the CLI if you’re interested in learning more.

    \ No newline at end of file diff --git a/es/v3/guide/walkthrough/conclusion/index.html b/es/v3/guide/walkthrough/conclusion/index.html index 592d18b80..124193288 100644 --- a/es/v3/guide/walkthrough/conclusion/index.html +++ b/es/v3/guide/walkthrough/conclusion/index.html @@ -44,4 +44,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Conclusion

    Esta página aún no está disponible en tu idioma.

    If you reached this far, thank you for reading!

    We hope you have learned the necessities you need to create a bot with the sern framework.

    If you have any other questions, bugs, feature requests, concerns, please join our community server, and we’ll be glad to answer your questions!

    -

    paper logo

    \ No newline at end of file +

    paper logo

    \ No newline at end of file diff --git a/es/v3/guide/walkthrough/dependency-injection/index.html b/es/v3/guide/walkthrough/dependency-injection/index.html index 2e3abbb27..dd56e92fe 100644 --- a/es/v3/guide/walkthrough/dependency-injection/index.html +++ b/es/v3/guide/walkthrough/dependency-injection/index.html @@ -87,4 +87,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;
  • Now, when your bot starts, the init method will be called. 🎉

  • - \ No newline at end of file + \ No newline at end of file diff --git a/es/v3/guide/walkthrough/first-command/index.html b/es/v3/guide/walkthrough/first-command/index.html index 9d58aab6e..a89229db9 100644 --- a/es/v3/guide/walkthrough/first-command/index.html +++ b/es/v3/guide/walkthrough/first-command/index.html @@ -71,4 +71,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;
  • CommandType.Slash
  • CommandType.Text
  • -

    This data structure helps interop between legacy commands and slash commands with ease.

    \ No newline at end of file +

    This data structure helps interop between legacy commands and slash commands with ease.

    \ No newline at end of file diff --git a/es/v3/guide/walkthrough/first-event/index.html b/es/v3/guide/walkthrough/first-event/index.html index 8587d5ecf..8973cd902 100644 --- a/es/v3/guide/walkthrough/first-event/index.html +++ b/es/v3/guide/walkthrough/first-event/index.html @@ -53,4 +53,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;
    src/index.ts
    1
    await makeDependencies({
    2
    build: root => root.add({
    3
    eventlistener: single(() => new EventEmitter())
    4
    })
    5
    })

    In your event module, you can now listen to events from eventlistener, which will be emitted from the EventEmitter.

    src/events/myevent.ts
    1
    export default eventModule({
    2
    type: EventType.External,
    3
    emitter: 'eventlistener',
    4
    execute: (args) => {
    5
    console.log('Got event from eventlistener: ', args);
    6
    }
    7
    })
    - \ No newline at end of file + \ No newline at end of file diff --git a/es/v3/guide/walkthrough/goal/index.html b/es/v3/guide/walkthrough/goal/index.html index 1c4569e77..07edb7701 100644 --- a/es/v3/guide/walkthrough/goal/index.html +++ b/es/v3/guide/walkthrough/goal/index.html @@ -54,4 +54,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;
    4
    export class PingCommand extends Command {
    5
    public constructor(context: Command.Context) {
    6
    super(context, {
    7
    description: "Pong!",
    8
    chatInputCommand: {
    9
    register: true,
    10
    },
    11
    });
    12
    }
    13
    public async chatInputRun(interaction: CommandInteraction) {
    14
    await interaction.reply("Pong!");
    15
    }
    16
    }

    Keep in mind the sern example acts as both a slash command AND a text command. The Sapphire example is only a slash command, and it’s more code than sern.

    -

    Be smart. Choose sern.

    \ No newline at end of file +

    Be smart. Choose sern.

    \ No newline at end of file diff --git a/es/v3/guide/walkthrough/good-to-know/index.html b/es/v3/guide/walkthrough/good-to-know/index.html index 6e1baf126..6811facac 100644 --- a/es/v3/guide/walkthrough/good-to-know/index.html +++ b/es/v3/guide/walkthrough/good-to-know/index.html @@ -46,4 +46,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    For example, when installing TypeScript plugins, the language property is necessary to install from our open source repository.

    Using the CLI and running sern init --sync on pre-existing projects should install this file in the your project.

    Or, if this is a brand-new project, sern init automatically installs it.

    -
    sern.config.json
    1
    {
    2
    "language": "typescript",
    3
    "paths": {
    4
    "base": "src",
    5
    "commands": "commands"
    6
    }
    7
    }
    \ No newline at end of file +
    sern.config.json
    1
    {
    2
    "language": "typescript",
    3
    "paths": {
    4
    "base": "src",
    5
    "commands": "commands"
    6
    }
    7
    }
    \ No newline at end of file diff --git a/es/v3/guide/walkthrough/new-project/index.html b/es/v3/guide/walkthrough/new-project/index.html index a66ecfccf..731f214f0 100644 --- a/es/v3/guide/walkthrough/new-project/index.html +++ b/es/v3/guide/walkthrough/new-project/index.html @@ -43,4 +43,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem; StarlightThemeProvider.updatePickers();

    New Project

    Esta página aún no está disponible en tu idioma.

    Terminal window
    npm create @sern/bot

    Once you’ve used this command, follow the interactive prompts to create your new project.

    -

    If you need help, feel free to ask on our Discord.

    \ No newline at end of file +

    If you need help, feel free to ask on our Discord.

    \ No newline at end of file diff --git a/es/v3/guide/walkthrough/plugins/index.html b/es/v3/guide/walkthrough/plugins/index.html index aa0d8e9b8..433160f92 100644 --- a/es/v3/guide/walkthrough/plugins/index.html +++ b/es/v3/guide/walkthrough/plugins/index.html @@ -81,4 +81,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;
  • Before an event occurs, this command module will check if the user has the id 182326315813306368.
  • If all plugins return controller.next(), this command replies Pong 🏓
  • - \ No newline at end of file + \ No newline at end of file diff --git a/es/v3/guide/walkthrough/sern-emitter/index.html b/es/v3/guide/walkthrough/sern-emitter/index.html index 7f54367d2..36a97d0a5 100644 --- a/es/v3/guide/walkthrough/sern-emitter/index.html +++ b/es/v3/guide/walkthrough/sern-emitter/index.html @@ -51,4 +51,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;
  • warn events, where it is possible to throw errors
  • You can put these and other event listeners into event modules!

    -

    You can view all events in the SernEventsMapping interface.

    \ No newline at end of file +

    You can view all events in the SernEventsMapping interface.

    \ No newline at end of file diff --git a/es/v3/guide/walkthrough/services/index.html b/es/v3/guide/walkthrough/services/index.html index 1a5e06633..63cace6f9 100644 --- a/es/v3/guide/walkthrough/services/index.html +++ b/es/v3/guide/walkthrough/services/index.html @@ -83,4 +83,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem; \ No newline at end of file + \ No newline at end of file diff --git a/es/v3/guide/walkthrough/transition/index.html b/es/v3/guide/walkthrough/transition/index.html index d44893f2d..d0ac8cf15 100644 --- a/es/v3/guide/walkthrough/transition/index.html +++ b/es/v3/guide/walkthrough/transition/index.html @@ -47,4 +47,4 @@ include a dependencies.d.ts file into compilation. (Chec

    A standard project file tree:

    \ No newline at end of file +
  • .env
  • .gitignore
  • bun.lockb
  • package.json
  • README.md
  • sern.config.json
  • tsconfig.json
  • \ No newline at end of file diff --git a/es/v4/api/classes/context/index.html b/es/v4/api/classes/context/index.html index c1fa1335a..d0d188f32 100644 --- a/es/v4/api/classes/context/index.html +++ b/es/v4/api/classes/context/index.html @@ -222,4 +222,4 @@ else, interaction.user

    Returns

    Context

    Source

    -

    src/core/structures/context.ts:124

    \ No newline at end of file +

    src/core/structures/context.ts:124

    \ No newline at end of file diff --git a/es/v4/api/enumerations/commandtype/index.html b/es/v4/api/enumerations/commandtype/index.html index bf8c9ab06..959bfbabf 100644 --- a/es/v4/api/enumerations/commandtype/index.html +++ b/es/v4/api/enumerations/commandtype/index.html @@ -129,4 +129,4 @@ A bitfield that discriminates command modules

    UserSelect: 128

    Source

    -

    src/core/structures/enums.ts:26

    \ No newline at end of file +

    src/core/structures/enums.ts:26

    \ No newline at end of file diff --git a/es/v4/api/enumerations/eventtype/index.html b/es/v4/api/enumerations/eventtype/index.html index d45bee112..aab51cac7 100644 --- a/es/v4/api/enumerations/eventtype/index.html +++ b/es/v4/api/enumerations/eventtype/index.html @@ -68,4 +68,4 @@ Could be for example, process events, database events

    The EventType for handling sern events

    Source

    -

    src/core/structures/enums.ts:55

    \ No newline at end of file +

    src/core/structures/enums.ts:55

    \ No newline at end of file diff --git a/es/v4/api/enumerations/payloadtype/index.html b/es/v4/api/enumerations/payloadtype/index.html index f0ed463ad..64523b587 100644 --- a/es/v4/api/enumerations/payloadtype/index.html +++ b/es/v4/api/enumerations/payloadtype/index.html @@ -64,4 +64,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Warning: "warning"

    Source

    -

    src/core/structures/enums.ts:94

    \ No newline at end of file +

    src/core/structures/enums.ts:94

    \ No newline at end of file diff --git a/es/v4/api/enumerations/plugintype/index.html b/es/v4/api/enumerations/plugintype/index.html index db65332ad..e27019ca2 100644 --- a/es/v4/api/enumerations/plugintype/index.html +++ b/es/v4/api/enumerations/plugintype/index.html @@ -59,4 +59,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    The PluginType for InitPlugins

    Source

    -

    src/core/structures/enums.ts:81

    \ No newline at end of file +

    src/core/structures/enums.ts:81

    \ No newline at end of file diff --git a/es/v4/api/functions/commandcontrolplugin/index.html b/es/v4/api/functions/commandcontrolplugin/index.html index 90bc0801e..c20e6eb0d 100644 --- a/es/v4/api/functions/commandcontrolplugin/index.html +++ b/es/v4/api/functions/commandcontrolplugin/index.html @@ -74,4 +74,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;
  • Useful for implementing preconditions, filters, and command preprocessing
  • Source

    -

    src/core/plugin.ts:120

    \ No newline at end of file +

    src/core/plugin.ts:120

    \ No newline at end of file diff --git a/es/v4/api/functions/commandinitplugin/index.html b/es/v4/api/functions/commandinitplugin/index.html index f0225b63a..f6a2f2bd5 100644 --- a/es/v4/api/functions/commandinitplugin/index.html +++ b/es/v4/api/functions/commandinitplugin/index.html @@ -69,4 +69,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;
  • Use controller.stop(reason) to halt plugin execution
  • Source

    -

    src/core/plugin.ts:62

    \ No newline at end of file +

    src/core/plugin.ts:62

    \ No newline at end of file diff --git a/es/v4/api/functions/commandmodule/index.html b/es/v4/api/functions/commandmodule/index.html index 20230d515..2c0efc0e7 100644 --- a/es/v4/api/functions/commandmodule/index.html +++ b/es/v4/api/functions/commandmodule/index.html @@ -58,4 +58,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Example

    1
    // Command with component interaction
    2
    export default commandModule({
    3
    type: CommandType.Slash,
    4
    description: "Interactive command",
    5
    execute: async (ctx) => {
    6
    const button = new ButtonBuilder({
    7
    customId: "btn/someData",
    8
    label: "Click me",
    9
    style: ButtonStyle.Primary
    10
    });
    11
    await ctx.reply({
    12
    content: "Interactive message",
    13
    components: [new ActionRowBuilder().addComponents(button)]
    14
    });
    15
    }
    16
    });

    Source

    -

    src/core/modules.ts:47

    \ No newline at end of file +

    src/core/modules.ts:47

    \ No newline at end of file diff --git a/es/v4/api/functions/discordevent/index.html b/es/v4/api/functions/discordevent/index.html index 7c162ae8b..0892000ec 100644 --- a/es/v4/api/functions/discordevent/index.html +++ b/es/v4/api/functions/discordevent/index.html @@ -58,4 +58,4 @@ where typings were bad.

    Returns

    Module

    Source

    -

    src/core/modules.ts:97

    \ No newline at end of file +

    src/core/modules.ts:97

    \ No newline at end of file diff --git a/es/v4/api/functions/eventinitplugin/index.html b/es/v4/api/functions/eventinitplugin/index.html index 590ee5b78..3dc0bbee6 100644 --- a/es/v4/api/functions/eventinitplugin/index.html +++ b/es/v4/api/functions/eventinitplugin/index.html @@ -51,4 +51,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Since

    2.5.0

    Source

    -

    src/core/plugin.ts:15

    \ No newline at end of file +

    src/core/plugin.ts:15

    \ No newline at end of file diff --git a/es/v4/api/functions/eventmodule/index.html b/es/v4/api/functions/eventmodule/index.html index 4993e0faa..93dd2f672 100644 --- a/es/v4/api/functions/eventmodule/index.html +++ b/es/v4/api/functions/eventmodule/index.html @@ -63,4 +63,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Example

    1
    // Custom sern event
    2
    export default eventModule({
    3
    type: EventType.Sern,
    4
    execute: async (eventData) => {
    5
    // Handle sern-specific event
    6
    }
    7
    });

    Source

    -

    src/core/modules.ts:83

    \ No newline at end of file +

    src/core/modules.ts:83

    \ No newline at end of file diff --git a/es/v4/api/functions/makedependencies/index.html b/es/v4/api/functions/makedependencies/index.html index 0679c5db1..51d4ed8a4 100644 --- a/es/v4/api/functions/makedependencies/index.html +++ b/es/v4/api/functions/makedependencies/index.html @@ -53,4 +53,4 @@ This is required to start the handler, and is to be called before Sern.init.

    Example

    1
    await makeDependencies(({ add }) => {
    2
    add('@sern/client', new Client({ intents, partials })
    3
    })

    Source

    -

    src/core/ioc.ts:63

    \ No newline at end of file +

    src/core/ioc.ts:63

    \ No newline at end of file diff --git a/es/v4/api/functions/makeplugin/index.html b/es/v4/api/functions/makeplugin/index.html index a1ec632e3..1134262dc 100644 --- a/es/v4/api/functions/makeplugin/index.html +++ b/es/v4/api/functions/makeplugin/index.html @@ -52,4 +52,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Returns

    Plugin<V>

    Source

    -

    src/core/plugin.ts:6

    \ No newline at end of file +

    src/core/plugin.ts:6

    \ No newline at end of file diff --git a/es/v4/api/functions/service/index.html b/es/v4/api/functions/service/index.html index 38ae9196f..47c2708f8 100644 --- a/es/v4/api/functions/service/index.html +++ b/es/v4/api/functions/service/index.html @@ -62,4 +62,4 @@ Note: this method only works AFTER your container has been initiated

    Throws

    if container is absent or not present

    Source

    -

    src/core/ioc.ts:93

    \ No newline at end of file +

    src/core/ioc.ts:93

    \ No newline at end of file diff --git a/es/v4/api/functions/services/index.html b/es/v4/api/functions/services/index.html index cfacc9245..908a40fc7 100644 --- a/es/v4/api/functions/services/index.html +++ b/es/v4/api/functions/services/index.html @@ -57,4 +57,4 @@ The plural version of Servi

    Throws

    if container is absent or not present

    Source

    -

    src/core/ioc.ts:103

    \ No newline at end of file +

    src/core/ioc.ts:103

    \ No newline at end of file diff --git a/es/v4/api/functions/single/index.html b/es/v4/api/functions/single/index.html index e86459d76..d09102cec 100644 --- a/es/v4/api/functions/single/index.html +++ b/es/v4/api/functions/single/index.html @@ -52,4 +52,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Returns

    T

    Source

    -

    src/core/ioc.ts:112

    \ No newline at end of file +

    src/core/ioc.ts:112

    \ No newline at end of file diff --git a/es/v4/api/functions/transient/index.html b/es/v4/api/functions/transient/index.html index a0542fa91..f2222d170 100644 --- a/es/v4/api/functions/transient/index.html +++ b/es/v4/api/functions/transient/index.html @@ -55,4 +55,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    2.0.0 Creates a transient object

    Source

    -

    src/core/ioc.ts:123

    \ No newline at end of file +

    src/core/ioc.ts:123

    \ No newline at end of file diff --git a/es/v4/api/interfaces/bothcommand/index.html b/es/v4/api/interfaces/bothcommand/index.html index ba493d086..6d37c58f0 100644 --- a/es/v4/api/interfaces/bothcommand/index.html +++ b/es/v4/api/interfaces/bothcommand/index.html @@ -174,4 +174,4 @@ to attach metadata or configuration to modules.

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:283

    \ No newline at end of file +

    src/types/core-modules.ts:283

    \ No newline at end of file diff --git a/es/v4/api/interfaces/buttoncommand/index.html b/es/v4/api/interfaces/buttoncommand/index.html index 2c1f9aa26..392ffa2ba 100644 --- a/es/v4/api/interfaces/buttoncommand/index.html +++ b/es/v4/api/interfaces/buttoncommand/index.html @@ -167,4 +167,4 @@ to attach metadata or configuration to modules.

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:225

    \ No newline at end of file +

    src/types/core-modules.ts:225

    \ No newline at end of file diff --git a/es/v4/api/interfaces/channelselectcommand/index.html b/es/v4/api/interfaces/channelselectcommand/index.html index 3bdf1fcfd..77e3aa848 100644 --- a/es/v4/api/interfaces/channelselectcommand/index.html +++ b/es/v4/api/interfaces/channelselectcommand/index.html @@ -167,4 +167,4 @@ to attach metadata or configuration to modules.

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:235

    \ No newline at end of file +

    src/types/core-modules.ts:235

    \ No newline at end of file diff --git a/es/v4/api/interfaces/commandmoduledefs/index.html b/es/v4/api/interfaces/commandmoduledefs/index.html index f577bf7f5..25ed42e98 100644 --- a/es/v4/api/interfaces/commandmoduledefs/index.html +++ b/es/v4/api/interfaces/commandmoduledefs/index.html @@ -124,4 +124,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    8: ContextMenuMsg

    Source

    -

    src/types/core-modules.ts:310

    \ No newline at end of file +

    src/types/core-modules.ts:310

    \ No newline at end of file diff --git a/es/v4/api/interfaces/contextmenumsg/index.html b/es/v4/api/interfaces/contextmenumsg/index.html index 863f6d95f..10d4ef31d 100644 --- a/es/v4/api/interfaces/contextmenumsg/index.html +++ b/es/v4/api/interfaces/contextmenumsg/index.html @@ -167,4 +167,4 @@ to attach metadata or configuration to modules.

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:220

    \ No newline at end of file +

    src/types/core-modules.ts:220

    \ No newline at end of file diff --git a/es/v4/api/interfaces/contextmenuuser/index.html b/es/v4/api/interfaces/contextmenuuser/index.html index 411ac65d1..300fd113e 100644 --- a/es/v4/api/interfaces/contextmenuuser/index.html +++ b/es/v4/api/interfaces/contextmenuuser/index.html @@ -167,4 +167,4 @@ to attach metadata or configuration to modules.

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:215

    \ No newline at end of file +

    src/types/core-modules.ts:215

    \ No newline at end of file diff --git a/es/v4/api/interfaces/controlplugin/index.html b/es/v4/api/interfaces/controlplugin/index.html index 2dadb7ef8..bafd75a6f 100644 --- a/es/v4/api/interfaces/controlplugin/index.html +++ b/es/v4/api/interfaces/controlplugin/index.html @@ -68,4 +68,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Plugin.type

    Source

    -

    src/types/core-plugin.ts:52

    \ No newline at end of file +

    src/types/core-plugin.ts:52

    \ No newline at end of file diff --git a/es/v4/api/interfaces/coredependencies/index.html b/es/v4/api/interfaces/coredependencies/index.html index 9bcd02264..f5b40a829 100644 --- a/es/v4/api/interfaces/coredependencies/index.html +++ b/es/v4/api/interfaces/coredependencies/index.html @@ -90,4 +90,4 @@ by module.meta.id -> Module

    @sern/scheduler: TaskScheduler

    Source

    -

    src/core/ioc.ts:161

    \ No newline at end of file +

    src/core/ioc.ts:161

    \ No newline at end of file diff --git a/es/v4/api/interfaces/discordeventcommand/index.html b/es/v4/api/interfaces/discordeventcommand/index.html index e084158dc..706d46dd6 100644 --- a/es/v4/api/interfaces/discordeventcommand/index.html +++ b/es/v4/api/interfaces/discordeventcommand/index.html @@ -168,4 +168,4 @@ to attach metadata or configuration to modules.

    Overrides

    Module.execute

    Source

    -

    src/types/core-modules.ts:268

    \ No newline at end of file +

    src/types/core-modules.ts:268

    \ No newline at end of file diff --git a/es/v4/api/interfaces/disposable/index.html b/es/v4/api/interfaces/disposable/index.html index f45249049..48b29b219 100644 --- a/es/v4/api/interfaces/disposable/index.html +++ b/es/v4/api/interfaces/disposable/index.html @@ -51,4 +51,4 @@ Let dependencies implement this to dispose and cleanup.

    Returns

    unknown

    Source

    -

    src/core/interfaces.ts:17

    \ No newline at end of file +

    src/core/interfaces.ts:17

    \ No newline at end of file diff --git a/es/v4/api/interfaces/emitter/index.html b/es/v4/api/interfaces/emitter/index.html index 03a095290..e4af5a5eb 100644 --- a/es/v4/api/interfaces/emitter/index.html +++ b/es/v4/api/interfaces/emitter/index.html @@ -76,4 +76,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Returns

    this

    Source

    -

    src/core/interfaces.ts:23

    \ No newline at end of file +

    src/core/interfaces.ts:23

    \ No newline at end of file diff --git a/es/v4/api/interfaces/errorhandling/index.html b/es/v4/api/interfaces/errorhandling/index.html index f02c65e89..c32c95468 100644 --- a/es/v4/api/interfaces/errorhandling/index.html +++ b/es/v4/api/interfaces/errorhandling/index.html @@ -66,4 +66,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Returns

    void

    Source

    -

    src/core/interfaces.ts:41

    \ No newline at end of file +

    src/core/interfaces.ts:41

    \ No newline at end of file diff --git a/es/v4/api/interfaces/eventmoduledefs/index.html b/es/v4/api/interfaces/eventmoduledefs/index.html index b24f9e7d0..644b8902b 100644 --- a/es/v4/api/interfaces/eventmoduledefs/index.html +++ b/es/v4/api/interfaces/eventmoduledefs/index.html @@ -63,4 +63,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    2: ExternalEventCommand

    Source

    -

    src/types/core-modules.ts:324

    \ No newline at end of file +

    src/types/core-modules.ts:324

    \ No newline at end of file diff --git a/es/v4/api/interfaces/externaleventcommand/index.html b/es/v4/api/interfaces/externaleventcommand/index.html index 8ba1af530..d7a36bebb 100644 --- a/es/v4/api/interfaces/externaleventcommand/index.html +++ b/es/v4/api/interfaces/externaleventcommand/index.html @@ -173,4 +173,4 @@ to attach metadata or configuration to modules.

    Overrides

    Module.execute

    Source

    -

    src/types/core-modules.ts:210

    \ No newline at end of file +

    src/types/core-modules.ts:210

    \ No newline at end of file diff --git a/es/v4/api/interfaces/init/index.html b/es/v4/api/interfaces/init/index.html index 3f99e834b..e719bae56 100644 --- a/es/v4/api/interfaces/init/index.html +++ b/es/v4/api/interfaces/init/index.html @@ -51,4 +51,4 @@ Let dependencies implement this to initiate some logic.

    Returns

    unknown

    Source

    -

    src/core/interfaces.ts:9

    \ No newline at end of file +

    src/core/interfaces.ts:9

    \ No newline at end of file diff --git a/es/v4/api/interfaces/initplugin/index.html b/es/v4/api/interfaces/initplugin/index.html index 669afd6bd..4dae5988e 100644 --- a/es/v4/api/interfaces/initplugin/index.html +++ b/es/v4/api/interfaces/initplugin/index.html @@ -68,4 +68,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Plugin.type

    Source

    -

    src/types/core-plugin.ts:48

    \ No newline at end of file +

    src/types/core-plugin.ts:48

    \ No newline at end of file diff --git a/es/v4/api/interfaces/logging/index.html b/es/v4/api/interfaces/logging/index.html index 9fbac4c4d..7a234b297 100644 --- a/es/v4/api/interfaces/logging/index.html +++ b/es/v4/api/interfaces/logging/index.html @@ -88,4 +88,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Returns

    void

    Source

    -

    src/core/interfaces.ts:50

    \ No newline at end of file +

    src/core/interfaces.ts:50

    \ No newline at end of file diff --git a/es/v4/api/interfaces/mentionableselectcommand/index.html b/es/v4/api/interfaces/mentionableselectcommand/index.html index 8282448da..1abaef632 100644 --- a/es/v4/api/interfaces/mentionableselectcommand/index.html +++ b/es/v4/api/interfaces/mentionableselectcommand/index.html @@ -167,4 +167,4 @@ to attach metadata or configuration to modules.

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:245

    \ No newline at end of file +

    src/types/core-modules.ts:245

    \ No newline at end of file diff --git a/es/v4/api/interfaces/modalsubmitcommand/index.html b/es/v4/api/interfaces/modalsubmitcommand/index.html index d0579ea08..dc3c6cba7 100644 --- a/es/v4/api/interfaces/modalsubmitcommand/index.html +++ b/es/v4/api/interfaces/modalsubmitcommand/index.html @@ -167,4 +167,4 @@ to attach metadata or configuration to modules.

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:255

    \ No newline at end of file +

    src/types/core-modules.ts:255

    \ No newline at end of file diff --git a/es/v4/api/interfaces/module/index.html b/es/v4/api/interfaces/module/index.html index d5072bf3b..8f41b02db 100644 --- a/es/v4/api/interfaces/module/index.html +++ b/es/v4/api/interfaces/module/index.html @@ -164,4 +164,4 @@ to attach metadata or configuration to modules.

    Returns

    any

    Source

    -

    src/types/core-modules.ts:196

    \ No newline at end of file +

    src/types/core-modules.ts:196

    \ No newline at end of file diff --git a/es/v4/api/interfaces/plugin/index.html b/es/v4/api/interfaces/plugin/index.html index ef59b14df..7a26da603 100644 --- a/es/v4/api/interfaces/plugin/index.html +++ b/es/v4/api/interfaces/plugin/index.html @@ -65,4 +65,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    type: PluginType

    Source

    -

    src/types/core-plugin.ts:43

    \ No newline at end of file +

    src/types/core-plugin.ts:43

    \ No newline at end of file diff --git a/es/v4/api/interfaces/roleselectcommand/index.html b/es/v4/api/interfaces/roleselectcommand/index.html index c224f160a..9036c7ada 100644 --- a/es/v4/api/interfaces/roleselectcommand/index.html +++ b/es/v4/api/interfaces/roleselectcommand/index.html @@ -167,4 +167,4 @@ to attach metadata or configuration to modules.

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:240

    \ No newline at end of file +

    src/types/core-modules.ts:240

    \ No newline at end of file diff --git a/es/v4/api/interfaces/sernautocompletedata/index.html b/es/v4/api/interfaces/sernautocompletedata/index.html index b2a8f5f92..5b87b401a 100644 --- a/es/v4/api/interfaces/sernautocompletedata/index.html +++ b/es/v4/api/interfaces/sernautocompletedata/index.html @@ -110,4 +110,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    type: String | Integer | Number

    Source

    -

    src/types/core-modules.ts:330

    \ No newline at end of file +

    src/types/core-modules.ts:330

    \ No newline at end of file diff --git a/es/v4/api/interfaces/serneventcommand/index.html b/es/v4/api/interfaces/serneventcommand/index.html index 8a3cdbbf4..cc872abae 100644 --- a/es/v4/api/interfaces/serneventcommand/index.html +++ b/es/v4/api/interfaces/serneventcommand/index.html @@ -168,4 +168,4 @@ to attach metadata or configuration to modules.

    Overrides

    Module.execute

    Source

    -

    src/types/core-modules.ts:203

    \ No newline at end of file +

    src/types/core-modules.ts:203

    \ No newline at end of file diff --git a/es/v4/api/interfaces/serneventsmapping/index.html b/es/v4/api/interfaces/serneventsmapping/index.html index f026f1f1d..7d1a3d088 100644 --- a/es/v4/api/interfaces/serneventsmapping/index.html +++ b/es/v4/api/interfaces/serneventsmapping/index.html @@ -75,4 +75,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    warning: [Payload]

    Source

    -

    src/types/utility.ts:13

    \ No newline at end of file +

    src/types/utility.ts:13

    \ No newline at end of file diff --git a/es/v4/api/interfaces/sernsubcommanddata/index.html b/es/v4/api/interfaces/sernsubcommanddata/index.html index 4c8b6bdfc..db52dc8bf 100644 --- a/es/v4/api/interfaces/sernsubcommanddata/index.html +++ b/es/v4/api/interfaces/sernsubcommanddata/index.html @@ -105,4 +105,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    APIApplicationCommandOptionBase.type

    Source

    -

    src/types/core-modules.ts:368

    \ No newline at end of file +

    src/types/core-modules.ts:368

    \ No newline at end of file diff --git a/es/v4/api/interfaces/sernsubcommandgroupdata/index.html b/es/v4/api/interfaces/sernsubcommandgroupdata/index.html index 629f1c87e..52130f4c6 100644 --- a/es/v4/api/interfaces/sernsubcommandgroupdata/index.html +++ b/es/v4/api/interfaces/sernsubcommandgroupdata/index.html @@ -112,4 +112,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    type: SubcommandGroup

    Source

    -

    src/types/core-modules.ts:373

    \ No newline at end of file +

    src/types/core-modules.ts:373

    \ No newline at end of file diff --git a/es/v4/api/interfaces/slashcommand/index.html b/es/v4/api/interfaces/slashcommand/index.html index 9a4773fd4..1d622fafc 100644 --- a/es/v4/api/interfaces/slashcommand/index.html +++ b/es/v4/api/interfaces/slashcommand/index.html @@ -174,4 +174,4 @@ to attach metadata or configuration to modules.

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:276

    \ No newline at end of file +

    src/types/core-modules.ts:276

    \ No newline at end of file diff --git a/es/v4/api/interfaces/stringselectcommand/index.html b/es/v4/api/interfaces/stringselectcommand/index.html index f91f81b38..5118a7b60 100644 --- a/es/v4/api/interfaces/stringselectcommand/index.html +++ b/es/v4/api/interfaces/stringselectcommand/index.html @@ -167,4 +167,4 @@ to attach metadata or configuration to modules.

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:230

    \ No newline at end of file +

    src/types/core-modules.ts:230

    \ No newline at end of file diff --git a/es/v4/api/interfaces/textcommand/index.html b/es/v4/api/interfaces/textcommand/index.html index cd1aaac20..5374ee36a 100644 --- a/es/v4/api/interfaces/textcommand/index.html +++ b/es/v4/api/interfaces/textcommand/index.html @@ -167,4 +167,4 @@ to attach metadata or configuration to modules.

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:271

    \ No newline at end of file +

    src/types/core-modules.ts:271

    \ No newline at end of file diff --git a/es/v4/api/interfaces/userselectcommand/index.html b/es/v4/api/interfaces/userselectcommand/index.html index 99016e282..100ebdf1c 100644 --- a/es/v4/api/interfaces/userselectcommand/index.html +++ b/es/v4/api/interfaces/userselectcommand/index.html @@ -167,4 +167,4 @@ to attach metadata or configuration to modules.

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:250

    \ No newline at end of file +

    src/types/core-modules.ts:250

    \ No newline at end of file diff --git a/es/v4/api/namespaces/sern/functions/init/index.html b/es/v4/api/namespaces/sern/functions/init/index.html index 9bfce5fe8..6061137c1 100644 --- a/es/v4/api/namespaces/sern/functions/init/index.html +++ b/es/v4/api/namespaces/sern/functions/init/index.html @@ -55,4 +55,4 @@ Function to start the handler up

    Example

    src/index.ts
    1
    Sern.init({
    2
    commands: 'dist/commands',
    3
    events: 'dist/events',
    4
    })

    Source

    -

    src/sern.ts:32

    \ No newline at end of file +

    src/sern.ts:32

    \ No newline at end of file diff --git a/es/v4/api/readme/index.html b/es/v4/api/readme/index.html index 5770ba592..b26d4dfc4 100644 --- a/es/v4/api/readme/index.html +++ b/es/v4/api/readme/index.html @@ -125,4 +125,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;
  • scheduledTask
  • single
  • transient
  • - \ No newline at end of file + \ No newline at end of file diff --git a/es/v4/api/type-aliases/anyplugin/index.html b/es/v4/api/type-aliases/anyplugin/index.html index 8ca7ce6ee..e5a94d267 100644 --- a/es/v4/api/type-aliases/anyplugin/index.html +++ b/es/v4/api/type-aliases/anyplugin/index.html @@ -45,4 +45,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    AnyPlugin: ControlPlugin | InitPlugin<[InitArgs<Processed<Module>>]>

    Source

    -

    src/types/core-plugin.ts:55

    \ No newline at end of file +

    src/types/core-plugin.ts:55

    \ No newline at end of file diff --git a/es/v4/api/type-aliases/commandmodule/index.html b/es/v4/api/type-aliases/commandmodule/index.html index 8b772fdc3..67e66ebe6 100644 --- a/es/v4/api/type-aliases/commandmodule/index.html +++ b/es/v4/api/type-aliases/commandmodule/index.html @@ -45,4 +45,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    CommandModule: TextCommand | SlashCommand | BothCommand | ContextMenuUser | ContextMenuMsg | ButtonCommand | StringSelectCommand | MentionableSelectCommand | UserSelectCommand | ChannelSelectCommand | RoleSelectCommand | ModalSubmitCommand

    Source

    -

    src/types/core-modules.ts:290

    \ No newline at end of file +

    src/types/core-modules.ts:290

    \ No newline at end of file diff --git a/es/v4/api/type-aliases/controller/index.html b/es/v4/api/type-aliases/controller/index.html index c392e1fe1..494116f04 100644 --- a/es/v4/api/type-aliases/controller/index.html +++ b/es/v4/api/type-aliases/controller/index.html @@ -45,4 +45,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Controller: typeof controller

    Source

    -

    src/core/plugin.ts:137

    \ No newline at end of file +

    src/core/plugin.ts:137

    \ No newline at end of file diff --git a/es/v4/api/type-aliases/eventmodule/index.html b/es/v4/api/type-aliases/eventmodule/index.html index 7f4e2c47a..3dfc4d760 100644 --- a/es/v4/api/type-aliases/eventmodule/index.html +++ b/es/v4/api/type-aliases/eventmodule/index.html @@ -45,4 +45,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    EventModule: DiscordEventCommand | SernEventCommand | ExternalEventCommand

    Source

    -

    src/types/core-modules.ts:289

    \ No newline at end of file +

    src/types/core-modules.ts:289

    \ No newline at end of file diff --git a/es/v4/api/type-aliases/logpayload/index.html b/es/v4/api/type-aliases/logpayload/index.html index fe0cfa6d3..445c4e600 100644 --- a/es/v4/api/type-aliases/logpayload/index.html +++ b/es/v4/api/type-aliases/logpayload/index.html @@ -52,4 +52,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    message: T

    Source

    -

    src/core/interfaces.ts:55

    \ No newline at end of file +

    src/core/interfaces.ts:55

    \ No newline at end of file diff --git a/es/v4/api/type-aliases/payload/index.html b/es/v4/api/type-aliases/payload/index.html index f7ecf3129..e3a858056 100644 --- a/es/v4/api/type-aliases/payload/index.html +++ b/es/v4/api/type-aliases/payload/index.html @@ -45,4 +45,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Payload: object | object | object

    Source

    -

    src/types/utility.ts:17

    \ No newline at end of file +

    src/types/utility.ts:17

    \ No newline at end of file diff --git a/es/v4/api/type-aliases/pluginresult/index.html b/es/v4/api/type-aliases/pluginresult/index.html index 1a9c9033c..9faadd2c2 100644 --- a/es/v4/api/type-aliases/pluginresult/index.html +++ b/es/v4/api/type-aliases/pluginresult/index.html @@ -45,4 +45,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    PluginResult: Awaitable<Result<Record<string, unknown> | undefined, string | undefined>>

    Source

    -

    src/types/core-plugin.ts:36

    \ No newline at end of file +

    src/types/core-plugin.ts:36

    \ No newline at end of file diff --git a/es/v4/api/type-aliases/sernoptionsdata/index.html b/es/v4/api/type-aliases/sernoptionsdata/index.html index cdaeb66d5..0cc348a73 100644 --- a/es/v4/api/type-aliases/sernoptionsdata/index.html +++ b/es/v4/api/type-aliases/sernoptionsdata/index.html @@ -46,4 +46,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Type that replaces autocomplete with SernAutocompleteData

    Source

    -

    src/types/core-modules.ts:360

    \ No newline at end of file +

    src/types/core-modules.ts:360

    \ No newline at end of file diff --git a/es/v4/api/variables/controller/index.html b/es/v4/api/variables/controller/index.html index a9b544c20..b6100ce57 100644 --- a/es/v4/api/variables/controller/index.html +++ b/es/v4/api/variables/controller/index.html @@ -81,4 +81,4 @@ The object passed into every plugin to control a command’s behavior

    readonly ok: false = false

    Source

    -

    src/core/plugin.ts:131

    \ No newline at end of file +

    src/core/plugin.ts:131

    \ No newline at end of file diff --git a/es/v4/api/variables/presence/index.html b/es/v4/api/variables/presence/index.html index 154707d58..31d24edf4 100644 --- a/es/v4/api/variables/presence/index.html +++ b/es/v4/api/variables/presence/index.html @@ -115,4 +115,4 @@ adjacent to the file where Sern.init is CALLED.

    optional status: Status

    Source

    -

    src/core/presences.ts:9

    \ No newline at end of file +

    src/core/presences.ts:9

    \ No newline at end of file diff --git a/es/v4/cli/about/index.html b/es/v4/cli/about/index.html index 1db32946d..de5ad38a0 100644 --- a/es/v4/cli/about/index.html +++ b/es/v4/cli/about/index.html @@ -50,4 +50,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;
    If you're new to sern, run npm create @sern/bot for an interactive setup to your new bot project!
    If you have any ideas, suggestions, bug reports, kindly join our support server: https://sern.dev/discord
    Options:
    -v, --version output the version number
    -h, --help display help for command
    -
    Commands:
    init [options] Quickest way to scaffold a new project [DEPRECATED]
    plugins [options] Install plugins from https://github.com/sern-handler/awesome-plugins
    extra Easy way to add extra things in your sern project
    commands Defacto way to manage your slash commands
    help [command] display help for command
    \ No newline at end of file +
    Commands:
    init [options] Quickest way to scaffold a new project [DEPRECATED]
    plugins [options] Install plugins from https://github.com/sern-handler/awesome-plugins
    extra Easy way to add extra things in your sern project
    commands Defacto way to manage your slash commands
    help [command] display help for command
    \ No newline at end of file diff --git a/es/v4/cli/build/index.html b/es/v4/cli/build/index.html index 1c1f13cf3..1bad5f84c 100644 --- a/es/v4/cli/build/index.html +++ b/es/v4/cli/build/index.html @@ -113,4 +113,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Full esbuild documentation here. Add more to the define field in build options (only availible with a sern.build file at the moment)

    process.env

    We generate your process.env with dotenv and generate typings for process.env. Less hassle!

    -
    DISCORD_TOKEN=<your token>
    1
    process.env.DISCORD_TOKEN; // string | undefined (not typesafe :()
    \ No newline at end of file +
    DISCORD_TOKEN=<your token>
    1
    process.env.DISCORD_TOKEN; // string | undefined (not typesafe :()
    \ No newline at end of file diff --git a/es/v4/cli/clear/index.html b/es/v4/cli/clear/index.html index 946f3cbb4..d59eab9f1 100644 --- a/es/v4/cli/clear/index.html +++ b/es/v4/cli/clear/index.html @@ -55,4 +55,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem; \ No newline at end of file + \ No newline at end of file diff --git a/es/v4/cli/extra/index.html b/es/v4/cli/extra/index.html index f256ebae5..e8ab1772c 100644 --- a/es/v4/cli/extra/index.html +++ b/es/v4/cli/extra/index.html @@ -48,4 +48,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    This command is pretty straightfoward. Install utilities into your application, assuming you have a sern.config.json.

    You can use this command to install things such as a Dockerfile

    Usage

    -
    Terminal window
    sern extra
    # Choose which extra feature from the prompt, such as this:
    What extra feature do you want to add? Dockerfile (TypeScript)
    \ No newline at end of file +
    Terminal window
    sern extra
    # Choose which extra feature from the prompt, such as this:
    What extra feature do you want to add? Dockerfile (TypeScript)
    \ No newline at end of file diff --git a/es/v4/cli/publish/index.html b/es/v4/cli/publish/index.html index dd7507035..61a15cf40 100644 --- a/es/v4/cli/publish/index.html +++ b/es/v4/cli/publish/index.html @@ -91,4 +91,4 @@ use the new service Publisher, officially maintained.

    src/commands/ping.ts
    1
    import { commandModule, Service, CommandType } from '@sern/handler'
    2
    3
    const client = Service('@sern/client');
    4
    5
    export const config = {
    6
    guildIds: ["889026545715400705"]
    7
    }
    8
    -
    9
    export default commandModule( {
    10
    type: CommandType.Slash
    11
    description: `${client.user.username}'s ping`,
    12
    execute: (ctx) => {
    13
    ctx.reply('pong')
    14
    }
    15
    })
    \ No newline at end of file +
    9
    export default commandModule( {
    10
    type: CommandType.Slash
    11
    description: `${client.user.username}'s ping`,
    12
    execute: (ctx) => {
    13
    ctx.reply('pong')
    14
    }
    15
    })
    \ No newline at end of file diff --git a/es/v4/reference/autocomplete/index.html b/es/v4/reference/autocomplete/index.html index 0aff0c514..b774432d3 100644 --- a/es/v4/reference/autocomplete/index.html +++ b/es/v4/reference/autocomplete/index.html @@ -51,4 +51,4 @@ We’ve implemented this functionality using a simple tree search algorithm with We can filter cheeses based on the focus object, and return only the cheeses that start with the focus object. You can do a lot more with the focus object, such as performing API calls, or implementing a fuzzy search.

    src/commands/cheese.ts
    1
    export default commandModule({
    2
    type: CommandType.Slash,
    3
    description: "show me cheese",
    4
    options: [
    5
    {
    6
    name: "list",
    7
    type: ApplicationCommandOptionType.String,
    8
    description: "pick a cheese to show",
    9
    required: true,
    10
    autocomplete: true,
    11
    command: {
    12
    onEvent: [],
    13
    execute: (ctx) => {
    14
    const focus = ctx.options.getFocused();
    15
    ctx.respond ["gouda", "parmesan", "harvarti"]
    16
    .filter((cheese) => cheese.startsWith(focus))
    17
    .map((cheese) => ({ name: cheese, value: cheese })));
    18
    },
    19
    },
    20
    },
    21
    ],
    22
    execute: (ctx) => {
    23
    const cheese = ctx.options.getString("list", true);
    24
    ctx.reply("selected cheese");
    25
    },
    26
    });
    - \ No newline at end of file + \ No newline at end of file diff --git a/es/v4/reference/conclusion/index.html b/es/v4/reference/conclusion/index.html index 0fd989865..46c0ef93e 100644 --- a/es/v4/reference/conclusion/index.html +++ b/es/v4/reference/conclusion/index.html @@ -44,4 +44,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Conclusion

    Esta página aún no está disponible en tu idioma.

    If you reached this far, thank you for reading!

    We hope you have learned the necessities you need to create a bot with the sern framework.

    If you have any other questions, bugs, feature requests, concerns, please join our community server, and we’ll be glad to answer your questions!

    -

    paper logo

    \ No newline at end of file +

    paper logo

    \ No newline at end of file diff --git a/es/v4/reference/config/index.html b/es/v4/reference/config/index.html index c92d1b7bc..9ca5010de 100644 --- a/es/v4/reference/config/index.html +++ b/es/v4/reference/config/index.html @@ -65,4 +65,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    user defined

    Feel free to supply any other constants / variables you may need.

    1
    export const OWNERS = ['182326315813306368']
    - \ No newline at end of file + \ No newline at end of file diff --git a/es/v4/reference/dependencies/index.html b/es/v4/reference/dependencies/index.html index bf26b1626..278cdeea8 100644 --- a/es/v4/reference/dependencies/index.html +++ b/es/v4/reference/dependencies/index.html @@ -115,4 +115,4 @@ A common occurence in sern projects is to swap out the Logger for a custom one. As a result, the codebase is more modular and easier to test and refactor

    \ No newline at end of file +For example, you may prefer importing the logger service vs. injecting the Logger class as a dependency.

    \ No newline at end of file diff --git a/es/v4/reference/error-handling/index.html b/es/v4/reference/error-handling/index.html index 17385f094..614f15925 100644 --- a/es/v4/reference/error-handling/index.html +++ b/es/v4/reference/error-handling/index.html @@ -41,9 +41,11 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem; StarlightThemeProvider.updatePickers();

    Error handling

    Esta página aún no está disponible en tu idioma.

    Error handling is important in any application, especially one which has a long lifetime of running.

    +

    Error handling

    Esta página aún no está disponible en tu idioma.

    +

    Error handling is important in any application, especially one which has a long lifetime of running.

    Handling errors in command and event modules

    -

    To capture errors, enable the ‘error’ event in sern’s global event manager.

    +

    To capture errors, enable the error event in sern’s global event manager.

    • Directorysrc/
      • Directorycommands/
      • Directoryevents/ @@ -53,6 +55,5 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;
    3
    export default eventModule({
    4
    type: EventType.Sern,
    5
    name: 'error',
    6
    execute: (err) => {
    7
    console.log('caught', err)
    8
    }
    9
    })

    If the error handler is not set, sern’s behavior is to crash the application. This respects node.js’s default behavior

    -
    \ No newline at end of file +If this happens, a memory leaks occurs and your bot will crash.

    \ No newline at end of file diff --git a/es/v4/reference/getting-started/index.html b/es/v4/reference/getting-started/index.html index ee12c1808..87aca9c75 100644 --- a/es/v4/reference/getting-started/index.html +++ b/es/v4/reference/getting-started/index.html @@ -44,4 +44,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Getting Started

    Esta página aún no está disponible en tu idioma.

    Terminal window
    npm create @sern/bot

    Once you’ve used this command, follow the interactive prompts to create your new project.

    If you need help, feel free to ask on our Discord.

    -
    \ No newline at end of file + \ No newline at end of file diff --git a/es/v4/reference/modules/index.html b/es/v4/reference/modules/index.html index 6524d5752..d59dc2532 100644 --- a/es/v4/reference/modules/index.html +++ b/es/v4/reference/modules/index.html @@ -84,4 +84,4 @@ You may not see your command instantly in Discord, if so, try refreshing.

    Listening to Discord Events
    src/events/messageCreate.js
    1
    import { eventModule, EventType } from "@sern/handler";
    2
    3
    export default eventModule({
    4
    type: EventType.Discord,
    5
    execute: async (message) => {
    6
    console.log(`${message.user} said`, message.content)
    7
    },
    8
    });
    - \ No newline at end of file + \ No newline at end of file diff --git a/es/v4/reference/plugins/index.html b/es/v4/reference/plugins/index.html index 5d2dc62e5..aec56cc53 100644 --- a/es/v4/reference/plugins/index.html +++ b/es/v4/reference/plugins/index.html @@ -109,4 +109,4 @@ plugin chain.

    Plugins also carry an instance of all of your dependencies. Use them and use them as you please! For example, creating a plugin which logs which user uses your command

    -
    1
    import { commandModule, CommandControlPlugin, CommandType } from '@sern/handler'
    2
    export const log = CommandControlPlugin((ctx, sdt) => {
    3
    sdt
    4
    .deps['@sern/logger']
    5
    .info({ message: `${ctx.user.id} used this command from ${ctx.guild.id}` });
    6
    })
    \ No newline at end of file +
    1
    import { commandModule, CommandControlPlugin, CommandType } from '@sern/handler'
    2
    export const log = CommandControlPlugin((ctx, sdt) => {
    3
    sdt
    4
    .deps['@sern/logger']
    5
    .info({ message: `${ctx.user.id} used this command from ${ctx.guild.id}` });
    6
    })
    \ No newline at end of file diff --git a/es/v4/reference/presence/index.html b/es/v4/reference/presence/index.html index 4dc3dca34..582d49526 100644 --- a/es/v4/reference/presence/index.html +++ b/es/v4/reference/presence/index.html @@ -57,4 +57,4 @@ An example of this is shuffling presences on intervals.

    23
    export default Presence.module({
    24
    execute: () => {
    25
    const [type, name, status] = statuses.at(0)!;
    26
    return Presence
    27
    //start your presence with this.
    28
    .of({ activities: [ { type, name } ], status })
    29
    .repeated(() => {
    30
    const [type, name, status] = [...shuffleArray(statuses)].shift()!;
    31
    return {
    32
    status,
    33
    activities: [{ type, name }]
    34
    };
    35
    }, 60_000); //repeat and setPresence with returned result every minute
    36
    }
    37
    })

    Inject dependencies

    ./src/presence.js
    1
    import { Presence } from '@sern/handler'
    2
    import { ActivityType } from 'discord.js';
    3
    -
    4
    const activity = { type: ActivityType.Listening, name: "what's bofa" };
    5
    export default Presence.module({
    6
    inject: ['@sern/logger'],
    7
    execute: (logger) => {
    8
    logger?.info({ message: "Presence changed" });
    9
    return Presence
    10
    .of({ activities: [activity], status: "idle" })
    11
    .once();
    12
    }
    13
    })
    \ No newline at end of file +
    4
    const activity = { type: ActivityType.Listening, name: "what's bofa" };
    5
    export default Presence.module({
    6
    inject: ['@sern/logger'],
    7
    execute: (logger) => {
    8
    logger?.info({ message: "Presence changed" });
    9
    return Presence
    10
    .of({ activities: [activity], status: "idle" })
    11
    .once();
    12
    }
    13
    })
    \ No newline at end of file diff --git a/es/v4/reference/project-layout/index.html b/es/v4/reference/project-layout/index.html index 94705ad60..660479889 100644 --- a/es/v4/reference/project-layout/index.html +++ b/es/v4/reference/project-layout/index.html @@ -44,4 +44,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Project Layout

    Esta página aún no está disponible en tu idioma.

    A project should look like this:

    • Directorysrc -
      • Directorycommands/
      • Directoryevents/
      • Directoryplugins/ # created automatically if running sern plugins
      • index.js
      • config.js # configuration for your entire application
    • .env
    • .gitignore
    • bun.lockb
    • package.json
    • README.md
    • sern.config.json
    • jsconfig.json # tsconfig.json if you are using typescript
    \ No newline at end of file +
  • .env
  • .gitignore
  • bun.lockb
  • package.json
  • README.md
  • sern.config.json
  • jsconfig.json # tsconfig.json if you are using typescript
  • \ No newline at end of file diff --git a/es/v4/reference/tasks/index.html b/es/v4/reference/tasks/index.html index bf8133664..b0dcf32fd 100644 --- a/es/v4/reference/tasks/index.html +++ b/es/v4/reference/tasks/index.html @@ -49,4 +49,4 @@ If you haven’t already, add the tasks directory to you
    3
    export default scheduledTask({
    4
    trigger: "* * * * *",
    5
    execute: (context) => {
    6
    console.log("cron cron")
    7
    }
    8
    })

    The trigger is a cron tab pattern, you can edit and test one here.

    \ No newline at end of file +deps['@sern/scheduler'].kill(uuid) will kill the task.

    \ No newline at end of file diff --git a/es/v4/snippets/command/index.html b/es/v4/snippets/command/index.html index f7e359ab7..d7100fbd4 100644 --- a/es/v4/snippets/command/index.html +++ b/es/v4/snippets/command/index.html @@ -42,4 +42,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Command

    Esta página aún no está disponible en tu idioma.

    src/commands/ping.js
    1
    import { commandModule, CommandType } from "@sern/handler";
    2
    -
    3
    export default commandModule({
    4
    type: CommandType.Both,
    5
    plugins: [],
    6
    description: "A ping command",
    7
    execute: async (ctx, sdt) => {
    8
    await ctx.reply("Pong 🏓");
    9
    },
    10
    });
    \ No newline at end of file +
    3
    export default commandModule({
    4
    type: CommandType.Both,
    5
    plugins: [],
    6
    description: "A ping command",
    7
    execute: async (ctx, sdt) => {
    8
    await ctx.reply("Pong 🏓");
    9
    },
    10
    });
    \ No newline at end of file diff --git a/es/v4/snippets/event/index.html b/es/v4/snippets/event/index.html index 0de1058ba..022918131 100644 --- a/es/v4/snippets/event/index.html +++ b/es/v4/snippets/event/index.html @@ -43,4 +43,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem; StarlightThemeProvider.updatePickers();

    Event

    Esta página aún no está disponible en tu idioma.

    src/events/ping.js
    1
    import { eventModule, EventType } from "@sern/handler";
    2
    import type { GuildMember } from "discord.js";
    3
    4
    export default eventModule({
    5
    type: EventType.Discord,
    6
    name: "guildMemberAdd",
    7
    async execute(member) {
    8
    },
    9
    });
    \ No newline at end of file +
    4
    export default eventModule({
    5
    type: EventType.Discord,
    6
    name: "guildMemberAdd",
    7
    async execute(member: GuildMember) {
    8
    // TODO: This should be inferred
    9
    if (member.pending) return;
    10
    },
    11
    });
    \ No newline at end of file diff --git a/es/v4/snippets/plugin/index.html b/es/v4/snippets/plugin/index.html index 4001f5447..ddf55e6de 100644 --- a/es/v4/snippets/plugin/index.html +++ b/es/v4/snippets/plugin/index.html @@ -42,4 +42,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Plugins

    Esta página aún no está disponible en tu idioma.

    1
    // This plugin only allows users with '182326315813306368' as their id to use this command.
    2
    import { CommandControlPlugin, CommandType, controller } from "@sern/handler";
    3
    import type { ModalSubmitInteraction } from "discord.js";
    4
    -
    5
    const OWNER = '182326315813306368';
    6
    export function ownerOnly() {
    7
    return CommandControlPlugin<CommandType.Slash>((ctx, sdt)=> {
    8
    if(ctx.user === OWNER)
    9
    return controller.next()
    10
    return controller.stop()
    11
    })
    12
    }
    \ No newline at end of file +
    5
    const OWNER = '182326315813306368';
    6
    export function ownerOnly() {
    7
    return CommandControlPlugin<CommandType.Slash>((ctx, sdt)=> {
    8
    if(ctx.user === OWNER)
    9
    return controller.next()
    10
    return controller.stop()
    11
    })
    12
    }
    \ No newline at end of file diff --git a/es/v4/snippets/presence/index.html b/es/v4/snippets/presence/index.html index 11c1a5d20..79e05681a 100644 --- a/es/v4/snippets/presence/index.html +++ b/es/v4/snippets/presence/index.html @@ -43,4 +43,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem; StarlightThemeProvider.updatePickers();

    Presence

    Esta página aún no está disponible en tu idioma.

    1
    import { Presence } from '@sern/handler'
    2
    import { ActivityType } from 'discord.js';
    3
    4
    const activity = { type: ActivityType.Listening, name: "what's bofa" };
    5
    -
    6
    export default Presence.module({
    7
    execute: () => {
    8
    return Presence
    9
    .of({ activities: [activity], status: "idle" })
    10
    .once();
    11
    }
    12
    })
    \ No newline at end of file +
    6
    export default Presence.module({
    7
    execute: () => {
    8
    return Presence
    9
    .of({ activities: [activity], status: "idle" })
    10
    .once();
    11
    }
    12
    })
    \ No newline at end of file diff --git a/es/v4/tools/localizer/index.html b/es/v4/tools/localizer/index.html index 829e259ea..03c2c453d 100644 --- a/es/v4/tools/localizer/index.html +++ b/es/v4/tools/localizer/index.html @@ -58,4 +58,4 @@ Create the directory assets/locals. Each json file in he
    1
    execute : (ctx, { deps }) => {
    2
    //the localizer object from makeDependencies
    3
    deps.localizer
    4
    // Returns the Spanish translation for 'salute.hello'
    5
    deps.localizer.translate("salute.hello", "es-ES");
    6
    }
    1
    import { local } from '@sern/localizer';
    2
    -
    3
    // Returns the Spanish translation for 'salute.hello'
    4
    const greeting = local('salute.hello', 'es-ES');
    \ No newline at end of file +
    3
    // Returns the Spanish translation for 'salute.hello'
    4
    const greeting = local('salute.hello', 'es-ES');
    \ No newline at end of file diff --git a/es/v4/tools/publisher/index.html b/es/v4/tools/publisher/index.html index 9eec3da58..8b951b5a3 100644 --- a/es/v4/tools/publisher/index.html +++ b/es/v4/tools/publisher/index.html @@ -112,4 +112,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;
  • Also able to use IntegrationContextType enum from @sern/publisher if you don’t want to use numbers.
  • - \ No newline at end of file + \ No newline at end of file diff --git a/es/v4/transition/from-v3/index.html b/es/v4/transition/from-v3/index.html index ed578f61b..3211cc8ed 100644 --- a/es/v4/transition/from-v3/index.html +++ b/es/v4/transition/from-v3/index.html @@ -71,4 +71,4 @@ publishing as a service

    Things marked internal are now removed from public api.

    -
    1
    import type { SernEmitter, CoreDependencies, Singleton } from "@sern/handler";
    2
    import type { SernEmitter, CoreDependencies } from "@sern/handler";
    3
    import type { SernLogger } from "./utils/Logger";
    4
    import type { Octokit } from "@octokit/rest";
    5
    declare global {
    6
    interface Dependencies extends CoreDependencies {
    7
    "@sern/logger": SernLogger;
    8
    "@sern/logger": Singleton<SernLogger>;
    9
    octokit: Octokit;
    10
    octokit: Singleton<Octokit>;
    11
    }
    12
    }
    13
    export {};
    \ No newline at end of file +
    1
    import type { SernEmitter, CoreDependencies, Singleton } from "@sern/handler";
    2
    import type { SernEmitter, CoreDependencies } from "@sern/handler";
    3
    import type { SernLogger } from "./utils/Logger";
    4
    import type { Octokit } from "@octokit/rest";
    5
    declare global {
    6
    interface Dependencies extends CoreDependencies {
    7
    "@sern/logger": SernLogger;
    8
    "@sern/logger": Singleton<SernLogger>;
    9
    octokit: Octokit;
    10
    octokit: Singleton<Octokit>;
    11
    }
    12
    }
    13
    export {};
    \ No newline at end of file diff --git a/index.html b/index.html index 561d64e5d..14ccc5523 100644 --- a/index.html +++ b/index.html @@ -38,6 +38,6 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem; Skip to content
    sern

    Create your dream Discord bot.

    sern is a framework for building Discord bots; Better DX and an ecosystem of packages & plugins.

    Showcase

    -
    SmokinWeed 💨

    SmokinWeed 💨

    Small moderation bot

    sern Community

    sern Community

    The bot used to manage sern Community

    ezbd

    ezbd

    A simple birthday reminder bot

    Bask

    Bask

    A discord music bot

    man-nomic

    man-nomic

    Displays LLM model information

    Discoin

    Discoin

    Fuel your server's engagement with a fun, easy to use, and simple economy bot!

    Albion Guide

    Albion Guide

    Gets info about The First Descendant Game.

    Vinci

    Vinci

    The discord bot for Mara Turing

    +
    Discoin

    Discoin

    Fuel your server's engagement with a fun, easy to use, and simple economy bot!

    Vinci

    Vinci

    The discord bot for Mara Turing

    man-nomic

    man-nomic

    Displays LLM model information

    sern Community

    sern Community

    The bot used to manage sern Community

    SmokinWeed 💨

    SmokinWeed 💨

    Small moderation bot

    ezbd

    ezbd

    A simple birthday reminder bot

    Bask

    Bask

    A discord music bot

    Albion Guide

    Albion Guide

    Gets info about The First Descendant Game.

    Features

    -

    Modular

    Take apart, build, or customize code with ease to create robust bots.

    Concise

    Commands are significantly smaller than other competitors. Write impactful, concise code.

    Familiar

    Code like a traditional command framework. The API is simple and resembles classic v12 command handlers.

    \ No newline at end of file +

    Modular

    Take apart, build, or customize code with ease to create robust bots.

    Concise

    Commands are significantly smaller than other competitors. Write impactful, concise code.

    Familiar

    Code like a traditional command framework. The API is simple and resembles classic v12 command handlers.

    \ No newline at end of file diff --git a/pagefind/fragment/en_15c0985.pf_fragment b/pagefind/fragment/en_15c0985.pf_fragment new file mode 100644 index 000000000..2f5500240 Binary files /dev/null and b/pagefind/fragment/en_15c0985.pf_fragment differ diff --git a/pagefind/fragment/en_2a1e6e2.pf_fragment b/pagefind/fragment/en_2a1e6e2.pf_fragment new file mode 100644 index 000000000..7fc636c54 Binary files /dev/null and b/pagefind/fragment/en_2a1e6e2.pf_fragment differ diff --git a/pagefind/fragment/en_2a999fc.pf_fragment b/pagefind/fragment/en_2a999fc.pf_fragment deleted file mode 100644 index 9f9f523a0..000000000 Binary files a/pagefind/fragment/en_2a999fc.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/en_3d91efb.pf_fragment b/pagefind/fragment/en_3d91efb.pf_fragment new file mode 100644 index 000000000..28384f9bc Binary files /dev/null and b/pagefind/fragment/en_3d91efb.pf_fragment differ diff --git a/pagefind/fragment/en_3dc7228.pf_fragment b/pagefind/fragment/en_3dc7228.pf_fragment new file mode 100644 index 000000000..af3e9998f Binary files /dev/null and b/pagefind/fragment/en_3dc7228.pf_fragment differ diff --git a/pagefind/fragment/en_3f1fbc3.pf_fragment b/pagefind/fragment/en_3f1fbc3.pf_fragment deleted file mode 100644 index 3fd42516f..000000000 Binary files a/pagefind/fragment/en_3f1fbc3.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/en_7497d19.pf_fragment b/pagefind/fragment/en_4b36714.pf_fragment similarity index 89% rename from pagefind/fragment/en_7497d19.pf_fragment rename to pagefind/fragment/en_4b36714.pf_fragment index 87cbcad01..699752ab5 100644 Binary files a/pagefind/fragment/en_7497d19.pf_fragment and b/pagefind/fragment/en_4b36714.pf_fragment differ diff --git a/pagefind/fragment/en_4e4652b.pf_fragment b/pagefind/fragment/en_4e4652b.pf_fragment deleted file mode 100644 index 8b984b57d..000000000 Binary files a/pagefind/fragment/en_4e4652b.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/en_54b285f.pf_fragment b/pagefind/fragment/en_54b285f.pf_fragment deleted file mode 100644 index 06493eece..000000000 Binary files a/pagefind/fragment/en_54b285f.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/en_d9b54ec.pf_fragment b/pagefind/fragment/en_593253f.pf_fragment similarity index 87% rename from pagefind/fragment/en_d9b54ec.pf_fragment rename to pagefind/fragment/en_593253f.pf_fragment index 811c82f2b..58baf33a8 100644 Binary files a/pagefind/fragment/en_d9b54ec.pf_fragment and b/pagefind/fragment/en_593253f.pf_fragment differ diff --git a/pagefind/fragment/en_678738f.pf_fragment b/pagefind/fragment/en_678738f.pf_fragment deleted file mode 100644 index 8c74d022f..000000000 Binary files a/pagefind/fragment/en_678738f.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/en_71edb1e.pf_fragment b/pagefind/fragment/en_71edb1e.pf_fragment deleted file mode 100644 index db9cff7ea..000000000 Binary files a/pagefind/fragment/en_71edb1e.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/en_779b80b.pf_fragment b/pagefind/fragment/en_779b80b.pf_fragment deleted file mode 100644 index 09c06541c..000000000 Binary files a/pagefind/fragment/en_779b80b.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/en_7d1d9ec.pf_fragment b/pagefind/fragment/en_7d1d9ec.pf_fragment deleted file mode 100644 index 342bc2372..000000000 Binary files a/pagefind/fragment/en_7d1d9ec.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/en_99f1ed9.pf_fragment b/pagefind/fragment/en_99f1ed9.pf_fragment new file mode 100644 index 000000000..359ec507f Binary files /dev/null and b/pagefind/fragment/en_99f1ed9.pf_fragment differ diff --git a/pagefind/fragment/en_9cc82db.pf_fragment b/pagefind/fragment/en_9cc82db.pf_fragment new file mode 100644 index 000000000..540a2a25c Binary files /dev/null and b/pagefind/fragment/en_9cc82db.pf_fragment differ diff --git a/pagefind/fragment/en_9e771b3.pf_fragment b/pagefind/fragment/en_9e771b3.pf_fragment deleted file mode 100644 index 2a03191ae..000000000 Binary files a/pagefind/fragment/en_9e771b3.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/en_a39b6b2.pf_fragment b/pagefind/fragment/en_a39b6b2.pf_fragment new file mode 100644 index 000000000..e2387f6b0 Binary files /dev/null and b/pagefind/fragment/en_a39b6b2.pf_fragment differ diff --git a/pagefind/fragment/en_b6594ee.pf_fragment b/pagefind/fragment/en_b6594ee.pf_fragment new file mode 100644 index 000000000..ca72dee03 Binary files /dev/null and b/pagefind/fragment/en_b6594ee.pf_fragment differ diff --git a/pagefind/fragment/en_bb3e167.pf_fragment b/pagefind/fragment/en_bb3e167.pf_fragment new file mode 100644 index 000000000..ced4e2b98 Binary files /dev/null and b/pagefind/fragment/en_bb3e167.pf_fragment differ diff --git a/pagefind/fragment/en_cd3d8b3.pf_fragment b/pagefind/fragment/en_cd3d8b3.pf_fragment new file mode 100644 index 000000000..4f43f6a35 Binary files /dev/null and b/pagefind/fragment/en_cd3d8b3.pf_fragment differ diff --git a/pagefind/fragment/en_d218992.pf_fragment b/pagefind/fragment/en_d218992.pf_fragment deleted file mode 100644 index 2d94ee0ac..000000000 Binary files a/pagefind/fragment/en_d218992.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/en_d244732.pf_fragment b/pagefind/fragment/en_d244732.pf_fragment deleted file mode 100644 index 3fc9e1c2d..000000000 Binary files a/pagefind/fragment/en_d244732.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/en_d44cae4.pf_fragment b/pagefind/fragment/en_d44cae4.pf_fragment deleted file mode 100644 index a4f350015..000000000 Binary files a/pagefind/fragment/en_d44cae4.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/en_d520c26.pf_fragment b/pagefind/fragment/en_d520c26.pf_fragment new file mode 100644 index 000000000..e935750fc Binary files /dev/null and b/pagefind/fragment/en_d520c26.pf_fragment differ diff --git a/pagefind/fragment/en_e37180d.pf_fragment b/pagefind/fragment/en_e37180d.pf_fragment deleted file mode 100644 index 2f325b8bf..000000000 Binary files a/pagefind/fragment/en_e37180d.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/en_ed88e2a.pf_fragment b/pagefind/fragment/en_ed88e2a.pf_fragment deleted file mode 100644 index e7c4be8e8..000000000 Binary files a/pagefind/fragment/en_ed88e2a.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/en_ee1a90c.pf_fragment b/pagefind/fragment/en_ee1a90c.pf_fragment new file mode 100644 index 000000000..67d8d25e6 Binary files /dev/null and b/pagefind/fragment/en_ee1a90c.pf_fragment differ diff --git a/pagefind/fragment/en_f68b1d4.pf_fragment b/pagefind/fragment/en_f68b1d4.pf_fragment new file mode 100644 index 000000000..fcf2ef9d3 Binary files /dev/null and b/pagefind/fragment/en_f68b1d4.pf_fragment differ diff --git a/pagefind/fragment/en_fc3d743.pf_fragment b/pagefind/fragment/en_fc3d743.pf_fragment new file mode 100644 index 000000000..4de53415a Binary files /dev/null and b/pagefind/fragment/en_fc3d743.pf_fragment differ diff --git a/pagefind/fragment/es_1226e89.pf_fragment b/pagefind/fragment/es_1226e89.pf_fragment new file mode 100644 index 000000000..3c8dcd169 Binary files /dev/null and b/pagefind/fragment/es_1226e89.pf_fragment differ diff --git a/pagefind/fragment/es_605c80d.pf_fragment b/pagefind/fragment/es_443f6d1.pf_fragment similarity index 88% rename from pagefind/fragment/es_605c80d.pf_fragment rename to pagefind/fragment/es_443f6d1.pf_fragment index 9bcabd96b..59960a0b3 100644 Binary files a/pagefind/fragment/es_605c80d.pf_fragment and b/pagefind/fragment/es_443f6d1.pf_fragment differ diff --git a/pagefind/fragment/es_8158a21.pf_fragment b/pagefind/fragment/es_446e6fc.pf_fragment similarity index 88% rename from pagefind/fragment/es_8158a21.pf_fragment rename to pagefind/fragment/es_446e6fc.pf_fragment index 455196947..09d7858f6 100644 Binary files a/pagefind/fragment/es_8158a21.pf_fragment and b/pagefind/fragment/es_446e6fc.pf_fragment differ diff --git a/pagefind/fragment/es_699eed8.pf_fragment b/pagefind/fragment/es_699eed8.pf_fragment new file mode 100644 index 000000000..3e6c21134 Binary files /dev/null and b/pagefind/fragment/es_699eed8.pf_fragment differ diff --git a/pagefind/fragment/es_7ea7f6c.pf_fragment b/pagefind/fragment/es_7ea7f6c.pf_fragment deleted file mode 100644 index 6d41b9137..000000000 Binary files a/pagefind/fragment/es_7ea7f6c.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/es_5ec0be8.pf_fragment b/pagefind/fragment/es_aa86791.pf_fragment similarity index 89% rename from pagefind/fragment/es_5ec0be8.pf_fragment rename to pagefind/fragment/es_aa86791.pf_fragment index b8b70b8a0..13b0e0e06 100644 Binary files a/pagefind/fragment/es_5ec0be8.pf_fragment and b/pagefind/fragment/es_aa86791.pf_fragment differ diff --git a/pagefind/fragment/es_aea647e.pf_fragment b/pagefind/fragment/es_aea647e.pf_fragment deleted file mode 100644 index 2e9509dae..000000000 Binary files a/pagefind/fragment/es_aea647e.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/es_b6cda01.pf_fragment b/pagefind/fragment/es_b6cda01.pf_fragment deleted file mode 100644 index 07ac47155..000000000 Binary files a/pagefind/fragment/es_b6cda01.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/es_b92cfa9.pf_fragment b/pagefind/fragment/es_b92cfa9.pf_fragment new file mode 100644 index 000000000..0749e396d Binary files /dev/null and b/pagefind/fragment/es_b92cfa9.pf_fragment differ diff --git a/pagefind/fragment/es_c2e1958.pf_fragment b/pagefind/fragment/es_c2e1958.pf_fragment deleted file mode 100644 index 2d816eb13..000000000 Binary files a/pagefind/fragment/es_c2e1958.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/es_c928404.pf_fragment b/pagefind/fragment/es_c928404.pf_fragment new file mode 100644 index 000000000..4655307e6 Binary files /dev/null and b/pagefind/fragment/es_c928404.pf_fragment differ diff --git a/pagefind/fragment/es_cfdbb33.pf_fragment b/pagefind/fragment/es_cfdbb33.pf_fragment new file mode 100644 index 000000000..3977270f4 Binary files /dev/null and b/pagefind/fragment/es_cfdbb33.pf_fragment differ diff --git a/pagefind/fragment/es_d25eee8.pf_fragment b/pagefind/fragment/es_d25eee8.pf_fragment new file mode 100644 index 000000000..7e2cd66d3 Binary files /dev/null and b/pagefind/fragment/es_d25eee8.pf_fragment differ diff --git a/pagefind/fragment/es_d969152.pf_fragment b/pagefind/fragment/es_d969152.pf_fragment deleted file mode 100644 index 8c5920fef..000000000 Binary files a/pagefind/fragment/es_d969152.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/es_f632ab2.pf_fragment b/pagefind/fragment/es_f632ab2.pf_fragment deleted file mode 100644 index 2b696807f..000000000 Binary files a/pagefind/fragment/es_f632ab2.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/es_2e18a7c.pf_fragment b/pagefind/fragment/es_fb951d4.pf_fragment similarity index 87% rename from pagefind/fragment/es_2e18a7c.pf_fragment rename to pagefind/fragment/es_fb951d4.pf_fragment index 6b7227cb3..c2294e668 100644 Binary files a/pagefind/fragment/es_2e18a7c.pf_fragment and b/pagefind/fragment/es_fb951d4.pf_fragment differ diff --git a/pagefind/fragment/tr_ea04a8d.pf_fragment b/pagefind/fragment/tr_02656f1.pf_fragment similarity index 89% rename from pagefind/fragment/tr_ea04a8d.pf_fragment rename to pagefind/fragment/tr_02656f1.pf_fragment index 849ab4f52..14f53fd9c 100644 Binary files a/pagefind/fragment/tr_ea04a8d.pf_fragment and b/pagefind/fragment/tr_02656f1.pf_fragment differ diff --git a/pagefind/fragment/tr_17b9348.pf_fragment b/pagefind/fragment/tr_17b9348.pf_fragment deleted file mode 100644 index fd503eab9..000000000 Binary files a/pagefind/fragment/tr_17b9348.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/tr_1e92986.pf_fragment b/pagefind/fragment/tr_1e92986.pf_fragment deleted file mode 100644 index 91ec0a6ea..000000000 Binary files a/pagefind/fragment/tr_1e92986.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/tr_23f3f03.pf_fragment b/pagefind/fragment/tr_23f3f03.pf_fragment new file mode 100644 index 000000000..560023442 Binary files /dev/null and b/pagefind/fragment/tr_23f3f03.pf_fragment differ diff --git a/pagefind/fragment/tr_26bfdc0.pf_fragment b/pagefind/fragment/tr_26bfdc0.pf_fragment deleted file mode 100644 index bb99aa3a8..000000000 Binary files a/pagefind/fragment/tr_26bfdc0.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/tr_328933f.pf_fragment b/pagefind/fragment/tr_328933f.pf_fragment deleted file mode 100644 index 80f3c98b5..000000000 Binary files a/pagefind/fragment/tr_328933f.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/tr_40b1c7b.pf_fragment b/pagefind/fragment/tr_40b1c7b.pf_fragment deleted file mode 100644 index b024ecc2c..000000000 Binary files a/pagefind/fragment/tr_40b1c7b.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/tr_6a47f13.pf_fragment b/pagefind/fragment/tr_6a47f13.pf_fragment new file mode 100644 index 000000000..8d6781298 Binary files /dev/null and b/pagefind/fragment/tr_6a47f13.pf_fragment differ diff --git a/pagefind/fragment/tr_54ee77f.pf_fragment b/pagefind/fragment/tr_6ed1aa6.pf_fragment similarity index 86% rename from pagefind/fragment/tr_54ee77f.pf_fragment rename to pagefind/fragment/tr_6ed1aa6.pf_fragment index 5b0ee082c..22296a83f 100644 Binary files a/pagefind/fragment/tr_54ee77f.pf_fragment and b/pagefind/fragment/tr_6ed1aa6.pf_fragment differ diff --git a/pagefind/fragment/tr_8f9f68e.pf_fragment b/pagefind/fragment/tr_8f9f68e.pf_fragment new file mode 100644 index 000000000..852019555 Binary files /dev/null and b/pagefind/fragment/tr_8f9f68e.pf_fragment differ diff --git a/pagefind/fragment/tr_954643b.pf_fragment b/pagefind/fragment/tr_954643b.pf_fragment deleted file mode 100644 index 7555941e1..000000000 Binary files a/pagefind/fragment/tr_954643b.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/tr_b168e93.pf_fragment b/pagefind/fragment/tr_b168e93.pf_fragment new file mode 100644 index 000000000..914bcab25 Binary files /dev/null and b/pagefind/fragment/tr_b168e93.pf_fragment differ diff --git a/pagefind/fragment/tr_c8efa2a.pf_fragment b/pagefind/fragment/tr_c8efa2a.pf_fragment new file mode 100644 index 000000000..bba67646e Binary files /dev/null and b/pagefind/fragment/tr_c8efa2a.pf_fragment differ diff --git a/pagefind/fragment/tr_f030efc.pf_fragment b/pagefind/fragment/tr_f030efc.pf_fragment new file mode 100644 index 000000000..433d47e9e Binary files /dev/null and b/pagefind/fragment/tr_f030efc.pf_fragment differ diff --git a/pagefind/fragment/tr_f718c46.pf_fragment b/pagefind/fragment/tr_f718c46.pf_fragment new file mode 100644 index 000000000..4d96e7bec Binary files /dev/null and b/pagefind/fragment/tr_f718c46.pf_fragment differ diff --git a/pagefind/fragment/tr_3d96946.pf_fragment b/pagefind/fragment/tr_fadaa32.pf_fragment similarity index 86% rename from pagefind/fragment/tr_3d96946.pf_fragment rename to pagefind/fragment/tr_fadaa32.pf_fragment index 056c3bb4f..4ac2ff611 100644 Binary files a/pagefind/fragment/tr_3d96946.pf_fragment and b/pagefind/fragment/tr_fadaa32.pf_fragment differ diff --git a/pagefind/fragment/tr_fc1c3bf.pf_fragment b/pagefind/fragment/tr_fc1c3bf.pf_fragment deleted file mode 100644 index 5bce30bcb..000000000 Binary files a/pagefind/fragment/tr_fc1c3bf.pf_fragment and /dev/null differ diff --git a/pagefind/index/en_2efeef1.pf_index b/pagefind/index/en_2efeef1.pf_index deleted file mode 100644 index 835ca3e8d..000000000 Binary files a/pagefind/index/en_2efeef1.pf_index and /dev/null differ diff --git a/pagefind/index/en_53752f2.pf_index b/pagefind/index/en_53752f2.pf_index new file mode 100644 index 000000000..208aa892c Binary files /dev/null and b/pagefind/index/en_53752f2.pf_index differ diff --git a/pagefind/index/en_89726ec.pf_index b/pagefind/index/en_89726ec.pf_index new file mode 100644 index 000000000..63cdc040e Binary files /dev/null and b/pagefind/index/en_89726ec.pf_index differ diff --git a/pagefind/index/en_9beb1e5.pf_index b/pagefind/index/en_9beb1e5.pf_index deleted file mode 100644 index efce72da6..000000000 Binary files a/pagefind/index/en_9beb1e5.pf_index and /dev/null differ diff --git a/pagefind/index/en_9f8ec2a.pf_index b/pagefind/index/en_9f8ec2a.pf_index new file mode 100644 index 000000000..7101047c7 Binary files /dev/null and b/pagefind/index/en_9f8ec2a.pf_index differ diff --git a/pagefind/index/en_e8172a8.pf_index b/pagefind/index/en_e8172a8.pf_index deleted file mode 100644 index 42c051c86..000000000 Binary files a/pagefind/index/en_e8172a8.pf_index and /dev/null differ diff --git a/pagefind/index/en_e8a7bff.pf_index b/pagefind/index/en_e8a7bff.pf_index new file mode 100644 index 000000000..9ed23d529 Binary files /dev/null and b/pagefind/index/en_e8a7bff.pf_index differ diff --git a/pagefind/index/en_f3b7f2d.pf_index b/pagefind/index/en_f3b7f2d.pf_index deleted file mode 100644 index a0d6190ca..000000000 Binary files a/pagefind/index/en_f3b7f2d.pf_index and /dev/null differ diff --git a/pagefind/index/es_3b1126c.pf_index b/pagefind/index/es_3b1126c.pf_index new file mode 100644 index 000000000..6e66623d0 Binary files /dev/null and b/pagefind/index/es_3b1126c.pf_index differ diff --git a/pagefind/index/es_a09677d.pf_index b/pagefind/index/es_a09677d.pf_index deleted file mode 100644 index 5a861e4de..000000000 Binary files a/pagefind/index/es_a09677d.pf_index and /dev/null differ diff --git a/pagefind/index/es_a4c2c67.pf_index b/pagefind/index/es_a4c2c67.pf_index new file mode 100644 index 000000000..ae1a11e39 Binary files /dev/null and b/pagefind/index/es_a4c2c67.pf_index differ diff --git a/pagefind/index/es_acea13f.pf_index b/pagefind/index/es_acea13f.pf_index deleted file mode 100644 index 27787532e..000000000 Binary files a/pagefind/index/es_acea13f.pf_index and /dev/null differ diff --git a/pagefind/index/es_e24e1fc.pf_index b/pagefind/index/es_e24e1fc.pf_index new file mode 100644 index 000000000..a0b878f11 Binary files /dev/null and b/pagefind/index/es_e24e1fc.pf_index differ diff --git a/pagefind/index/es_e496f4b.pf_index b/pagefind/index/es_e496f4b.pf_index new file mode 100644 index 000000000..dac67cca3 Binary files /dev/null and b/pagefind/index/es_e496f4b.pf_index differ diff --git a/pagefind/index/es_ea67693.pf_index b/pagefind/index/es_ea67693.pf_index deleted file mode 100644 index ca84a422c..000000000 Binary files a/pagefind/index/es_ea67693.pf_index and /dev/null differ diff --git a/pagefind/index/es_f25c311.pf_index b/pagefind/index/es_f25c311.pf_index deleted file mode 100644 index bcae275a1..000000000 Binary files a/pagefind/index/es_f25c311.pf_index and /dev/null differ diff --git a/pagefind/index/tr_12cdaf5.pf_index b/pagefind/index/tr_12cdaf5.pf_index new file mode 100644 index 000000000..79d0a0711 Binary files /dev/null and b/pagefind/index/tr_12cdaf5.pf_index differ diff --git a/pagefind/index/tr_1962581.pf_index b/pagefind/index/tr_1962581.pf_index deleted file mode 100644 index d1df3eea6..000000000 Binary files a/pagefind/index/tr_1962581.pf_index and /dev/null differ diff --git a/pagefind/index/tr_2d6b257.pf_index b/pagefind/index/tr_2d6b257.pf_index deleted file mode 100644 index 9a2e918c4..000000000 Binary files a/pagefind/index/tr_2d6b257.pf_index and /dev/null differ diff --git a/pagefind/index/tr_41dd3d4.pf_index b/pagefind/index/tr_41dd3d4.pf_index deleted file mode 100644 index 1a92c2f78..000000000 Binary files a/pagefind/index/tr_41dd3d4.pf_index and /dev/null differ diff --git a/pagefind/index/tr_78db498.pf_index b/pagefind/index/tr_78db498.pf_index deleted file mode 100644 index 227723e34..000000000 Binary files a/pagefind/index/tr_78db498.pf_index and /dev/null differ diff --git a/pagefind/index/tr_c932176.pf_index b/pagefind/index/tr_c932176.pf_index new file mode 100644 index 000000000..b996f83ac Binary files /dev/null and b/pagefind/index/tr_c932176.pf_index differ diff --git a/pagefind/index/tr_d981c28.pf_index b/pagefind/index/tr_d981c28.pf_index new file mode 100644 index 000000000..2c6a4c3cf Binary files /dev/null and b/pagefind/index/tr_d981c28.pf_index differ diff --git a/pagefind/index/tr_e2a06ef.pf_index b/pagefind/index/tr_e2a06ef.pf_index new file mode 100644 index 000000000..7c43c4aff Binary files /dev/null and b/pagefind/index/tr_e2a06ef.pf_index differ diff --git a/pagefind/pagefind-entry.json b/pagefind/pagefind-entry.json index 86cea4137..b763f8ad4 100644 --- a/pagefind/pagefind-entry.json +++ b/pagefind/pagefind-entry.json @@ -1 +1 @@ -{"version":"1.1.0","languages":{"es":{"hash":"es_daa29c39f5","wasm":"es","page_count":189},"tr":{"hash":"tr_ac44eb4b4b","wasm":"tr","page_count":189},"en":{"hash":"en_362a995dfa","wasm":"en","page_count":191}}} \ No newline at end of file +{"version":"1.1.0","languages":{"es":{"hash":"es_47b4eeab57","wasm":"es","page_count":189},"tr":{"hash":"tr_d94318b3f9","wasm":"tr","page_count":189},"en":{"hash":"en_fc20d9f8bf","wasm":"en","page_count":191}}} \ No newline at end of file diff --git a/pagefind/pagefind.en_362a995dfa.pf_meta b/pagefind/pagefind.en_362a995dfa.pf_meta deleted file mode 100644 index 89525d0c8..000000000 Binary files a/pagefind/pagefind.en_362a995dfa.pf_meta and /dev/null differ diff --git a/pagefind/pagefind.en_fc20d9f8bf.pf_meta b/pagefind/pagefind.en_fc20d9f8bf.pf_meta new file mode 100644 index 000000000..58cb0be2a Binary files /dev/null and b/pagefind/pagefind.en_fc20d9f8bf.pf_meta differ diff --git a/pagefind/pagefind.es_47b4eeab57.pf_meta b/pagefind/pagefind.es_47b4eeab57.pf_meta new file mode 100644 index 000000000..0d310a4ec Binary files /dev/null and b/pagefind/pagefind.es_47b4eeab57.pf_meta differ diff --git a/pagefind/pagefind.es_daa29c39f5.pf_meta b/pagefind/pagefind.es_daa29c39f5.pf_meta deleted file mode 100644 index e1ed5946f..000000000 Binary files a/pagefind/pagefind.es_daa29c39f5.pf_meta and /dev/null differ diff --git a/pagefind/pagefind.tr_ac44eb4b4b.pf_meta b/pagefind/pagefind.tr_ac44eb4b4b.pf_meta deleted file mode 100644 index 5aa7407c2..000000000 Binary files a/pagefind/pagefind.tr_ac44eb4b4b.pf_meta and /dev/null differ diff --git a/pagefind/pagefind.tr_d94318b3f9.pf_meta b/pagefind/pagefind.tr_d94318b3f9.pf_meta new file mode 100644 index 000000000..1bd36b069 Binary files /dev/null and b/pagefind/pagefind.tr_d94318b3f9.pf_meta differ diff --git a/plugins/index.html b/plugins/index.html index a1b841e88..b7a39494c 100644 --- a/plugins/index.html +++ b/plugins/index.html @@ -38,23 +38,23 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem; Skip to content
    sern

    Plugins

    -First time here? View plugins

    confirmation

    Asks the user for a confirmation msg before executing the command

    fromCallback

    fromCallback turns a callback into a plugin result. +First time here? View plugins

    confirmation

    Asks the user for a confirmation msg before executing the command

    fromCallback

    fromCallback turns a callback into a plugin result. if the callback returns truthy value, plugin continues. This control plugin works for every command type. The arguments of the callback -mirror…

    \ No newline at end of file diff --git a/tr/blog/1.2.0/index.html b/tr/blog/1.2.0/index.html index dc39dd376..3d304ddb4 100644 --- a/tr/blog/1.2.0/index.html +++ b/tr/blog/1.2.0/index.html @@ -83,4 +83,4 @@ Feel free to use TypeScript experimental decorators to augment and customize you \ No newline at end of file + \ No newline at end of file diff --git a/tr/blog/2.0.0/index.html b/tr/blog/2.0.0/index.html index a5ae883c0..5180f855a 100644 --- a/tr/blog/2.0.0/index.html +++ b/tr/blog/2.0.0/index.html @@ -104,4 +104,4 @@ All deprecation warnings from previous versions have taken effect, and are remov

    Including the previous section, some names to symbols and data structures were altered to be better represented. view changelog

    Context refactoring

    -

    The context data structure has been internally altered to represent its dynamics better.

    \ No newline at end of file +

    The context data structure has been internally altered to represent its dynamics better.

    \ No newline at end of file diff --git a/tr/blog/2.5.0/index.html b/tr/blog/2.5.0/index.html index 57fd3089d..fbc35a269 100644 --- a/tr/blog/2.5.0/index.html +++ b/tr/blog/2.5.0/index.html @@ -76,4 +76,4 @@ What does this mean? -

    This will probably be the last breaking change in a while. Thanks for using sern!

    \ No newline at end of file +

    This will probably be the last breaking change in a while. Thanks for using sern!

    \ No newline at end of file diff --git a/tr/blog/3.0.0/index.html b/tr/blog/3.0.0/index.html index 6eda6fa87..206356590 100644 --- a/tr/blog/3.0.0/index.html +++ b/tr/blog/3.0.0/index.html @@ -162,4 +162,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;
  • Removed all previous marked deprecations in v3
  • ModuleStore will be removed as a dependency in v4. The only way to access modules should be through ModuleManager
  • Default Dependencies will be made internal in the v4. Users should only have access to its interface / contract
  • - \ No newline at end of file + \ No newline at end of file diff --git a/tr/blog/new-logo/index.html b/tr/blog/new-logo/index.html index c4e4f8eba..45d7fecd4 100644 --- a/tr/blog/new-logo/index.html +++ b/tr/blog/new-logo/index.html @@ -58,4 +58,4 @@ And here we are!

    sern logo

    Pretty nice!

    By the way, we have animations and variations on the way, so make sure to stay updated in the discord server!

    -

    Finally, from the entire sern team, thank you for sticking around ❤️

    \ No newline at end of file +

    Finally, from the entire sern team, thank you for sticking around ❤️

    \ No newline at end of file diff --git a/tr/blog/railway-deploy/index.html b/tr/blog/railway-deploy/index.html index aefcb3855..4e02a62c4 100644 --- a/tr/blog/railway-deploy/index.html +++ b/tr/blog/railway-deploy/index.html @@ -53,4 +53,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Deploy

    Once you’ve added your environment variables, click the “Deploy” button, and Railway will start deploying your bot. Once the deployment is complete, you’ll be able to see your bot’s URL and logs.

    -

    That’s it! Your bot is now deployed and running on Railway. If you have any issues or questions, feel free to ask in the sern Discord server.

    \ No newline at end of file +

    That’s it! Your bot is now deployed and running on Railway. If you have any issues or questions, feel free to ask in the sern Discord server.

    \ No newline at end of file diff --git a/tr/index.html b/tr/index.html index 2ee5926ec..c2f42b30c 100644 --- a/tr/index.html +++ b/tr/index.html @@ -38,6 +38,6 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem; İçeriğe geç
    sern

    Create your dream Discord bot.

    sern is a framework for building Discord bots; Better DX and an ecosystem of packages & plugins.

    Showcase

    -
    ezbd

    ezbd

    A simple birthday reminder bot

    man-nomic

    man-nomic

    Displays LLM model information

    Vinci

    Vinci

    The discord bot for Mara Turing

    sern Community

    sern Community

    The bot used to manage sern Community

    SmokinWeed 💨

    SmokinWeed 💨

    Small moderation bot

    Bask

    Bask

    A discord music bot

    Discoin

    Discoin

    Fuel your server's engagement with a fun, easy to use, and simple economy bot!

    Albion Guide

    Albion Guide

    Gets info about The First Descendant Game.

    +
    Vinci

    Vinci

    The discord bot for Mara Turing

    man-nomic

    man-nomic

    Displays LLM model information

    sern Community

    sern Community

    The bot used to manage sern Community

    Bask

    Bask

    A discord music bot

    Discoin

    Discoin

    Fuel your server's engagement with a fun, easy to use, and simple economy bot!

    ezbd

    ezbd

    A simple birthday reminder bot

    SmokinWeed 💨

    SmokinWeed 💨

    Small moderation bot

    Albion Guide

    Albion Guide

    Gets info about The First Descendant Game.

    Features

    -

    Modular

    Take apart, build, or customize code with ease to create robust bots.

    Concise

    Commands are significantly smaller than other competitors. Write impactful, concise code.

    Familiar

    Code like a traditional command framework. The API is simple and resembles classic v12 command handlers.

    \ No newline at end of file +

    Modular

    Take apart, build, or customize code with ease to create robust bots.

    Concise

    Commands are significantly smaller than other competitors. Write impactful, concise code.

    Familiar

    Code like a traditional command framework. The API is simple and resembles classic v12 command handlers.

    \ No newline at end of file diff --git a/tr/v3/api/classes/context/index.html b/tr/v3/api/classes/context/index.html index d89f93899..36ea064a9 100644 --- a/tr/v3/api/classes/context/index.html +++ b/tr/v3/api/classes/context/index.html @@ -222,4 +222,4 @@ else, interaction.user

    Overrides

    CoreContext.wrap

    Source

    -

    src/core/structures/context.ts:113

    \ No newline at end of file +

    src/core/structures/context.ts:113

    \ No newline at end of file diff --git a/tr/v3/api/classes/modulestore/index.html b/tr/v3/api/classes/modulestore/index.html index dd06dac5b..7b86c9f7f 100644 --- a/tr/v3/api/classes/modulestore/index.html +++ b/tr/v3/api/classes/modulestore/index.html @@ -61,4 +61,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    metadata: WeakMap<Module, CommandMeta>

    Source

    -

    src/core/structures/module-store.ts:9

    \ No newline at end of file +

    src/core/structures/module-store.ts:9

    \ No newline at end of file diff --git a/tr/v3/api/enumerations/commandtype/index.html b/tr/v3/api/enumerations/commandtype/index.html index 10f2446d6..2a56dba2d 100644 --- a/tr/v3/api/enumerations/commandtype/index.html +++ b/tr/v3/api/enumerations/commandtype/index.html @@ -129,4 +129,4 @@ A bitfield that discriminates command modules

    UserSelect: 128

    Source

    -

    src/core/structures/enums.ts:26

    \ No newline at end of file +

    src/core/structures/enums.ts:26

    \ No newline at end of file diff --git a/tr/v3/api/enumerations/eventtype/index.html b/tr/v3/api/enumerations/eventtype/index.html index 70be2a3da..ad8384a8a 100644 --- a/tr/v3/api/enumerations/eventtype/index.html +++ b/tr/v3/api/enumerations/eventtype/index.html @@ -68,4 +68,4 @@ Could be for example, process events, database events

    The EventType for handling sern events

    Source

    -

    src/core/structures/enums.ts:55

    \ No newline at end of file +

    src/core/structures/enums.ts:55

    \ No newline at end of file diff --git a/tr/v3/api/enumerations/payloadtype/index.html b/tr/v3/api/enumerations/payloadtype/index.html index 8f25f44ae..327a6dcc0 100644 --- a/tr/v3/api/enumerations/payloadtype/index.html +++ b/tr/v3/api/enumerations/payloadtype/index.html @@ -64,4 +64,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    The PayloadType for a SernEmitter warning event

    Source

    -

    src/core/structures/enums.ts:102

    \ No newline at end of file +

    src/core/structures/enums.ts:102

    \ No newline at end of file diff --git a/tr/v3/api/enumerations/plugintype/index.html b/tr/v3/api/enumerations/plugintype/index.html index 906a7d5cb..1ba37689c 100644 --- a/tr/v3/api/enumerations/plugintype/index.html +++ b/tr/v3/api/enumerations/plugintype/index.html @@ -59,4 +59,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    The PluginType for InitPlugins

    Source

    -

    src/core/structures/enums.ts:81

    \ No newline at end of file +

    src/core/structures/enums.ts:81

    \ No newline at end of file diff --git a/tr/v3/api/functions/commandcontrolplugin/index.html b/tr/v3/api/functions/commandcontrolplugin/index.html index 51943a6e1..fbf1305e7 100644 --- a/tr/v3/api/functions/commandcontrolplugin/index.html +++ b/tr/v3/api/functions/commandcontrolplugin/index.html @@ -54,4 +54,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    2.5.0 @PURE

    Source

    -

    src/core/create-plugins.ts:37

    \ No newline at end of file +

    src/core/create-plugins.ts:37

    \ No newline at end of file diff --git a/tr/v3/api/functions/commandinitplugin/index.html b/tr/v3/api/functions/commandinitplugin/index.html index e072e33bd..8b0dbc525 100644 --- a/tr/v3/api/functions/commandinitplugin/index.html +++ b/tr/v3/api/functions/commandinitplugin/index.html @@ -54,4 +54,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    2.5.0 @PURE

    Source

    -

    src/core/create-plugins.ts:28

    \ No newline at end of file +

    src/core/create-plugins.ts:28

    \ No newline at end of file diff --git a/tr/v3/api/functions/commandmodule/index.html b/tr/v3/api/functions/commandmodule/index.html index d7714e4d0..a7a572de4 100644 --- a/tr/v3/api/functions/commandmodule/index.html +++ b/tr/v3/api/functions/commandmodule/index.html @@ -51,4 +51,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Since

    1.0.0 The wrapper function to define command modules for sern

    Source

    -

    src/core/modules.ts:19

    \ No newline at end of file +

    src/core/modules.ts:19

    \ No newline at end of file diff --git a/tr/v3/api/functions/discordevent/index.html b/tr/v3/api/functions/discordevent/index.html index e1c4bf646..d3d238cfe 100644 --- a/tr/v3/api/functions/discordevent/index.html +++ b/tr/v3/api/functions/discordevent/index.html @@ -58,4 +58,4 @@ where typings can be very bad.

    EventModule

    Experimental

    Source

    -

    src/core/modules.ts:47

    \ No newline at end of file +

    src/core/modules.ts:47

    \ No newline at end of file diff --git a/tr/v3/api/functions/discordeventcontrolplugin/index.html b/tr/v3/api/functions/discordeventcontrolplugin/index.html index 5b4a4677a..565fa7612 100644 --- a/tr/v3/api/functions/discordeventcontrolplugin/index.html +++ b/tr/v3/api/functions/discordeventcontrolplugin/index.html @@ -57,4 +57,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    A specialized function for creating control plugins with discord.js ClientEvents. Will probably be moved one day!

    Source

    -

    src/core/create-plugins.ts:58

    \ No newline at end of file +

    src/core/create-plugins.ts:58

    \ No newline at end of file diff --git a/tr/v3/api/functions/eventcontrolplugin/index.html b/tr/v3/api/functions/eventcontrolplugin/index.html index 2284d0bb9..691ad5f61 100644 --- a/tr/v3/api/functions/eventcontrolplugin/index.html +++ b/tr/v3/api/functions/eventcontrolplugin/index.html @@ -54,4 +54,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    2.5.0 @PURE

    Source

    -

    src/core/create-plugins.ts:46

    \ No newline at end of file +

    src/core/create-plugins.ts:46

    \ No newline at end of file diff --git a/tr/v3/api/functions/eventinitplugin/index.html b/tr/v3/api/functions/eventinitplugin/index.html index f3230b42d..1c26a5ff0 100644 --- a/tr/v3/api/functions/eventinitplugin/index.html +++ b/tr/v3/api/functions/eventinitplugin/index.html @@ -54,4 +54,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    2.5.0 @PURE

    Source

    -

    src/core/create-plugins.ts:19

    \ No newline at end of file +

    src/core/create-plugins.ts:19

    \ No newline at end of file diff --git a/tr/v3/api/functions/eventmodule/index.html b/tr/v3/api/functions/eventmodule/index.html index d051321f2..72751b43d 100644 --- a/tr/v3/api/functions/eventmodule/index.html +++ b/tr/v3/api/functions/eventmodule/index.html @@ -52,4 +52,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    1.0.0 The wrapper function to define event modules for sern

    Source

    -

    src/core/modules.ts:32

    \ No newline at end of file +

    src/core/modules.ts:32

    \ No newline at end of file diff --git a/tr/v3/api/functions/makedependencies/index.html b/tr/v3/api/functions/makedependencies/index.html index dbc1469e1..102574a9a 100644 --- a/tr/v3/api/functions/makedependencies/index.html +++ b/tr/v3/api/functions/makedependencies/index.html @@ -51,4 +51,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Returns

    Promise<<V>(…keys) => IntoDependencies<V>>

    Source

    -

    src/core/ioc/base.ts:144

    \ No newline at end of file +

    src/core/ioc/base.ts:144

    \ No newline at end of file diff --git a/tr/v3/api/functions/makeplugin/index.html b/tr/v3/api/functions/makeplugin/index.html index 7fe991002..bf9e67eda 100644 --- a/tr/v3/api/functions/makeplugin/index.html +++ b/tr/v3/api/functions/makeplugin/index.html @@ -52,4 +52,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Returns

    Plugin<V>

    Source

    -

    src/core/create-plugins.ts:6

    \ No newline at end of file +

    src/core/create-plugins.ts:6

    \ No newline at end of file diff --git a/tr/v3/api/functions/service/index.html b/tr/v3/api/functions/service/index.html index 41ac99bcd..402697e43 100644 --- a/tr/v3/api/functions/service/index.html +++ b/tr/v3/api/functions/service/index.html @@ -60,4 +60,4 @@ Note: this method only works AFTER your container has been initiated

    Example

    1
    const client = Service('@sern/client');

    Source

    -

    src/core/ioc/dependency-injection.ts:37

    \ No newline at end of file +

    src/core/ioc/dependency-injection.ts:37

    \ No newline at end of file diff --git a/tr/v3/api/functions/services/index.html b/tr/v3/api/functions/services/index.html index 5b530607c..9269f80c1 100644 --- a/tr/v3/api/functions/services/index.html +++ b/tr/v3/api/functions/services/index.html @@ -55,4 +55,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    3.0.0 The plural version of Service

    Source

    -

    src/core/ioc/dependency-injection.ts:47

    \ No newline at end of file +

    src/core/ioc/dependency-injection.ts:47

    \ No newline at end of file diff --git a/tr/v3/api/functions/single/index.html b/tr/v3/api/functions/single/index.html index e03d54932..901d79de3 100644 --- a/tr/v3/api/functions/single/index.html +++ b/tr/v3/api/functions/single/index.html @@ -57,4 +57,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    2.0.0. Creates a singleton object.

    Source

    -

    src/core/ioc/dependency-injection.ts:11

    \ No newline at end of file +

    src/core/ioc/dependency-injection.ts:11

    \ No newline at end of file diff --git a/tr/v3/api/functions/transient/index.html b/tr/v3/api/functions/transient/index.html index b5d2d18b9..af354a21b 100644 --- a/tr/v3/api/functions/transient/index.html +++ b/tr/v3/api/functions/transient/index.html @@ -59,4 +59,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    2.0.0 Creates a transient object

    Source

    -

    src/core/ioc/dependency-injection.ts:21

    \ No newline at end of file +

    src/core/ioc/dependency-injection.ts:21

    \ No newline at end of file diff --git a/tr/v3/api/interfaces/bothcommand/index.html b/tr/v3/api/interfaces/bothcommand/index.html index 15111b35f..61f0ce562 100644 --- a/tr/v3/api/interfaces/bothcommand/index.html +++ b/tr/v3/api/interfaces/bothcommand/index.html @@ -117,4 +117,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:124

    \ No newline at end of file +

    src/types/core-modules.ts:124

    \ No newline at end of file diff --git a/tr/v3/api/interfaces/buttoncommand/index.html b/tr/v3/api/interfaces/buttoncommand/index.html index 041cdc5f5..98e71b709 100644 --- a/tr/v3/api/interfaces/buttoncommand/index.html +++ b/tr/v3/api/interfaces/buttoncommand/index.html @@ -102,4 +102,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:64

    \ No newline at end of file +

    src/types/core-modules.ts:64

    \ No newline at end of file diff --git a/tr/v3/api/interfaces/channelselectcommand/index.html b/tr/v3/api/interfaces/channelselectcommand/index.html index 86ed969c0..427d037fb 100644 --- a/tr/v3/api/interfaces/channelselectcommand/index.html +++ b/tr/v3/api/interfaces/channelselectcommand/index.html @@ -102,4 +102,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:74

    \ No newline at end of file +

    src/types/core-modules.ts:74

    \ No newline at end of file diff --git a/tr/v3/api/interfaces/commandmoduledefs/index.html b/tr/v3/api/interfaces/commandmoduledefs/index.html index 7f97475ee..b57939d6e 100644 --- a/tr/v3/api/interfaces/commandmoduledefs/index.html +++ b/tr/v3/api/interfaces/commandmoduledefs/index.html @@ -124,4 +124,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    8: ContextMenuMsg

    Source

    -

    src/types/core-modules.ts:153

    \ No newline at end of file +

    src/types/core-modules.ts:153

    \ No newline at end of file diff --git a/tr/v3/api/interfaces/contextmenumsg/index.html b/tr/v3/api/interfaces/contextmenumsg/index.html index 4f55280bd..5e115ae8d 100644 --- a/tr/v3/api/interfaces/contextmenumsg/index.html +++ b/tr/v3/api/interfaces/contextmenumsg/index.html @@ -102,4 +102,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:59

    \ No newline at end of file +

    src/types/core-modules.ts:59

    \ No newline at end of file diff --git a/tr/v3/api/interfaces/contextmenuuser/index.html b/tr/v3/api/interfaces/contextmenuuser/index.html index 5f3795e65..ae9a3a430 100644 --- a/tr/v3/api/interfaces/contextmenuuser/index.html +++ b/tr/v3/api/interfaces/contextmenuuser/index.html @@ -102,4 +102,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:54

    \ No newline at end of file +

    src/types/core-modules.ts:54

    \ No newline at end of file diff --git a/tr/v3/api/interfaces/controller/index.html b/tr/v3/api/interfaces/controller/index.html index 24c9d35f4..c2236e49c 100644 --- a/tr/v3/api/interfaces/controller/index.html +++ b/tr/v3/api/interfaces/controller/index.html @@ -58,4 +58,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Returns

    Err<void>

    Source

    -

    src/types/core-plugin.ts:60

    \ No newline at end of file +

    src/types/core-plugin.ts:60

    \ No newline at end of file diff --git a/tr/v3/api/interfaces/controlplugin/index.html b/tr/v3/api/interfaces/controlplugin/index.html index 9765e2008..aca6540a6 100644 --- a/tr/v3/api/interfaces/controlplugin/index.html +++ b/tr/v3/api/interfaces/controlplugin/index.html @@ -60,4 +60,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    type: Control

    Source

    -

    src/types/core-plugin.ts:72

    \ No newline at end of file +

    src/types/core-plugin.ts:72

    \ No newline at end of file diff --git a/tr/v3/api/interfaces/coredependencies/index.html b/tr/v3/api/interfaces/coredependencies/index.html index 6e973fbc6..104b61c71 100644 --- a/tr/v3/api/interfaces/coredependencies/index.html +++ b/tr/v3/api/interfaces/coredependencies/index.html @@ -95,4 +95,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Returns

    CoreModuleStore

    Source

    -

    src/types/ioc.ts:34

    \ No newline at end of file +

    src/types/ioc.ts:34

    \ No newline at end of file diff --git a/tr/v3/api/interfaces/coremodulestore/index.html b/tr/v3/api/interfaces/coremodulestore/index.html index 2a09ef3a1..b7154d0ad 100644 --- a/tr/v3/api/interfaces/coremodulestore/index.html +++ b/tr/v3/api/interfaces/coremodulestore/index.html @@ -55,4 +55,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    metadata: WeakMap<Module, CommandMeta>

    Source

    -

    src/core/contracts/module-store.ts:8

    \ No newline at end of file +

    src/core/contracts/module-store.ts:8

    \ No newline at end of file diff --git a/tr/v3/api/interfaces/discordeventcommand/index.html b/tr/v3/api/interfaces/discordeventcommand/index.html index b20242608..bc5f935e0 100644 --- a/tr/v3/api/interfaces/discordeventcommand/index.html +++ b/tr/v3/api/interfaces/discordeventcommand/index.html @@ -104,4 +104,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.execute

    Source

    -

    src/types/core-modules.ts:108

    \ No newline at end of file +

    src/types/core-modules.ts:108

    \ No newline at end of file diff --git a/tr/v3/api/interfaces/disposable/index.html b/tr/v3/api/interfaces/disposable/index.html index 7f11b0380..1848fbada 100644 --- a/tr/v3/api/interfaces/disposable/index.html +++ b/tr/v3/api/interfaces/disposable/index.html @@ -51,4 +51,4 @@ Let dependencies implement this to dispose and cleanup.

    Returns

    unknown

    Source

    -

    src/core/contracts/hooks.ts:15

    \ No newline at end of file +

    src/core/contracts/hooks.ts:15

    \ No newline at end of file diff --git a/tr/v3/api/interfaces/emitter/index.html b/tr/v3/api/interfaces/emitter/index.html index 858677c8f..3ae65401d 100644 --- a/tr/v3/api/interfaces/emitter/index.html +++ b/tr/v3/api/interfaces/emitter/index.html @@ -76,4 +76,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Returns

    this

    Source

    -

    src/core/contracts/emitter.ts:7

    \ No newline at end of file +

    src/core/contracts/emitter.ts:7

    \ No newline at end of file diff --git a/tr/v3/api/interfaces/errorhandling/index.html b/tr/v3/api/interfaces/errorhandling/index.html index dcf3aeedf..dd6ec48f2 100644 --- a/tr/v3/api/interfaces/errorhandling/index.html +++ b/tr/v3/api/interfaces/errorhandling/index.html @@ -66,4 +66,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Returns

    void

    Source

    -

    src/core/contracts/error-handling.ts:14

    \ No newline at end of file +

    src/core/contracts/error-handling.ts:14

    \ No newline at end of file diff --git a/tr/v3/api/interfaces/eventmoduledefs/index.html b/tr/v3/api/interfaces/eventmoduledefs/index.html index c8bcb77c5..59f79f523 100644 --- a/tr/v3/api/interfaces/eventmoduledefs/index.html +++ b/tr/v3/api/interfaces/eventmoduledefs/index.html @@ -61,4 +61,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    3: ExternalEventCommand

    Source

    -

    src/types/core-modules.ts:167

    \ No newline at end of file +

    src/types/core-modules.ts:167

    \ No newline at end of file diff --git a/tr/v3/api/interfaces/externaleventcommand/index.html b/tr/v3/api/interfaces/externaleventcommand/index.html index abbc87559..155a8c64d 100644 --- a/tr/v3/api/interfaces/externaleventcommand/index.html +++ b/tr/v3/api/interfaces/externaleventcommand/index.html @@ -109,4 +109,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.execute

    Source

    -

    src/types/core-modules.ts:50

    \ No newline at end of file +

    src/types/core-modules.ts:50

    \ No newline at end of file diff --git a/tr/v3/api/interfaces/init/index.html b/tr/v3/api/interfaces/init/index.html index 33395ffe6..c24cf02cd 100644 --- a/tr/v3/api/interfaces/init/index.html +++ b/tr/v3/api/interfaces/init/index.html @@ -51,4 +51,4 @@ Let dependencies implement this to initiate some logic.

    Returns

    unknown

    Source

    -

    src/core/contracts/hooks.ts:7

    \ No newline at end of file +

    src/core/contracts/hooks.ts:7

    \ No newline at end of file diff --git a/tr/v3/api/interfaces/initplugin/index.html b/tr/v3/api/interfaces/initplugin/index.html index 576cbecc7..239d418d6 100644 --- a/tr/v3/api/interfaces/initplugin/index.html +++ b/tr/v3/api/interfaces/initplugin/index.html @@ -60,4 +60,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    type: Init

    Source

    -

    src/types/core-plugin.ts:68

    \ No newline at end of file +

    src/types/core-plugin.ts:68

    \ No newline at end of file diff --git a/tr/v3/api/interfaces/logging/index.html b/tr/v3/api/interfaces/logging/index.html index 2150617b7..e79514696 100644 --- a/tr/v3/api/interfaces/logging/index.html +++ b/tr/v3/api/interfaces/logging/index.html @@ -88,4 +88,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Returns

    void

    Source

    -

    src/core/contracts/logging.ts:6

    \ No newline at end of file +

    src/core/contracts/logging.ts:6

    \ No newline at end of file diff --git a/tr/v3/api/interfaces/mentionableselectcommand/index.html b/tr/v3/api/interfaces/mentionableselectcommand/index.html index d20dc43c9..73cd02cb1 100644 --- a/tr/v3/api/interfaces/mentionableselectcommand/index.html +++ b/tr/v3/api/interfaces/mentionableselectcommand/index.html @@ -102,4 +102,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:84

    \ No newline at end of file +

    src/types/core-modules.ts:84

    \ No newline at end of file diff --git a/tr/v3/api/interfaces/modalsubmitcommand/index.html b/tr/v3/api/interfaces/modalsubmitcommand/index.html index 0f806a2e5..86d8e6591 100644 --- a/tr/v3/api/interfaces/modalsubmitcommand/index.html +++ b/tr/v3/api/interfaces/modalsubmitcommand/index.html @@ -102,4 +102,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:94

    \ No newline at end of file +

    src/types/core-modules.ts:94

    \ No newline at end of file diff --git a/tr/v3/api/interfaces/plugin/index.html b/tr/v3/api/interfaces/plugin/index.html index f7ec454cc..df50b0fca 100644 --- a/tr/v3/api/interfaces/plugin/index.html +++ b/tr/v3/api/interfaces/plugin/index.html @@ -60,4 +60,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    type: PluginType

    Source

    -

    src/types/core-plugin.ts:63

    \ No newline at end of file +

    src/types/core-plugin.ts:63

    \ No newline at end of file diff --git a/tr/v3/api/interfaces/roleselectcommand/index.html b/tr/v3/api/interfaces/roleselectcommand/index.html index a9a83af27..4253eadc9 100644 --- a/tr/v3/api/interfaces/roleselectcommand/index.html +++ b/tr/v3/api/interfaces/roleselectcommand/index.html @@ -102,4 +102,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:79

    \ No newline at end of file +

    src/types/core-modules.ts:79

    \ No newline at end of file diff --git a/tr/v3/api/interfaces/sernautocompletedata/index.html b/tr/v3/api/interfaces/sernautocompletedata/index.html index 826e92e8a..2d5770a80 100644 --- a/tr/v3/api/interfaces/sernautocompletedata/index.html +++ b/tr/v3/api/interfaces/sernautocompletedata/index.html @@ -110,4 +110,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    type: String | Integer | Number

    Source

    -

    src/types/core-modules.ts:173

    \ No newline at end of file +

    src/types/core-modules.ts:173

    \ No newline at end of file diff --git a/tr/v3/api/interfaces/serneventcommand/index.html b/tr/v3/api/interfaces/serneventcommand/index.html index b723b15c7..a556b97cf 100644 --- a/tr/v3/api/interfaces/serneventcommand/index.html +++ b/tr/v3/api/interfaces/serneventcommand/index.html @@ -104,4 +104,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.execute

    Source

    -

    src/types/core-modules.ts:44

    \ No newline at end of file +

    src/types/core-modules.ts:44

    \ No newline at end of file diff --git a/tr/v3/api/interfaces/serneventsmapping/index.html b/tr/v3/api/interfaces/serneventsmapping/index.html index 4009e9bc4..465a773c6 100644 --- a/tr/v3/api/interfaces/serneventsmapping/index.html +++ b/tr/v3/api/interfaces/serneventsmapping/index.html @@ -75,4 +75,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    warning: [Payload]

    Source

    -

    src/types/utility.ts:22

    \ No newline at end of file +

    src/types/utility.ts:22

    \ No newline at end of file diff --git a/tr/v3/api/interfaces/sernsubcommanddata/index.html b/tr/v3/api/interfaces/sernsubcommanddata/index.html index efe693da7..71dac12ac 100644 --- a/tr/v3/api/interfaces/sernsubcommanddata/index.html +++ b/tr/v3/api/interfaces/sernsubcommanddata/index.html @@ -105,4 +105,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    APIApplicationCommandOptionBase.type

    Source

    -

    src/types/core-modules.ts:208

    \ No newline at end of file +

    src/types/core-modules.ts:208

    \ No newline at end of file diff --git a/tr/v3/api/interfaces/sernsubcommandgroupdata/index.html b/tr/v3/api/interfaces/sernsubcommandgroupdata/index.html index dfc932ac3..c04cf6d13 100644 --- a/tr/v3/api/interfaces/sernsubcommandgroupdata/index.html +++ b/tr/v3/api/interfaces/sernsubcommandgroupdata/index.html @@ -112,4 +112,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    type: SubcommandGroup

    Source

    -

    src/types/core-modules.ts:213

    \ No newline at end of file +

    src/types/core-modules.ts:213

    \ No newline at end of file diff --git a/tr/v3/api/interfaces/slashcommand/index.html b/tr/v3/api/interfaces/slashcommand/index.html index 968084b3b..eb3f1ddee 100644 --- a/tr/v3/api/interfaces/slashcommand/index.html +++ b/tr/v3/api/interfaces/slashcommand/index.html @@ -110,4 +110,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:117

    \ No newline at end of file +

    src/types/core-modules.ts:117

    \ No newline at end of file diff --git a/tr/v3/api/interfaces/stringselectcommand/index.html b/tr/v3/api/interfaces/stringselectcommand/index.html index fc3d1e4de..c9aab5f61 100644 --- a/tr/v3/api/interfaces/stringselectcommand/index.html +++ b/tr/v3/api/interfaces/stringselectcommand/index.html @@ -102,4 +102,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:69

    \ No newline at end of file +

    src/types/core-modules.ts:69

    \ No newline at end of file diff --git a/tr/v3/api/interfaces/textcommand/index.html b/tr/v3/api/interfaces/textcommand/index.html index d8bf07460..70c368bbb 100644 --- a/tr/v3/api/interfaces/textcommand/index.html +++ b/tr/v3/api/interfaces/textcommand/index.html @@ -110,4 +110,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:111

    \ No newline at end of file +

    src/types/core-modules.ts:111

    \ No newline at end of file diff --git a/tr/v3/api/interfaces/userselectcommand/index.html b/tr/v3/api/interfaces/userselectcommand/index.html index e260e088d..8197beffd 100644 --- a/tr/v3/api/interfaces/userselectcommand/index.html +++ b/tr/v3/api/interfaces/userselectcommand/index.html @@ -102,4 +102,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:89

    \ No newline at end of file +

    src/types/core-modules.ts:89

    \ No newline at end of file diff --git a/tr/v3/api/interfaces/wrapper/index.html b/tr/v3/api/interfaces/wrapper/index.html index 73fef8d65..5e543385e 100644 --- a/tr/v3/api/interfaces/wrapper/index.html +++ b/tr/v3/api/interfaces/wrapper/index.html @@ -87,4 +87,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;
  • https://github.com/sern-handler/handler/pull/325
  • Source

    -

    src/types/core.ts:16

    \ No newline at end of file +

    src/types/core.ts:16

    \ No newline at end of file diff --git a/tr/v3/api/namespaces/presence/functions/module/index.html b/tr/v3/api/namespaces/presence/functions/module/index.html index e61ee1143..5f4f189a1 100644 --- a/tr/v3/api/namespaces/presence/functions/module/index.html +++ b/tr/v3/api/namespaces/presence/functions/module/index.html @@ -54,4 +54,4 @@ adjacent to the file where Sern.init is CALLED.

    Returns

    Config<T>

    Source

    -

    src/core/presences.ts:28

    \ No newline at end of file +

    src/core/presences.ts:28

    \ No newline at end of file diff --git a/tr/v3/api/namespaces/presence/functions/of/index.html b/tr/v3/api/namespaces/presence/functions/of/index.html index 8a73e8510..6345c20e5 100644 --- a/tr/v3/api/namespaces/presence/functions/of/index.html +++ b/tr/v3/api/namespaces/presence/functions/of/index.html @@ -97,4 +97,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    optional status: Status

    Source

    -

    src/core/presences.ts:37

    \ No newline at end of file +

    src/core/presences.ts:37

    \ No newline at end of file diff --git a/tr/v3/api/namespaces/presence/interfaces/result/index.html b/tr/v3/api/namespaces/presence/interfaces/result/index.html index 10bc3869e..c72394a8f 100644 --- a/tr/v3/api/namespaces/presence/interfaces/result/index.html +++ b/tr/v3/api/namespaces/presence/interfaces/result/index.html @@ -86,4 +86,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    optional status: Status

    Source

    -

    src/core/presences.ts:9

    \ No newline at end of file +

    src/core/presences.ts:9

    \ No newline at end of file diff --git a/tr/v3/api/namespaces/presence/type-aliases/config/index.html b/tr/v3/api/namespaces/presence/type-aliases/config/index.html index 56ec05b1d..081a1da4a 100644 --- a/tr/v3/api/namespaces/presence/type-aliases/config/index.html +++ b/tr/v3/api/namespaces/presence/type-aliases/config/index.html @@ -60,4 +60,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    optional inject: [...T]

    Source

    -

    src/core/presences.ts:17

    \ No newline at end of file +

    src/core/presences.ts:17

    \ No newline at end of file diff --git a/tr/v3/api/namespaces/sern/functions/init/index.html b/tr/v3/api/namespaces/sern/functions/init/index.html index 382333b42..c5069aac7 100644 --- a/tr/v3/api/namespaces/sern/functions/init/index.html +++ b/tr/v3/api/namespaces/sern/functions/init/index.html @@ -53,4 +53,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Example

    src/index.ts
    1
    Sern.init({
    2
    commands: 'dist/commands',
    3
    events: 'dist/events',
    4
    })

    Source

    -

    src/sern.ts:26

    \ No newline at end of file +

    src/sern.ts:26

    \ No newline at end of file diff --git a/tr/v3/api/readme/index.html b/tr/v3/api/readme/index.html index 5160bb3d7..ff30b5f52 100644 --- a/tr/v3/api/readme/index.html +++ b/tr/v3/api/readme/index.html @@ -130,4 +130,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;
  • makePlugin
  • single
  • transient
  • - \ No newline at end of file + \ No newline at end of file diff --git a/tr/v3/api/type-aliases/anycommandplugin/index.html b/tr/v3/api/type-aliases/anycommandplugin/index.html index af587bb81..d5f7b9590 100644 --- a/tr/v3/api/type-aliases/anycommandplugin/index.html +++ b/tr/v3/api/type-aliases/anycommandplugin/index.html @@ -45,4 +45,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    AnyCommandPlugin: ControlPlugin | InitPlugin<[InitArgs<Processed<CommandModule>>]>

    Source

    -

    src/types/core-plugin.ts:76

    \ No newline at end of file +

    src/types/core-plugin.ts:76

    \ No newline at end of file diff --git a/tr/v3/api/type-aliases/anyeventplugin/index.html b/tr/v3/api/type-aliases/anyeventplugin/index.html index 5c0631b67..25b2920a5 100644 --- a/tr/v3/api/type-aliases/anyeventplugin/index.html +++ b/tr/v3/api/type-aliases/anyeventplugin/index.html @@ -45,4 +45,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    AnyEventPlugin: ControlPlugin | InitPlugin<[InitArgs<Processed<EventModule>>]>

    Source

    -

    src/types/core-plugin.ts:77

    \ No newline at end of file +

    src/types/core-plugin.ts:77

    \ No newline at end of file diff --git a/tr/v3/api/type-aliases/args/index.html b/tr/v3/api/type-aliases/args/index.html index b1a1223f9..1e61d697f 100644 --- a/tr/v3/api/type-aliases/args/index.html +++ b/tr/v3/api/type-aliases/args/index.html @@ -54,4 +54,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    text: string[]

    Source

    -

    src/types/utility.ts:16

    \ No newline at end of file +

    src/types/utility.ts:16

    \ No newline at end of file diff --git a/tr/v3/api/type-aliases/commandmodule/index.html b/tr/v3/api/type-aliases/commandmodule/index.html index f9dcb23b7..218b89602 100644 --- a/tr/v3/api/type-aliases/commandmodule/index.html +++ b/tr/v3/api/type-aliases/commandmodule/index.html @@ -45,4 +45,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    CommandModule: TextCommand | SlashCommand | BothCommand | ContextMenuUser | ContextMenuMsg | ButtonCommand | StringSelectCommand | MentionableSelectCommand | UserSelectCommand | ChannelSelectCommand | RoleSelectCommand | ModalSubmitCommand

    Source

    -

    src/types/core-modules.ts:132

    \ No newline at end of file +

    src/types/core-modules.ts:132

    \ No newline at end of file diff --git a/tr/v3/api/type-aliases/eventmodule/index.html b/tr/v3/api/type-aliases/eventmodule/index.html index d4864ea51..976da1222 100644 --- a/tr/v3/api/type-aliases/eventmodule/index.html +++ b/tr/v3/api/type-aliases/eventmodule/index.html @@ -45,4 +45,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    EventModule: DiscordEventCommand | SernEventCommand | ExternalEventCommand

    Source

    -

    src/types/core-modules.ts:131

    \ No newline at end of file +

    src/types/core-modules.ts:131

    \ No newline at end of file diff --git a/tr/v3/api/type-aliases/initializable/index.html b/tr/v3/api/type-aliases/initializable/index.html index 21fbdc61e..d3b03e928 100644 --- a/tr/v3/api/type-aliases/initializable/index.html +++ b/tr/v3/api/type-aliases/initializable/index.html @@ -49,4 +49,4 @@ If T has an init method, this will be called.

    Type parameters

    T extends Init

    Source

    -

    src/types/ioc.ts:17

    \ No newline at end of file +

    src/types/ioc.ts:17

    \ No newline at end of file diff --git a/tr/v3/api/type-aliases/logpayload/index.html b/tr/v3/api/type-aliases/logpayload/index.html index 5adca00f5..07be80280 100644 --- a/tr/v3/api/type-aliases/logpayload/index.html +++ b/tr/v3/api/type-aliases/logpayload/index.html @@ -52,4 +52,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    message: T

    Source

    -

    src/core/contracts/logging.ts:11

    \ No newline at end of file +

    src/core/contracts/logging.ts:11

    \ No newline at end of file diff --git a/tr/v3/api/type-aliases/payload/index.html b/tr/v3/api/type-aliases/payload/index.html index dd23ff08b..d3b85ba10 100644 --- a/tr/v3/api/type-aliases/payload/index.html +++ b/tr/v3/api/type-aliases/payload/index.html @@ -45,4 +45,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Payload: object | object | object

    Source

    -

    src/types/utility.ts:26

    \ No newline at end of file +

    src/types/utility.ts:26

    \ No newline at end of file diff --git a/tr/v3/api/type-aliases/pluginresult/index.html b/tr/v3/api/type-aliases/pluginresult/index.html index 82cbdef0f..e5fb9f746 100644 --- a/tr/v3/api/type-aliases/pluginresult/index.html +++ b/tr/v3/api/type-aliases/pluginresult/index.html @@ -45,4 +45,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    PluginResult: Awaitable<VoidResult>

    Source

    -

    src/types/core-plugin.ts:51

    \ No newline at end of file +

    src/types/core-plugin.ts:51

    \ No newline at end of file diff --git a/tr/v3/api/type-aliases/sernoptionsdata/index.html b/tr/v3/api/type-aliases/sernoptionsdata/index.html index 1a1402748..f4c73adaa 100644 --- a/tr/v3/api/type-aliases/sernoptionsdata/index.html +++ b/tr/v3/api/type-aliases/sernoptionsdata/index.html @@ -46,4 +46,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Type that replaces autocomplete with SernAutocompleteData

    Source

    -

    src/types/core-modules.ts:200

    \ No newline at end of file +

    src/types/core-modules.ts:200

    \ No newline at end of file diff --git a/tr/v3/api/type-aliases/singleton/index.html b/tr/v3/api/type-aliases/singleton/index.html index b8c67152f..00d1415ea 100644 --- a/tr/v3/api/type-aliases/singleton/index.html +++ b/tr/v3/api/type-aliases/singleton/index.html @@ -51,4 +51,4 @@ T is created once and lazily.

    Returns

    T

    Source

    -

    src/types/ioc.ts:7

    \ No newline at end of file +

    src/types/ioc.ts:7

    \ No newline at end of file diff --git a/tr/v3/api/type-aliases/slashoptions/index.html b/tr/v3/api/type-aliases/slashoptions/index.html index 58b87535f..e9f73ee54 100644 --- a/tr/v3/api/type-aliases/slashoptions/index.html +++ b/tr/v3/api/type-aliases/slashoptions/index.html @@ -45,4 +45,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    SlashOptions: Omit<CommandInteractionOptionResolver, "getMessage" | "getFocused">

    Source

    -

    src/types/utility.ts:14

    \ No newline at end of file +

    src/types/utility.ts:14

    \ No newline at end of file diff --git a/tr/v3/api/type-aliases/transient/index.html b/tr/v3/api/type-aliases/transient/index.html index ad2a16e90..605979ac3 100644 --- a/tr/v3/api/type-aliases/transient/index.html +++ b/tr/v3/api/type-aliases/transient/index.html @@ -53,4 +53,4 @@ Every time this is called, a new object is created

    Returns

    T

    Source

    -

    src/types/ioc.ts:12

    \ No newline at end of file +

    src/types/ioc.ts:12

    \ No newline at end of file diff --git a/tr/v3/api/variables/controller/index.html b/tr/v3/api/variables/controller/index.html index 9ff097b22..3a66e6a48 100644 --- a/tr/v3/api/variables/controller/index.html +++ b/tr/v3/api/variables/controller/index.html @@ -61,4 +61,4 @@ The object passed into every plugin to control a command’s behavior

    Returns

    ErrImpl<void>

    Source

    -

    src/core/create-plugins.ts:69

    \ No newline at end of file +

    src/core/create-plugins.ts:69

    \ No newline at end of file diff --git a/tr/v3/cli/about/index.html b/tr/v3/cli/about/index.html index c47893ff4..76153bf70 100644 --- a/tr/v3/cli/about/index.html +++ b/tr/v3/cli/about/index.html @@ -50,4 +50,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;
    If you're new to sern, run npm create @sern/bot for an interactive setup to your new bot project!
    If you have any ideas, suggestions, bug reports, kindly join our support server: https://sern.dev/discord
    Options:
    -v, --version output the version number
    -h, --help display help for command
    -
    Commands:
    init [options] Quickest way to scaffold a new project [DEPRECATED]
    plugins [options] Install plugins from https://github.com/sern-handler/awesome-plugins
    extra Easy way to add extra things in your sern project
    commands Defacto way to manage your slash commands
    help [command] display help for command
    \ No newline at end of file +
    Commands:
    init [options] Quickest way to scaffold a new project [DEPRECATED]
    plugins [options] Install plugins from https://github.com/sern-handler/awesome-plugins
    extra Easy way to add extra things in your sern project
    commands Defacto way to manage your slash commands
    help [command] display help for command
    \ No newline at end of file diff --git a/tr/v3/cli/build/index.html b/tr/v3/cli/build/index.html index 60f53a883..a22de04f3 100644 --- a/tr/v3/cli/build/index.html +++ b/tr/v3/cli/build/index.html @@ -113,4 +113,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Full esbuild documentation here. Add more to the define field in build options (only availible with a sern.build file at the moment)

    process.env

    We generate your process.env with dotenv and generate typings for process.env. Less hassle!

    -
    DISCORD_TOKEN=<your token>
    1
    process.env.DISCORD_TOKEN; // string | undefined (not typesafe :()
    \ No newline at end of file +
    DISCORD_TOKEN=<your token>
    1
    process.env.DISCORD_TOKEN; // string | undefined (not typesafe :()
    \ No newline at end of file diff --git a/tr/v3/cli/clear/index.html b/tr/v3/cli/clear/index.html index be7352b91..d708adc5c 100644 --- a/tr/v3/cli/clear/index.html +++ b/tr/v3/cli/clear/index.html @@ -55,4 +55,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem; \ No newline at end of file + \ No newline at end of file diff --git a/tr/v3/cli/extra/index.html b/tr/v3/cli/extra/index.html index 58ceec209..243bf6251 100644 --- a/tr/v3/cli/extra/index.html +++ b/tr/v3/cli/extra/index.html @@ -48,4 +48,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    This command is pretty straightfoward. Install utilities into your application, assuming you have a sern.config.json.

    You can use this command to install things such as a Dockerfile

    Usage

    -
    Terminal window
    sern extra
    # Choose which extra feature from the prompt, such as this:
    What extra feature do you want to add? Dockerfile (TypeScript)
    \ No newline at end of file +
    Terminal window
    sern extra
    # Choose which extra feature from the prompt, such as this:
    What extra feature do you want to add? Dockerfile (TypeScript)
    \ No newline at end of file diff --git a/tr/v3/cli/publish/index.html b/tr/v3/cli/publish/index.html index 400412dfb..07ece1563 100644 --- a/tr/v3/cli/publish/index.html +++ b/tr/v3/cli/publish/index.html @@ -88,4 +88,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;
    src/commands/ping.ts
    1
    import { commandModule, Service, CommandType } from '@sern/handler'
    2
    3
    const client = Service('@sern/client');
    4
    5
    export const config = {
    6
    guildIds: ["889026545715400705"]
    7
    }
    8
    -
    9
    export default commandModule( {
    10
    type: CommandType.Slash
    11
    description: `${client.user.username}'s ping`,
    12
    execute: (ctx) => {
    13
    ctx.reply('pong')
    14
    }
    15
    })
    \ No newline at end of file +
    9
    export default commandModule( {
    10
    type: CommandType.Slash
    11
    description: `${client.user.username}'s ping`,
    12
    execute: (ctx) => {
    13
    ctx.reply('pong')
    14
    }
    15
    })
    \ No newline at end of file diff --git a/tr/v3/guide/getting-started/choose-ide/index.html b/tr/v3/guide/getting-started/choose-ide/index.html index b13b67b95..63fc5f685 100644 --- a/tr/v3/guide/getting-started/choose-ide/index.html +++ b/tr/v3/guide/getting-started/choose-ide/index.html @@ -51,4 +51,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;
  • Sublime Text
  • NotePad++
  • nvim (chad)
  • - \ No newline at end of file + \ No newline at end of file diff --git a/tr/v3/guide/getting-started/preparing/index.html b/tr/v3/guide/getting-started/preparing/index.html index b16156607..c16c135b7 100644 --- a/tr/v3/guide/getting-started/preparing/index.html +++ b/tr/v3/guide/getting-started/preparing/index.html @@ -44,4 +44,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Preparing to Code

    Bu içerik henüz dilinizde mevcut değil.

    After installing an IDE, you need to install node. Node is necessary to use sern, as it’s based on Discord.js.

    You can download Node from the official website here.

    After you’ve downloaded Node you will need a Discord token

    -

    CONTINUE 🤓

    \ No newline at end of file +

    CONTINUE 🤓

    \ No newline at end of file diff --git a/tr/v3/guide/walkthrough/autocomplete/index.html b/tr/v3/guide/walkthrough/autocomplete/index.html index 3b3b64f89..a4135c6fc 100644 --- a/tr/v3/guide/walkthrough/autocomplete/index.html +++ b/tr/v3/guide/walkthrough/autocomplete/index.html @@ -51,4 +51,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    We can filter the cheeses based on the focus object, and return only the cheeses that start with the focus object.

    You can do a lot more with the focus object, such as performing API calls, or implementing a fuzzy search.

    src/commands/cheese.ts
    1
    export default commandModule({
    2
    type: CommandType.Slash,
    3
    description: "show me cheese",
    4
    options: [
    5
    {
    6
    name: "list",
    7
    type: ApplicationCommandOptionType.String,
    8
    description: "pick a cheese to show",
    9
    required: true,
    10
    autocomplete: true,
    11
    command: {
    12
    onEvent: [],
    13
    execute: (ctx) => {
    14
    const focus = ctx.options.getFocused();
    15
    ctx.respond(
    16
    ["gouda", "parmesan", "harvarti"]
    17
    .filter((cheese) => cheese.startsWith(focus))
    18
    .map((cheese) => ({
    19
    name: cheese,
    20
    value: cheese,
    21
    })),
    22
    );
    23
    },
    24
    },
    25
    },
    26
    ],
    27
    execute: (ctx, [, args]) => {
    28
    const cheese = args.getString("list", true);
    29
    ctx.reply("selected cheese");
    30
    },
    31
    });
    - \ No newline at end of file + \ No newline at end of file diff --git a/tr/v3/guide/walkthrough/cli/index.html b/tr/v3/guide/walkthrough/cli/index.html index b491c3bdc..6e9b10589 100644 --- a/tr/v3/guide/walkthrough/cli/index.html +++ b/tr/v3/guide/walkthrough/cli/index.html @@ -56,4 +56,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Extra Utilities

    To install extra utilities into your project, run:

    Terminal window
    sern extra
    -

    We have a more in depth guide on the CLI if you’re interested in learning more.

    \ No newline at end of file +

    We have a more in depth guide on the CLI if you’re interested in learning more.

    \ No newline at end of file diff --git a/tr/v3/guide/walkthrough/conclusion/index.html b/tr/v3/guide/walkthrough/conclusion/index.html index c1c5ac8f2..ee39125d6 100644 --- a/tr/v3/guide/walkthrough/conclusion/index.html +++ b/tr/v3/guide/walkthrough/conclusion/index.html @@ -44,4 +44,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Conclusion

    Bu içerik henüz dilinizde mevcut değil.

    If you reached this far, thank you for reading!

    We hope you have learned the necessities you need to create a bot with the sern framework.

    If you have any other questions, bugs, feature requests, concerns, please join our community server, and we’ll be glad to answer your questions!

    -

    paper logo

    \ No newline at end of file +

    paper logo

    \ No newline at end of file diff --git a/tr/v3/guide/walkthrough/dependency-injection/index.html b/tr/v3/guide/walkthrough/dependency-injection/index.html index eabd8e71d..ff4629eb0 100644 --- a/tr/v3/guide/walkthrough/dependency-injection/index.html +++ b/tr/v3/guide/walkthrough/dependency-injection/index.html @@ -87,4 +87,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;
  • Now, when your bot starts, the init method will be called. 🎉

  • - \ No newline at end of file + \ No newline at end of file diff --git a/tr/v3/guide/walkthrough/first-command/index.html b/tr/v3/guide/walkthrough/first-command/index.html index 3bc741c90..71b6922c7 100644 --- a/tr/v3/guide/walkthrough/first-command/index.html +++ b/tr/v3/guide/walkthrough/first-command/index.html @@ -71,4 +71,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;
  • CommandType.Slash
  • CommandType.Text
  • -

    This data structure helps interop between legacy commands and slash commands with ease.

    \ No newline at end of file +

    This data structure helps interop between legacy commands and slash commands with ease.

    \ No newline at end of file diff --git a/tr/v3/guide/walkthrough/first-event/index.html b/tr/v3/guide/walkthrough/first-event/index.html index 36d029077..531326b9e 100644 --- a/tr/v3/guide/walkthrough/first-event/index.html +++ b/tr/v3/guide/walkthrough/first-event/index.html @@ -53,4 +53,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;
    src/index.ts
    1
    await makeDependencies({
    2
    build: root => root.add({
    3
    eventlistener: single(() => new EventEmitter())
    4
    })
    5
    })

    In your event module, you can now listen to events from eventlistener, which will be emitted from the EventEmitter.

    src/events/myevent.ts
    1
    export default eventModule({
    2
    type: EventType.External,
    3
    emitter: 'eventlistener',
    4
    execute: (args) => {
    5
    console.log('Got event from eventlistener: ', args);
    6
    }
    7
    })
    - \ No newline at end of file + \ No newline at end of file diff --git a/tr/v3/guide/walkthrough/goal/index.html b/tr/v3/guide/walkthrough/goal/index.html index 2dac941ee..f97134672 100644 --- a/tr/v3/guide/walkthrough/goal/index.html +++ b/tr/v3/guide/walkthrough/goal/index.html @@ -54,4 +54,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;
    4
    export class PingCommand extends Command {
    5
    public constructor(context: Command.Context) {
    6
    super(context, {
    7
    description: "Pong!",
    8
    chatInputCommand: {
    9
    register: true,
    10
    },
    11
    });
    12
    }
    13
    public async chatInputRun(interaction: CommandInteraction) {
    14
    await interaction.reply("Pong!");
    15
    }
    16
    }

    Keep in mind the sern example acts as both a slash command AND a text command. The Sapphire example is only a slash command, and it’s more code than sern.

    -

    Be smart. Choose sern.

    \ No newline at end of file +

    Be smart. Choose sern.

    \ No newline at end of file diff --git a/tr/v3/guide/walkthrough/good-to-know/index.html b/tr/v3/guide/walkthrough/good-to-know/index.html index 5cf5ddfb3..d9bf9736f 100644 --- a/tr/v3/guide/walkthrough/good-to-know/index.html +++ b/tr/v3/guide/walkthrough/good-to-know/index.html @@ -46,4 +46,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    For example, when installing TypeScript plugins, the language property is necessary to install from our open source repository.

    Using the CLI and running sern init --sync on pre-existing projects should install this file in the your project.

    Or, if this is a brand-new project, sern init automatically installs it.

    -
    sern.config.json
    1
    {
    2
    "language": "typescript",
    3
    "paths": {
    4
    "base": "src",
    5
    "commands": "commands"
    6
    }
    7
    }
    \ No newline at end of file +
    sern.config.json
    1
    {
    2
    "language": "typescript",
    3
    "paths": {
    4
    "base": "src",
    5
    "commands": "commands"
    6
    }
    7
    }
    \ No newline at end of file diff --git a/tr/v3/guide/walkthrough/new-project/index.html b/tr/v3/guide/walkthrough/new-project/index.html index 2728299b7..6afa0c366 100644 --- a/tr/v3/guide/walkthrough/new-project/index.html +++ b/tr/v3/guide/walkthrough/new-project/index.html @@ -43,4 +43,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem; StarlightThemeProvider.updatePickers();

    New Project

    Bu içerik henüz dilinizde mevcut değil.

    Terminal window
    npm create @sern/bot

    Once you’ve used this command, follow the interactive prompts to create your new project.

    -

    If you need help, feel free to ask on our Discord.

    \ No newline at end of file +

    If you need help, feel free to ask on our Discord.

    \ No newline at end of file diff --git a/tr/v3/guide/walkthrough/plugins/index.html b/tr/v3/guide/walkthrough/plugins/index.html index 9271b26b6..6b803e85d 100644 --- a/tr/v3/guide/walkthrough/plugins/index.html +++ b/tr/v3/guide/walkthrough/plugins/index.html @@ -81,4 +81,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;
  • Before an event occurs, this command module will check if the user has the id 182326315813306368.
  • If all plugins return controller.next(), this command replies Pong 🏓
  • - \ No newline at end of file + \ No newline at end of file diff --git a/tr/v3/guide/walkthrough/sern-emitter/index.html b/tr/v3/guide/walkthrough/sern-emitter/index.html index 466958131..081d7aa57 100644 --- a/tr/v3/guide/walkthrough/sern-emitter/index.html +++ b/tr/v3/guide/walkthrough/sern-emitter/index.html @@ -51,4 +51,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;
  • warn events, where it is possible to throw errors
  • You can put these and other event listeners into event modules!

    -

    You can view all events in the SernEventsMapping interface.

    \ No newline at end of file +

    You can view all events in the SernEventsMapping interface.

    \ No newline at end of file diff --git a/tr/v3/guide/walkthrough/services/index.html b/tr/v3/guide/walkthrough/services/index.html index b779a2a1c..b55ffa8f1 100644 --- a/tr/v3/guide/walkthrough/services/index.html +++ b/tr/v3/guide/walkthrough/services/index.html @@ -83,4 +83,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem; \ No newline at end of file + \ No newline at end of file diff --git a/tr/v3/guide/walkthrough/transition/index.html b/tr/v3/guide/walkthrough/transition/index.html index 7f1fb8326..723cd978d 100644 --- a/tr/v3/guide/walkthrough/transition/index.html +++ b/tr/v3/guide/walkthrough/transition/index.html @@ -47,4 +47,4 @@ include a dependencies.d.ts file into compilation. (Chec

    A standard project file tree:

    \ No newline at end of file +
  • .env
  • .gitignore
  • bun.lockb
  • package.json
  • README.md
  • sern.config.json
  • tsconfig.json
  • \ No newline at end of file diff --git a/tr/v4/api/classes/context/index.html b/tr/v4/api/classes/context/index.html index 6a913a0c2..c1bb57433 100644 --- a/tr/v4/api/classes/context/index.html +++ b/tr/v4/api/classes/context/index.html @@ -222,4 +222,4 @@ else, interaction.user

    Returns

    Context

    Source

    -

    src/core/structures/context.ts:124

    \ No newline at end of file +

    src/core/structures/context.ts:124

    \ No newline at end of file diff --git a/tr/v4/api/enumerations/commandtype/index.html b/tr/v4/api/enumerations/commandtype/index.html index 4e5d24147..7814a0e9e 100644 --- a/tr/v4/api/enumerations/commandtype/index.html +++ b/tr/v4/api/enumerations/commandtype/index.html @@ -129,4 +129,4 @@ A bitfield that discriminates command modules

    UserSelect: 128

    Source

    -

    src/core/structures/enums.ts:26

    \ No newline at end of file +

    src/core/structures/enums.ts:26

    \ No newline at end of file diff --git a/tr/v4/api/enumerations/eventtype/index.html b/tr/v4/api/enumerations/eventtype/index.html index c588a1448..898c4898b 100644 --- a/tr/v4/api/enumerations/eventtype/index.html +++ b/tr/v4/api/enumerations/eventtype/index.html @@ -68,4 +68,4 @@ Could be for example, process events, database events

    The EventType for handling sern events

    Source

    -

    src/core/structures/enums.ts:55

    \ No newline at end of file +

    src/core/structures/enums.ts:55

    \ No newline at end of file diff --git a/tr/v4/api/enumerations/payloadtype/index.html b/tr/v4/api/enumerations/payloadtype/index.html index 286730103..c219049b6 100644 --- a/tr/v4/api/enumerations/payloadtype/index.html +++ b/tr/v4/api/enumerations/payloadtype/index.html @@ -64,4 +64,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Warning: "warning"

    Source

    -

    src/core/structures/enums.ts:94

    \ No newline at end of file +

    src/core/structures/enums.ts:94

    \ No newline at end of file diff --git a/tr/v4/api/enumerations/plugintype/index.html b/tr/v4/api/enumerations/plugintype/index.html index 9f8091d03..fc62fe2d7 100644 --- a/tr/v4/api/enumerations/plugintype/index.html +++ b/tr/v4/api/enumerations/plugintype/index.html @@ -59,4 +59,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    The PluginType for InitPlugins

    Source

    -

    src/core/structures/enums.ts:81

    \ No newline at end of file +

    src/core/structures/enums.ts:81

    \ No newline at end of file diff --git a/tr/v4/api/functions/commandcontrolplugin/index.html b/tr/v4/api/functions/commandcontrolplugin/index.html index 403917681..f76910f5d 100644 --- a/tr/v4/api/functions/commandcontrolplugin/index.html +++ b/tr/v4/api/functions/commandcontrolplugin/index.html @@ -74,4 +74,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;
  • Useful for implementing preconditions, filters, and command preprocessing
  • Source

    -

    src/core/plugin.ts:120

    \ No newline at end of file +

    src/core/plugin.ts:120

    \ No newline at end of file diff --git a/tr/v4/api/functions/commandinitplugin/index.html b/tr/v4/api/functions/commandinitplugin/index.html index d1a2d3453..5a3b110cf 100644 --- a/tr/v4/api/functions/commandinitplugin/index.html +++ b/tr/v4/api/functions/commandinitplugin/index.html @@ -69,4 +69,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;
  • Use controller.stop(reason) to halt plugin execution
  • Source

    -

    src/core/plugin.ts:62

    \ No newline at end of file +

    src/core/plugin.ts:62

    \ No newline at end of file diff --git a/tr/v4/api/functions/commandmodule/index.html b/tr/v4/api/functions/commandmodule/index.html index e48a365d9..7a54a85cd 100644 --- a/tr/v4/api/functions/commandmodule/index.html +++ b/tr/v4/api/functions/commandmodule/index.html @@ -58,4 +58,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Example

    1
    // Command with component interaction
    2
    export default commandModule({
    3
    type: CommandType.Slash,
    4
    description: "Interactive command",
    5
    execute: async (ctx) => {
    6
    const button = new ButtonBuilder({
    7
    customId: "btn/someData",
    8
    label: "Click me",
    9
    style: ButtonStyle.Primary
    10
    });
    11
    await ctx.reply({
    12
    content: "Interactive message",
    13
    components: [new ActionRowBuilder().addComponents(button)]
    14
    });
    15
    }
    16
    });

    Source

    -

    src/core/modules.ts:47

    \ No newline at end of file +

    src/core/modules.ts:47

    \ No newline at end of file diff --git a/tr/v4/api/functions/discordevent/index.html b/tr/v4/api/functions/discordevent/index.html index 3dce3d71c..19e5f4e90 100644 --- a/tr/v4/api/functions/discordevent/index.html +++ b/tr/v4/api/functions/discordevent/index.html @@ -58,4 +58,4 @@ where typings were bad.

    Returns

    Module

    Source

    -

    src/core/modules.ts:97

    \ No newline at end of file +

    src/core/modules.ts:97

    \ No newline at end of file diff --git a/tr/v4/api/functions/eventinitplugin/index.html b/tr/v4/api/functions/eventinitplugin/index.html index 2ee966b80..692b1e8cb 100644 --- a/tr/v4/api/functions/eventinitplugin/index.html +++ b/tr/v4/api/functions/eventinitplugin/index.html @@ -51,4 +51,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Since

    2.5.0

    Source

    -

    src/core/plugin.ts:15

    \ No newline at end of file +

    src/core/plugin.ts:15

    \ No newline at end of file diff --git a/tr/v4/api/functions/eventmodule/index.html b/tr/v4/api/functions/eventmodule/index.html index 6321b9b03..a9339e362 100644 --- a/tr/v4/api/functions/eventmodule/index.html +++ b/tr/v4/api/functions/eventmodule/index.html @@ -63,4 +63,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Example

    1
    // Custom sern event
    2
    export default eventModule({
    3
    type: EventType.Sern,
    4
    execute: async (eventData) => {
    5
    // Handle sern-specific event
    6
    }
    7
    });

    Source

    -

    src/core/modules.ts:83

    \ No newline at end of file +

    src/core/modules.ts:83

    \ No newline at end of file diff --git a/tr/v4/api/functions/makedependencies/index.html b/tr/v4/api/functions/makedependencies/index.html index 59b12194d..80a6e13d1 100644 --- a/tr/v4/api/functions/makedependencies/index.html +++ b/tr/v4/api/functions/makedependencies/index.html @@ -53,4 +53,4 @@ This is required to start the handler, and is to be called before Sern.init.

    Example

    1
    await makeDependencies(({ add }) => {
    2
    add('@sern/client', new Client({ intents, partials })
    3
    })

    Source

    -

    src/core/ioc.ts:63

    \ No newline at end of file +

    src/core/ioc.ts:63

    \ No newline at end of file diff --git a/tr/v4/api/functions/makeplugin/index.html b/tr/v4/api/functions/makeplugin/index.html index cc5290ee4..aacdfd36a 100644 --- a/tr/v4/api/functions/makeplugin/index.html +++ b/tr/v4/api/functions/makeplugin/index.html @@ -52,4 +52,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Returns

    Plugin<V>

    Source

    -

    src/core/plugin.ts:6

    \ No newline at end of file +

    src/core/plugin.ts:6

    \ No newline at end of file diff --git a/tr/v4/api/functions/service/index.html b/tr/v4/api/functions/service/index.html index c27d9f985..09c6c8fe5 100644 --- a/tr/v4/api/functions/service/index.html +++ b/tr/v4/api/functions/service/index.html @@ -62,4 +62,4 @@ Note: this method only works AFTER your container has been initiated

    Throws

    if container is absent or not present

    Source

    -

    src/core/ioc.ts:93

    \ No newline at end of file +

    src/core/ioc.ts:93

    \ No newline at end of file diff --git a/tr/v4/api/functions/services/index.html b/tr/v4/api/functions/services/index.html index 998fa9ebd..217afe5d3 100644 --- a/tr/v4/api/functions/services/index.html +++ b/tr/v4/api/functions/services/index.html @@ -57,4 +57,4 @@ The plural version of Servi

    Throws

    if container is absent or not present

    Source

    -

    src/core/ioc.ts:103

    \ No newline at end of file +

    src/core/ioc.ts:103

    \ No newline at end of file diff --git a/tr/v4/api/functions/single/index.html b/tr/v4/api/functions/single/index.html index d7d956e79..87965c7b5 100644 --- a/tr/v4/api/functions/single/index.html +++ b/tr/v4/api/functions/single/index.html @@ -52,4 +52,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Returns

    T

    Source

    -

    src/core/ioc.ts:112

    \ No newline at end of file +

    src/core/ioc.ts:112

    \ No newline at end of file diff --git a/tr/v4/api/functions/transient/index.html b/tr/v4/api/functions/transient/index.html index d2435c0e3..01014fdd1 100644 --- a/tr/v4/api/functions/transient/index.html +++ b/tr/v4/api/functions/transient/index.html @@ -55,4 +55,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    2.0.0 Creates a transient object

    Source

    -

    src/core/ioc.ts:123

    \ No newline at end of file +

    src/core/ioc.ts:123

    \ No newline at end of file diff --git a/tr/v4/api/interfaces/bothcommand/index.html b/tr/v4/api/interfaces/bothcommand/index.html index 2727de6d4..36c8f8615 100644 --- a/tr/v4/api/interfaces/bothcommand/index.html +++ b/tr/v4/api/interfaces/bothcommand/index.html @@ -174,4 +174,4 @@ to attach metadata or configuration to modules.

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:283

    \ No newline at end of file +

    src/types/core-modules.ts:283

    \ No newline at end of file diff --git a/tr/v4/api/interfaces/buttoncommand/index.html b/tr/v4/api/interfaces/buttoncommand/index.html index 24f1ad352..ccb6afd46 100644 --- a/tr/v4/api/interfaces/buttoncommand/index.html +++ b/tr/v4/api/interfaces/buttoncommand/index.html @@ -167,4 +167,4 @@ to attach metadata or configuration to modules.

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:225

    \ No newline at end of file +

    src/types/core-modules.ts:225

    \ No newline at end of file diff --git a/tr/v4/api/interfaces/channelselectcommand/index.html b/tr/v4/api/interfaces/channelselectcommand/index.html index 61d8b03a7..96a5e733a 100644 --- a/tr/v4/api/interfaces/channelselectcommand/index.html +++ b/tr/v4/api/interfaces/channelselectcommand/index.html @@ -167,4 +167,4 @@ to attach metadata or configuration to modules.

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:235

    \ No newline at end of file +

    src/types/core-modules.ts:235

    \ No newline at end of file diff --git a/tr/v4/api/interfaces/commandmoduledefs/index.html b/tr/v4/api/interfaces/commandmoduledefs/index.html index 0fad0e75d..8692ebae9 100644 --- a/tr/v4/api/interfaces/commandmoduledefs/index.html +++ b/tr/v4/api/interfaces/commandmoduledefs/index.html @@ -124,4 +124,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    8: ContextMenuMsg

    Source

    -

    src/types/core-modules.ts:310

    \ No newline at end of file +

    src/types/core-modules.ts:310

    \ No newline at end of file diff --git a/tr/v4/api/interfaces/contextmenumsg/index.html b/tr/v4/api/interfaces/contextmenumsg/index.html index 9c07ddd4d..9f4d5d245 100644 --- a/tr/v4/api/interfaces/contextmenumsg/index.html +++ b/tr/v4/api/interfaces/contextmenumsg/index.html @@ -167,4 +167,4 @@ to attach metadata or configuration to modules.

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:220

    \ No newline at end of file +

    src/types/core-modules.ts:220

    \ No newline at end of file diff --git a/tr/v4/api/interfaces/contextmenuuser/index.html b/tr/v4/api/interfaces/contextmenuuser/index.html index de8279f0e..0b3f56f31 100644 --- a/tr/v4/api/interfaces/contextmenuuser/index.html +++ b/tr/v4/api/interfaces/contextmenuuser/index.html @@ -167,4 +167,4 @@ to attach metadata or configuration to modules.

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:215

    \ No newline at end of file +

    src/types/core-modules.ts:215

    \ No newline at end of file diff --git a/tr/v4/api/interfaces/controlplugin/index.html b/tr/v4/api/interfaces/controlplugin/index.html index 5bf6f3813..baed41e41 100644 --- a/tr/v4/api/interfaces/controlplugin/index.html +++ b/tr/v4/api/interfaces/controlplugin/index.html @@ -68,4 +68,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Plugin.type

    Source

    -

    src/types/core-plugin.ts:52

    \ No newline at end of file +

    src/types/core-plugin.ts:52

    \ No newline at end of file diff --git a/tr/v4/api/interfaces/coredependencies/index.html b/tr/v4/api/interfaces/coredependencies/index.html index 0d5c9eb26..f8c75777c 100644 --- a/tr/v4/api/interfaces/coredependencies/index.html +++ b/tr/v4/api/interfaces/coredependencies/index.html @@ -90,4 +90,4 @@ by module.meta.id -> Module

    @sern/scheduler: TaskScheduler

    Source

    -

    src/core/ioc.ts:161

    \ No newline at end of file +

    src/core/ioc.ts:161

    \ No newline at end of file diff --git a/tr/v4/api/interfaces/discordeventcommand/index.html b/tr/v4/api/interfaces/discordeventcommand/index.html index a15ae1b03..3a1d7d2c2 100644 --- a/tr/v4/api/interfaces/discordeventcommand/index.html +++ b/tr/v4/api/interfaces/discordeventcommand/index.html @@ -168,4 +168,4 @@ to attach metadata or configuration to modules.

    Overrides

    Module.execute

    Source

    -

    src/types/core-modules.ts:268

    \ No newline at end of file +

    src/types/core-modules.ts:268

    \ No newline at end of file diff --git a/tr/v4/api/interfaces/disposable/index.html b/tr/v4/api/interfaces/disposable/index.html index 382d6416b..2ebeddf00 100644 --- a/tr/v4/api/interfaces/disposable/index.html +++ b/tr/v4/api/interfaces/disposable/index.html @@ -51,4 +51,4 @@ Let dependencies implement this to dispose and cleanup.

    Returns

    unknown

    Source

    -

    src/core/interfaces.ts:17

    \ No newline at end of file +

    src/core/interfaces.ts:17

    \ No newline at end of file diff --git a/tr/v4/api/interfaces/emitter/index.html b/tr/v4/api/interfaces/emitter/index.html index e4d30f981..294623374 100644 --- a/tr/v4/api/interfaces/emitter/index.html +++ b/tr/v4/api/interfaces/emitter/index.html @@ -76,4 +76,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Returns

    this

    Source

    -

    src/core/interfaces.ts:23

    \ No newline at end of file +

    src/core/interfaces.ts:23

    \ No newline at end of file diff --git a/tr/v4/api/interfaces/errorhandling/index.html b/tr/v4/api/interfaces/errorhandling/index.html index afdbe8162..d15aa4fd9 100644 --- a/tr/v4/api/interfaces/errorhandling/index.html +++ b/tr/v4/api/interfaces/errorhandling/index.html @@ -66,4 +66,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Returns

    void

    Source

    -

    src/core/interfaces.ts:41

    \ No newline at end of file +

    src/core/interfaces.ts:41

    \ No newline at end of file diff --git a/tr/v4/api/interfaces/eventmoduledefs/index.html b/tr/v4/api/interfaces/eventmoduledefs/index.html index bc539ca00..b91578b51 100644 --- a/tr/v4/api/interfaces/eventmoduledefs/index.html +++ b/tr/v4/api/interfaces/eventmoduledefs/index.html @@ -63,4 +63,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    2: ExternalEventCommand

    Source

    -

    src/types/core-modules.ts:324

    \ No newline at end of file +

    src/types/core-modules.ts:324

    \ No newline at end of file diff --git a/tr/v4/api/interfaces/externaleventcommand/index.html b/tr/v4/api/interfaces/externaleventcommand/index.html index 7b066946f..819932cd6 100644 --- a/tr/v4/api/interfaces/externaleventcommand/index.html +++ b/tr/v4/api/interfaces/externaleventcommand/index.html @@ -173,4 +173,4 @@ to attach metadata or configuration to modules.

    Overrides

    Module.execute

    Source

    -

    src/types/core-modules.ts:210

    \ No newline at end of file +

    src/types/core-modules.ts:210

    \ No newline at end of file diff --git a/tr/v4/api/interfaces/init/index.html b/tr/v4/api/interfaces/init/index.html index 28e2b0e9f..5b9b16158 100644 --- a/tr/v4/api/interfaces/init/index.html +++ b/tr/v4/api/interfaces/init/index.html @@ -51,4 +51,4 @@ Let dependencies implement this to initiate some logic.

    Returns

    unknown

    Source

    -

    src/core/interfaces.ts:9

    \ No newline at end of file +

    src/core/interfaces.ts:9

    \ No newline at end of file diff --git a/tr/v4/api/interfaces/initplugin/index.html b/tr/v4/api/interfaces/initplugin/index.html index 281847774..eff069116 100644 --- a/tr/v4/api/interfaces/initplugin/index.html +++ b/tr/v4/api/interfaces/initplugin/index.html @@ -68,4 +68,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Plugin.type

    Source

    -

    src/types/core-plugin.ts:48

    \ No newline at end of file +

    src/types/core-plugin.ts:48

    \ No newline at end of file diff --git a/tr/v4/api/interfaces/logging/index.html b/tr/v4/api/interfaces/logging/index.html index a3d7fd42b..5d1a5c7f3 100644 --- a/tr/v4/api/interfaces/logging/index.html +++ b/tr/v4/api/interfaces/logging/index.html @@ -88,4 +88,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Returns

    void

    Source

    -

    src/core/interfaces.ts:50

    \ No newline at end of file +

    src/core/interfaces.ts:50

    \ No newline at end of file diff --git a/tr/v4/api/interfaces/mentionableselectcommand/index.html b/tr/v4/api/interfaces/mentionableselectcommand/index.html index b76914ddd..53c56161f 100644 --- a/tr/v4/api/interfaces/mentionableselectcommand/index.html +++ b/tr/v4/api/interfaces/mentionableselectcommand/index.html @@ -167,4 +167,4 @@ to attach metadata or configuration to modules.

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:245

    \ No newline at end of file +

    src/types/core-modules.ts:245

    \ No newline at end of file diff --git a/tr/v4/api/interfaces/modalsubmitcommand/index.html b/tr/v4/api/interfaces/modalsubmitcommand/index.html index 426dbe480..078733691 100644 --- a/tr/v4/api/interfaces/modalsubmitcommand/index.html +++ b/tr/v4/api/interfaces/modalsubmitcommand/index.html @@ -167,4 +167,4 @@ to attach metadata or configuration to modules.

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:255

    \ No newline at end of file +

    src/types/core-modules.ts:255

    \ No newline at end of file diff --git a/tr/v4/api/interfaces/module/index.html b/tr/v4/api/interfaces/module/index.html index d17248282..dc5ba829c 100644 --- a/tr/v4/api/interfaces/module/index.html +++ b/tr/v4/api/interfaces/module/index.html @@ -164,4 +164,4 @@ to attach metadata or configuration to modules.

    Returns

    any

    Source

    -

    src/types/core-modules.ts:196

    \ No newline at end of file +

    src/types/core-modules.ts:196

    \ No newline at end of file diff --git a/tr/v4/api/interfaces/plugin/index.html b/tr/v4/api/interfaces/plugin/index.html index 77532d0cd..d3df8bcc9 100644 --- a/tr/v4/api/interfaces/plugin/index.html +++ b/tr/v4/api/interfaces/plugin/index.html @@ -65,4 +65,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    type: PluginType

    Source

    -

    src/types/core-plugin.ts:43

    \ No newline at end of file +

    src/types/core-plugin.ts:43

    \ No newline at end of file diff --git a/tr/v4/api/interfaces/roleselectcommand/index.html b/tr/v4/api/interfaces/roleselectcommand/index.html index e4a569424..04bb0d351 100644 --- a/tr/v4/api/interfaces/roleselectcommand/index.html +++ b/tr/v4/api/interfaces/roleselectcommand/index.html @@ -167,4 +167,4 @@ to attach metadata or configuration to modules.

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:240

    \ No newline at end of file +

    src/types/core-modules.ts:240

    \ No newline at end of file diff --git a/tr/v4/api/interfaces/sernautocompletedata/index.html b/tr/v4/api/interfaces/sernautocompletedata/index.html index 745a51c66..b6d57689b 100644 --- a/tr/v4/api/interfaces/sernautocompletedata/index.html +++ b/tr/v4/api/interfaces/sernautocompletedata/index.html @@ -110,4 +110,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    type: String | Integer | Number

    Source

    -

    src/types/core-modules.ts:330

    \ No newline at end of file +

    src/types/core-modules.ts:330

    \ No newline at end of file diff --git a/tr/v4/api/interfaces/serneventcommand/index.html b/tr/v4/api/interfaces/serneventcommand/index.html index 32f10722d..216e3bfa1 100644 --- a/tr/v4/api/interfaces/serneventcommand/index.html +++ b/tr/v4/api/interfaces/serneventcommand/index.html @@ -168,4 +168,4 @@ to attach metadata or configuration to modules.

    Overrides

    Module.execute

    Source

    -

    src/types/core-modules.ts:203

    \ No newline at end of file +

    src/types/core-modules.ts:203

    \ No newline at end of file diff --git a/tr/v4/api/interfaces/serneventsmapping/index.html b/tr/v4/api/interfaces/serneventsmapping/index.html index 5bd9353fe..6dde3f361 100644 --- a/tr/v4/api/interfaces/serneventsmapping/index.html +++ b/tr/v4/api/interfaces/serneventsmapping/index.html @@ -75,4 +75,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    warning: [Payload]

    Source

    -

    src/types/utility.ts:13

    \ No newline at end of file +

    src/types/utility.ts:13

    \ No newline at end of file diff --git a/tr/v4/api/interfaces/sernsubcommanddata/index.html b/tr/v4/api/interfaces/sernsubcommanddata/index.html index 601b262eb..07bda6bed 100644 --- a/tr/v4/api/interfaces/sernsubcommanddata/index.html +++ b/tr/v4/api/interfaces/sernsubcommanddata/index.html @@ -105,4 +105,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    APIApplicationCommandOptionBase.type

    Source

    -

    src/types/core-modules.ts:368

    \ No newline at end of file +

    src/types/core-modules.ts:368

    \ No newline at end of file diff --git a/tr/v4/api/interfaces/sernsubcommandgroupdata/index.html b/tr/v4/api/interfaces/sernsubcommandgroupdata/index.html index 80d45c707..717ae1700 100644 --- a/tr/v4/api/interfaces/sernsubcommandgroupdata/index.html +++ b/tr/v4/api/interfaces/sernsubcommandgroupdata/index.html @@ -112,4 +112,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    type: SubcommandGroup

    Source

    -

    src/types/core-modules.ts:373

    \ No newline at end of file +

    src/types/core-modules.ts:373

    \ No newline at end of file diff --git a/tr/v4/api/interfaces/slashcommand/index.html b/tr/v4/api/interfaces/slashcommand/index.html index d1f34174e..75bc29aa1 100644 --- a/tr/v4/api/interfaces/slashcommand/index.html +++ b/tr/v4/api/interfaces/slashcommand/index.html @@ -174,4 +174,4 @@ to attach metadata or configuration to modules.

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:276

    \ No newline at end of file +

    src/types/core-modules.ts:276

    \ No newline at end of file diff --git a/tr/v4/api/interfaces/stringselectcommand/index.html b/tr/v4/api/interfaces/stringselectcommand/index.html index d0e60233c..5ef22d1e2 100644 --- a/tr/v4/api/interfaces/stringselectcommand/index.html +++ b/tr/v4/api/interfaces/stringselectcommand/index.html @@ -167,4 +167,4 @@ to attach metadata or configuration to modules.

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:230

    \ No newline at end of file +

    src/types/core-modules.ts:230

    \ No newline at end of file diff --git a/tr/v4/api/interfaces/textcommand/index.html b/tr/v4/api/interfaces/textcommand/index.html index c3da8ab8b..55c35243b 100644 --- a/tr/v4/api/interfaces/textcommand/index.html +++ b/tr/v4/api/interfaces/textcommand/index.html @@ -167,4 +167,4 @@ to attach metadata or configuration to modules.

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:271

    \ No newline at end of file +

    src/types/core-modules.ts:271

    \ No newline at end of file diff --git a/tr/v4/api/interfaces/userselectcommand/index.html b/tr/v4/api/interfaces/userselectcommand/index.html index 9830c6fba..12a0e3cfd 100644 --- a/tr/v4/api/interfaces/userselectcommand/index.html +++ b/tr/v4/api/interfaces/userselectcommand/index.html @@ -167,4 +167,4 @@ to attach metadata or configuration to modules.

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:250

    \ No newline at end of file +

    src/types/core-modules.ts:250

    \ No newline at end of file diff --git a/tr/v4/api/namespaces/sern/functions/init/index.html b/tr/v4/api/namespaces/sern/functions/init/index.html index bfb68b718..e7c81acba 100644 --- a/tr/v4/api/namespaces/sern/functions/init/index.html +++ b/tr/v4/api/namespaces/sern/functions/init/index.html @@ -55,4 +55,4 @@ Function to start the handler up

    Example

    src/index.ts
    1
    Sern.init({
    2
    commands: 'dist/commands',
    3
    events: 'dist/events',
    4
    })

    Source

    -

    src/sern.ts:32

    \ No newline at end of file +

    src/sern.ts:32

    \ No newline at end of file diff --git a/tr/v4/api/readme/index.html b/tr/v4/api/readme/index.html index ec6629232..5a5fa7e5e 100644 --- a/tr/v4/api/readme/index.html +++ b/tr/v4/api/readme/index.html @@ -125,4 +125,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;
  • scheduledTask
  • single
  • transient
  • - \ No newline at end of file + \ No newline at end of file diff --git a/tr/v4/api/type-aliases/anyplugin/index.html b/tr/v4/api/type-aliases/anyplugin/index.html index 210e8b149..4fa943ea1 100644 --- a/tr/v4/api/type-aliases/anyplugin/index.html +++ b/tr/v4/api/type-aliases/anyplugin/index.html @@ -45,4 +45,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    AnyPlugin: ControlPlugin | InitPlugin<[InitArgs<Processed<Module>>]>

    Source

    -

    src/types/core-plugin.ts:55

    \ No newline at end of file +

    src/types/core-plugin.ts:55

    \ No newline at end of file diff --git a/tr/v4/api/type-aliases/commandmodule/index.html b/tr/v4/api/type-aliases/commandmodule/index.html index c24146549..6df645394 100644 --- a/tr/v4/api/type-aliases/commandmodule/index.html +++ b/tr/v4/api/type-aliases/commandmodule/index.html @@ -45,4 +45,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    CommandModule: TextCommand | SlashCommand | BothCommand | ContextMenuUser | ContextMenuMsg | ButtonCommand | StringSelectCommand | MentionableSelectCommand | UserSelectCommand | ChannelSelectCommand | RoleSelectCommand | ModalSubmitCommand

    Source

    -

    src/types/core-modules.ts:290

    \ No newline at end of file +

    src/types/core-modules.ts:290

    \ No newline at end of file diff --git a/tr/v4/api/type-aliases/controller/index.html b/tr/v4/api/type-aliases/controller/index.html index 29c1208f4..22bd507f4 100644 --- a/tr/v4/api/type-aliases/controller/index.html +++ b/tr/v4/api/type-aliases/controller/index.html @@ -45,4 +45,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Controller: typeof controller

    Source

    -

    src/core/plugin.ts:137

    \ No newline at end of file +

    src/core/plugin.ts:137

    \ No newline at end of file diff --git a/tr/v4/api/type-aliases/eventmodule/index.html b/tr/v4/api/type-aliases/eventmodule/index.html index d723fe018..aac9fc745 100644 --- a/tr/v4/api/type-aliases/eventmodule/index.html +++ b/tr/v4/api/type-aliases/eventmodule/index.html @@ -45,4 +45,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    EventModule: DiscordEventCommand | SernEventCommand | ExternalEventCommand

    Source

    -

    src/types/core-modules.ts:289

    \ No newline at end of file +

    src/types/core-modules.ts:289

    \ No newline at end of file diff --git a/tr/v4/api/type-aliases/logpayload/index.html b/tr/v4/api/type-aliases/logpayload/index.html index ad37abd5d..e19a2df1c 100644 --- a/tr/v4/api/type-aliases/logpayload/index.html +++ b/tr/v4/api/type-aliases/logpayload/index.html @@ -52,4 +52,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    message: T

    Source

    -

    src/core/interfaces.ts:55

    \ No newline at end of file +

    src/core/interfaces.ts:55

    \ No newline at end of file diff --git a/tr/v4/api/type-aliases/payload/index.html b/tr/v4/api/type-aliases/payload/index.html index 22b69c26c..00ef2872c 100644 --- a/tr/v4/api/type-aliases/payload/index.html +++ b/tr/v4/api/type-aliases/payload/index.html @@ -45,4 +45,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Payload: object | object | object

    Source

    -

    src/types/utility.ts:17

    \ No newline at end of file +

    src/types/utility.ts:17

    \ No newline at end of file diff --git a/tr/v4/api/type-aliases/pluginresult/index.html b/tr/v4/api/type-aliases/pluginresult/index.html index 7c35bbeda..bfdf1807e 100644 --- a/tr/v4/api/type-aliases/pluginresult/index.html +++ b/tr/v4/api/type-aliases/pluginresult/index.html @@ -45,4 +45,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    PluginResult: Awaitable<Result<Record<string, unknown> | undefined, string | undefined>>

    Source

    -

    src/types/core-plugin.ts:36

    \ No newline at end of file +

    src/types/core-plugin.ts:36

    \ No newline at end of file diff --git a/tr/v4/api/type-aliases/sernoptionsdata/index.html b/tr/v4/api/type-aliases/sernoptionsdata/index.html index 09f1b3088..0d77366dc 100644 --- a/tr/v4/api/type-aliases/sernoptionsdata/index.html +++ b/tr/v4/api/type-aliases/sernoptionsdata/index.html @@ -46,4 +46,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Type that replaces autocomplete with SernAutocompleteData

    Source

    -

    src/types/core-modules.ts:360

    \ No newline at end of file +

    src/types/core-modules.ts:360

    \ No newline at end of file diff --git a/tr/v4/api/variables/controller/index.html b/tr/v4/api/variables/controller/index.html index e1e97410e..9e8db56a9 100644 --- a/tr/v4/api/variables/controller/index.html +++ b/tr/v4/api/variables/controller/index.html @@ -81,4 +81,4 @@ The object passed into every plugin to control a command’s behavior

    readonly ok: false = false

    Source

    -

    src/core/plugin.ts:131

    \ No newline at end of file +

    src/core/plugin.ts:131

    \ No newline at end of file diff --git a/tr/v4/api/variables/presence/index.html b/tr/v4/api/variables/presence/index.html index 400809a46..6ef0eaa52 100644 --- a/tr/v4/api/variables/presence/index.html +++ b/tr/v4/api/variables/presence/index.html @@ -115,4 +115,4 @@ adjacent to the file where Sern.init is CALLED.

    optional status: Status

    Source

    -

    src/core/presences.ts:9

    \ No newline at end of file +

    src/core/presences.ts:9

    \ No newline at end of file diff --git a/tr/v4/cli/about/index.html b/tr/v4/cli/about/index.html index f52f25037..92924bec7 100644 --- a/tr/v4/cli/about/index.html +++ b/tr/v4/cli/about/index.html @@ -50,4 +50,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;
    If you're new to sern, run npm create @sern/bot for an interactive setup to your new bot project!
    If you have any ideas, suggestions, bug reports, kindly join our support server: https://sern.dev/discord
    Options:
    -v, --version output the version number
    -h, --help display help for command
    -
    Commands:
    init [options] Quickest way to scaffold a new project [DEPRECATED]
    plugins [options] Install plugins from https://github.com/sern-handler/awesome-plugins
    extra Easy way to add extra things in your sern project
    commands Defacto way to manage your slash commands
    help [command] display help for command
    \ No newline at end of file +
    Commands:
    init [options] Quickest way to scaffold a new project [DEPRECATED]
    plugins [options] Install plugins from https://github.com/sern-handler/awesome-plugins
    extra Easy way to add extra things in your sern project
    commands Defacto way to manage your slash commands
    help [command] display help for command
    \ No newline at end of file diff --git a/tr/v4/cli/build/index.html b/tr/v4/cli/build/index.html index 210c979a6..6536206e1 100644 --- a/tr/v4/cli/build/index.html +++ b/tr/v4/cli/build/index.html @@ -113,4 +113,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Full esbuild documentation here. Add more to the define field in build options (only availible with a sern.build file at the moment)

    process.env

    We generate your process.env with dotenv and generate typings for process.env. Less hassle!

    -
    DISCORD_TOKEN=<your token>
    1
    process.env.DISCORD_TOKEN; // string | undefined (not typesafe :()
    \ No newline at end of file +
    DISCORD_TOKEN=<your token>
    1
    process.env.DISCORD_TOKEN; // string | undefined (not typesafe :()
    \ No newline at end of file diff --git a/tr/v4/cli/clear/index.html b/tr/v4/cli/clear/index.html index c73559d72..2932b2b02 100644 --- a/tr/v4/cli/clear/index.html +++ b/tr/v4/cli/clear/index.html @@ -55,4 +55,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem; \ No newline at end of file + \ No newline at end of file diff --git a/tr/v4/cli/extra/index.html b/tr/v4/cli/extra/index.html index c5dd961e5..2b71d1682 100644 --- a/tr/v4/cli/extra/index.html +++ b/tr/v4/cli/extra/index.html @@ -48,4 +48,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    This command is pretty straightfoward. Install utilities into your application, assuming you have a sern.config.json.

    You can use this command to install things such as a Dockerfile

    Usage

    -
    Terminal window
    sern extra
    # Choose which extra feature from the prompt, such as this:
    What extra feature do you want to add? Dockerfile (TypeScript)
    \ No newline at end of file +
    Terminal window
    sern extra
    # Choose which extra feature from the prompt, such as this:
    What extra feature do you want to add? Dockerfile (TypeScript)
    \ No newline at end of file diff --git a/tr/v4/cli/publish/index.html b/tr/v4/cli/publish/index.html index c4336c9ba..650600f5e 100644 --- a/tr/v4/cli/publish/index.html +++ b/tr/v4/cli/publish/index.html @@ -91,4 +91,4 @@ use the new service Publisher, officially maintained.

    src/commands/ping.ts
    1
    import { commandModule, Service, CommandType } from '@sern/handler'
    2
    3
    const client = Service('@sern/client');
    4
    5
    export const config = {
    6
    guildIds: ["889026545715400705"]
    7
    }
    8
    -
    9
    export default commandModule( {
    10
    type: CommandType.Slash
    11
    description: `${client.user.username}'s ping`,
    12
    execute: (ctx) => {
    13
    ctx.reply('pong')
    14
    }
    15
    })
    \ No newline at end of file +
    9
    export default commandModule( {
    10
    type: CommandType.Slash
    11
    description: `${client.user.username}'s ping`,
    12
    execute: (ctx) => {
    13
    ctx.reply('pong')
    14
    }
    15
    })
    \ No newline at end of file diff --git a/tr/v4/reference/autocomplete/index.html b/tr/v4/reference/autocomplete/index.html index 1bf33835a..6a5b23b91 100644 --- a/tr/v4/reference/autocomplete/index.html +++ b/tr/v4/reference/autocomplete/index.html @@ -51,4 +51,4 @@ We’ve implemented this functionality using a simple tree search algorithm with We can filter cheeses based on the focus object, and return only the cheeses that start with the focus object. You can do a lot more with the focus object, such as performing API calls, or implementing a fuzzy search.

    src/commands/cheese.ts
    1
    export default commandModule({
    2
    type: CommandType.Slash,
    3
    description: "show me cheese",
    4
    options: [
    5
    {
    6
    name: "list",
    7
    type: ApplicationCommandOptionType.String,
    8
    description: "pick a cheese to show",
    9
    required: true,
    10
    autocomplete: true,
    11
    command: {
    12
    onEvent: [],
    13
    execute: (ctx) => {
    14
    const focus = ctx.options.getFocused();
    15
    ctx.respond ["gouda", "parmesan", "harvarti"]
    16
    .filter((cheese) => cheese.startsWith(focus))
    17
    .map((cheese) => ({ name: cheese, value: cheese })));
    18
    },
    19
    },
    20
    },
    21
    ],
    22
    execute: (ctx) => {
    23
    const cheese = ctx.options.getString("list", true);
    24
    ctx.reply("selected cheese");
    25
    },
    26
    });
    - \ No newline at end of file + \ No newline at end of file diff --git a/tr/v4/reference/conclusion/index.html b/tr/v4/reference/conclusion/index.html index 680c691f5..3d78a4fed 100644 --- a/tr/v4/reference/conclusion/index.html +++ b/tr/v4/reference/conclusion/index.html @@ -44,4 +44,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Conclusion

    Bu içerik henüz dilinizde mevcut değil.

    If you reached this far, thank you for reading!

    We hope you have learned the necessities you need to create a bot with the sern framework.

    If you have any other questions, bugs, feature requests, concerns, please join our community server, and we’ll be glad to answer your questions!

    -

    paper logo

    \ No newline at end of file +

    paper logo

    \ No newline at end of file diff --git a/tr/v4/reference/config/index.html b/tr/v4/reference/config/index.html index 457020e56..c8da851e8 100644 --- a/tr/v4/reference/config/index.html +++ b/tr/v4/reference/config/index.html @@ -65,4 +65,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    user defined

    Feel free to supply any other constants / variables you may need.

    1
    export const OWNERS = ['182326315813306368']
    - \ No newline at end of file + \ No newline at end of file diff --git a/tr/v4/reference/dependencies/index.html b/tr/v4/reference/dependencies/index.html index cf6bf2220..6e14adb42 100644 --- a/tr/v4/reference/dependencies/index.html +++ b/tr/v4/reference/dependencies/index.html @@ -115,4 +115,4 @@ A common occurence in sern projects is to swap out the Logger for a custom one. As a result, the codebase is more modular and easier to test and refactor

    \ No newline at end of file +For example, you may prefer importing the logger service vs. injecting the Logger class as a dependency.

    \ No newline at end of file diff --git a/tr/v4/reference/error-handling/index.html b/tr/v4/reference/error-handling/index.html index cbad8dcb7..eb6f999c3 100644 --- a/tr/v4/reference/error-handling/index.html +++ b/tr/v4/reference/error-handling/index.html @@ -41,9 +41,11 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem; StarlightThemeProvider.updatePickers();

    Error handling

    Bu içerik henüz dilinizde mevcut değil.

    Error handling is important in any application, especially one which has a long lifetime of running.

    +

    Error handling

    Bu içerik henüz dilinizde mevcut değil.

    +

    Error handling is important in any application, especially one which has a long lifetime of running.

    Handling errors in command and event modules

    -

    To capture errors, enable the ‘error’ event in sern’s global event manager.

    +

    To capture errors, enable the error event in sern’s global event manager.

    • Dizinsrc/
      • Dizincommands/
      • Dizinevents/ @@ -53,6 +55,5 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;
    3
    export default eventModule({
    4
    type: EventType.Sern,
    5
    name: 'error',
    6
    execute: (err) => {
    7
    console.log('caught', err)
    8
    }
    9
    })

    If the error handler is not set, sern’s behavior is to crash the application. This respects node.js’s default behavior

    -
    \ No newline at end of file +If this happens, a memory leaks occurs and your bot will crash.

    \ No newline at end of file diff --git a/tr/v4/reference/getting-started/index.html b/tr/v4/reference/getting-started/index.html index 49016d545..789f422cf 100644 --- a/tr/v4/reference/getting-started/index.html +++ b/tr/v4/reference/getting-started/index.html @@ -44,4 +44,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Getting Started

    Bu içerik henüz dilinizde mevcut değil.

    Terminal window
    npm create @sern/bot

    Once you’ve used this command, follow the interactive prompts to create your new project.

    If you need help, feel free to ask on our Discord.

    -
    \ No newline at end of file + \ No newline at end of file diff --git a/tr/v4/reference/modules/index.html b/tr/v4/reference/modules/index.html index 3e6375314..9205895af 100644 --- a/tr/v4/reference/modules/index.html +++ b/tr/v4/reference/modules/index.html @@ -84,4 +84,4 @@ You may not see your command instantly in Discord, if so, try refreshing.

    Listening to Discord Events
    src/events/messageCreate.js
    1
    import { eventModule, EventType } from "@sern/handler";
    2
    3
    export default eventModule({
    4
    type: EventType.Discord,
    5
    execute: async (message) => {
    6
    console.log(`${message.user} said`, message.content)
    7
    },
    8
    });
    - \ No newline at end of file + \ No newline at end of file diff --git a/tr/v4/reference/plugins/index.html b/tr/v4/reference/plugins/index.html index 3c55a02fd..426ee0919 100644 --- a/tr/v4/reference/plugins/index.html +++ b/tr/v4/reference/plugins/index.html @@ -109,4 +109,4 @@ plugin chain.

    Plugins also carry an instance of all of your dependencies. Use them and use them as you please! For example, creating a plugin which logs which user uses your command

    -
    1
    import { commandModule, CommandControlPlugin, CommandType } from '@sern/handler'
    2
    export const log = CommandControlPlugin((ctx, sdt) => {
    3
    sdt
    4
    .deps['@sern/logger']
    5
    .info({ message: `${ctx.user.id} used this command from ${ctx.guild.id}` });
    6
    })
    \ No newline at end of file +
    1
    import { commandModule, CommandControlPlugin, CommandType } from '@sern/handler'
    2
    export const log = CommandControlPlugin((ctx, sdt) => {
    3
    sdt
    4
    .deps['@sern/logger']
    5
    .info({ message: `${ctx.user.id} used this command from ${ctx.guild.id}` });
    6
    })
    \ No newline at end of file diff --git a/tr/v4/reference/presence/index.html b/tr/v4/reference/presence/index.html index 4e4c149e0..029f835ef 100644 --- a/tr/v4/reference/presence/index.html +++ b/tr/v4/reference/presence/index.html @@ -57,4 +57,4 @@ An example of this is shuffling presences on intervals.

    23
    export default Presence.module({
    24
    execute: () => {
    25
    const [type, name, status] = statuses.at(0)!;
    26
    return Presence
    27
    //start your presence with this.
    28
    .of({ activities: [ { type, name } ], status })
    29
    .repeated(() => {
    30
    const [type, name, status] = [...shuffleArray(statuses)].shift()!;
    31
    return {
    32
    status,
    33
    activities: [{ type, name }]
    34
    };
    35
    }, 60_000); //repeat and setPresence with returned result every minute
    36
    }
    37
    })

    Inject dependencies

    ./src/presence.js
    1
    import { Presence } from '@sern/handler'
    2
    import { ActivityType } from 'discord.js';
    3
    -
    4
    const activity = { type: ActivityType.Listening, name: "what's bofa" };
    5
    export default Presence.module({
    6
    inject: ['@sern/logger'],
    7
    execute: (logger) => {
    8
    logger?.info({ message: "Presence changed" });
    9
    return Presence
    10
    .of({ activities: [activity], status: "idle" })
    11
    .once();
    12
    }
    13
    })
    \ No newline at end of file +
    4
    const activity = { type: ActivityType.Listening, name: "what's bofa" };
    5
    export default Presence.module({
    6
    inject: ['@sern/logger'],
    7
    execute: (logger) => {
    8
    logger?.info({ message: "Presence changed" });
    9
    return Presence
    10
    .of({ activities: [activity], status: "idle" })
    11
    .once();
    12
    }
    13
    })
    \ No newline at end of file diff --git a/tr/v4/reference/project-layout/index.html b/tr/v4/reference/project-layout/index.html index a6abb785b..2c5a7a939 100644 --- a/tr/v4/reference/project-layout/index.html +++ b/tr/v4/reference/project-layout/index.html @@ -44,4 +44,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Project Layout

    Bu içerik henüz dilinizde mevcut değil.

    A project should look like this:

    • Dizinsrc -
      • Dizincommands/
      • Dizinevents/
      • Dizinplugins/ # created automatically if running sern plugins
      • index.js
      • config.js # configuration for your entire application
    • .env
    • .gitignore
    • bun.lockb
    • package.json
    • README.md
    • sern.config.json
    • jsconfig.json # tsconfig.json if you are using typescript
    \ No newline at end of file +
  • .env
  • .gitignore
  • bun.lockb
  • package.json
  • README.md
  • sern.config.json
  • jsconfig.json # tsconfig.json if you are using typescript
  • \ No newline at end of file diff --git a/tr/v4/reference/tasks/index.html b/tr/v4/reference/tasks/index.html index 7c0e99fb6..2b769bcdc 100644 --- a/tr/v4/reference/tasks/index.html +++ b/tr/v4/reference/tasks/index.html @@ -49,4 +49,4 @@ If you haven’t already, add the tasks directory to you
    3
    export default scheduledTask({
    4
    trigger: "* * * * *",
    5
    execute: (context) => {
    6
    console.log("cron cron")
    7
    }
    8
    })

    The trigger is a cron tab pattern, you can edit and test one here.

    \ No newline at end of file +deps['@sern/scheduler'].kill(uuid) will kill the task.

    \ No newline at end of file diff --git a/tr/v4/snippets/command/index.html b/tr/v4/snippets/command/index.html index 14d98270b..239a42ae3 100644 --- a/tr/v4/snippets/command/index.html +++ b/tr/v4/snippets/command/index.html @@ -42,4 +42,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Command

    Bu içerik henüz dilinizde mevcut değil.

    src/commands/ping.js
    1
    import { commandModule, CommandType } from "@sern/handler";
    2
    -
    3
    export default commandModule({
    4
    type: CommandType.Both,
    5
    plugins: [],
    6
    description: "A ping command",
    7
    execute: async (ctx, sdt) => {
    8
    await ctx.reply("Pong 🏓");
    9
    },
    10
    });
    \ No newline at end of file +
    3
    export default commandModule({
    4
    type: CommandType.Both,
    5
    plugins: [],
    6
    description: "A ping command",
    7
    execute: async (ctx, sdt) => {
    8
    await ctx.reply("Pong 🏓");
    9
    },
    10
    });
    \ No newline at end of file diff --git a/tr/v4/snippets/event/index.html b/tr/v4/snippets/event/index.html index 470325b2b..9b5c13bc5 100644 --- a/tr/v4/snippets/event/index.html +++ b/tr/v4/snippets/event/index.html @@ -43,4 +43,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem; StarlightThemeProvider.updatePickers();

    Event

    Bu içerik henüz dilinizde mevcut değil.

    src/events/ping.js
    1
    import { eventModule, EventType } from "@sern/handler";
    2
    import type { GuildMember } from "discord.js";
    3
    4
    export default eventModule({
    5
    type: EventType.Discord,
    6
    name: "guildMemberAdd",
    7
    async execute(member) {
    8
    },
    9
    });
    \ No newline at end of file +
    4
    export default eventModule({
    5
    type: EventType.Discord,
    6
    name: "guildMemberAdd",
    7
    async execute(member: GuildMember) {
    8
    // TODO: This should be inferred
    9
    if (member.pending) return;
    10
    },
    11
    });
    \ No newline at end of file diff --git a/tr/v4/snippets/plugin/index.html b/tr/v4/snippets/plugin/index.html index 3875b5c21..8b37c6964 100644 --- a/tr/v4/snippets/plugin/index.html +++ b/tr/v4/snippets/plugin/index.html @@ -42,4 +42,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Plugins

    Bu içerik henüz dilinizde mevcut değil.

    1
    // This plugin only allows users with '182326315813306368' as their id to use this command.
    2
    import { CommandControlPlugin, CommandType, controller } from "@sern/handler";
    3
    import type { ModalSubmitInteraction } from "discord.js";
    4
    -
    5
    const OWNER = '182326315813306368';
    6
    export function ownerOnly() {
    7
    return CommandControlPlugin<CommandType.Slash>((ctx, sdt)=> {
    8
    if(ctx.user === OWNER)
    9
    return controller.next()
    10
    return controller.stop()
    11
    })
    12
    }
    \ No newline at end of file +
    5
    const OWNER = '182326315813306368';
    6
    export function ownerOnly() {
    7
    return CommandControlPlugin<CommandType.Slash>((ctx, sdt)=> {
    8
    if(ctx.user === OWNER)
    9
    return controller.next()
    10
    return controller.stop()
    11
    })
    12
    }
    \ No newline at end of file diff --git a/tr/v4/snippets/presence/index.html b/tr/v4/snippets/presence/index.html index 9d2ccd05f..992157c2e 100644 --- a/tr/v4/snippets/presence/index.html +++ b/tr/v4/snippets/presence/index.html @@ -43,4 +43,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem; StarlightThemeProvider.updatePickers();

    Presence

    Bu içerik henüz dilinizde mevcut değil.

    1
    import { Presence } from '@sern/handler'
    2
    import { ActivityType } from 'discord.js';
    3
    4
    const activity = { type: ActivityType.Listening, name: "what's bofa" };
    5
    -
    6
    export default Presence.module({
    7
    execute: () => {
    8
    return Presence
    9
    .of({ activities: [activity], status: "idle" })
    10
    .once();
    11
    }
    12
    })
    \ No newline at end of file +
    6
    export default Presence.module({
    7
    execute: () => {
    8
    return Presence
    9
    .of({ activities: [activity], status: "idle" })
    10
    .once();
    11
    }
    12
    })
    \ No newline at end of file diff --git a/tr/v4/tools/localizer/index.html b/tr/v4/tools/localizer/index.html index b18d1c372..54d9d3ada 100644 --- a/tr/v4/tools/localizer/index.html +++ b/tr/v4/tools/localizer/index.html @@ -58,4 +58,4 @@ Create the directory assets/locals. Each json file in he
    1
    execute : (ctx, { deps }) => {
    2
    //the localizer object from makeDependencies
    3
    deps.localizer
    4
    // Returns the Spanish translation for 'salute.hello'
    5
    deps.localizer.translate("salute.hello", "es-ES");
    6
    }
    1
    import { local } from '@sern/localizer';
    2
    -
    3
    // Returns the Spanish translation for 'salute.hello'
    4
    const greeting = local('salute.hello', 'es-ES');
    \ No newline at end of file +
    3
    // Returns the Spanish translation for 'salute.hello'
    4
    const greeting = local('salute.hello', 'es-ES');
    \ No newline at end of file diff --git a/tr/v4/tools/publisher/index.html b/tr/v4/tools/publisher/index.html index d5ce7a583..4b25e34a8 100644 --- a/tr/v4/tools/publisher/index.html +++ b/tr/v4/tools/publisher/index.html @@ -112,4 +112,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;
  • Also able to use IntegrationContextType enum from @sern/publisher if you don’t want to use numbers.
  • - \ No newline at end of file + \ No newline at end of file diff --git a/tr/v4/transition/from-v3/index.html b/tr/v4/transition/from-v3/index.html index 51a454150..65720aa10 100644 --- a/tr/v4/transition/from-v3/index.html +++ b/tr/v4/transition/from-v3/index.html @@ -71,4 +71,4 @@ publishing as a service

    Things marked internal are now removed from public api.

    -
    1
    import type { SernEmitter, CoreDependencies, Singleton } from "@sern/handler";
    2
    import type { SernEmitter, CoreDependencies } from "@sern/handler";
    3
    import type { SernLogger } from "./utils/Logger";
    4
    import type { Octokit } from "@octokit/rest";
    5
    declare global {
    6
    interface Dependencies extends CoreDependencies {
    7
    "@sern/logger": SernLogger;
    8
    "@sern/logger": Singleton<SernLogger>;
    9
    octokit: Octokit;
    10
    octokit: Singleton<Octokit>;
    11
    }
    12
    }
    13
    export {};
    \ No newline at end of file +
    1
    import type { SernEmitter, CoreDependencies, Singleton } from "@sern/handler";
    2
    import type { SernEmitter, CoreDependencies } from "@sern/handler";
    3
    import type { SernLogger } from "./utils/Logger";
    4
    import type { Octokit } from "@octokit/rest";
    5
    declare global {
    6
    interface Dependencies extends CoreDependencies {
    7
    "@sern/logger": SernLogger;
    8
    "@sern/logger": Singleton<SernLogger>;
    9
    octokit: Octokit;
    10
    octokit: Singleton<Octokit>;
    11
    }
    12
    }
    13
    export {};
    \ No newline at end of file diff --git a/v3/api/classes/context/index.html b/v3/api/classes/context/index.html index 028639e2a..72b0947dc 100644 --- a/v3/api/classes/context/index.html +++ b/v3/api/classes/context/index.html @@ -222,4 +222,4 @@ else, interaction.user

    Overrides

    CoreContext.wrap

    Source

    -

    src/core/structures/context.ts:113

    \ No newline at end of file +

    src/core/structures/context.ts:113

    \ No newline at end of file diff --git a/v3/api/classes/modulestore/index.html b/v3/api/classes/modulestore/index.html index 811e95343..ab5addcc6 100644 --- a/v3/api/classes/modulestore/index.html +++ b/v3/api/classes/modulestore/index.html @@ -61,4 +61,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    metadata: WeakMap<Module, CommandMeta>

    Source

    -

    src/core/structures/module-store.ts:9

    \ No newline at end of file +

    src/core/structures/module-store.ts:9

    \ No newline at end of file diff --git a/v3/api/enumerations/commandtype/index.html b/v3/api/enumerations/commandtype/index.html index 7731eae82..42ee257f7 100644 --- a/v3/api/enumerations/commandtype/index.html +++ b/v3/api/enumerations/commandtype/index.html @@ -129,4 +129,4 @@ A bitfield that discriminates command modules

    UserSelect: 128

    Source

    -

    src/core/structures/enums.ts:26

    \ No newline at end of file +

    src/core/structures/enums.ts:26

    \ No newline at end of file diff --git a/v3/api/enumerations/eventtype/index.html b/v3/api/enumerations/eventtype/index.html index b6ab08c75..01b151f8d 100644 --- a/v3/api/enumerations/eventtype/index.html +++ b/v3/api/enumerations/eventtype/index.html @@ -68,4 +68,4 @@ Could be for example, process events, database events

    The EventType for handling sern events

    Source

    -

    src/core/structures/enums.ts:55

    \ No newline at end of file +

    src/core/structures/enums.ts:55

    \ No newline at end of file diff --git a/v3/api/enumerations/payloadtype/index.html b/v3/api/enumerations/payloadtype/index.html index 139a50e81..b5d3aab07 100644 --- a/v3/api/enumerations/payloadtype/index.html +++ b/v3/api/enumerations/payloadtype/index.html @@ -64,4 +64,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    The PayloadType for a SernEmitter warning event

    Source

    -

    src/core/structures/enums.ts:102

    \ No newline at end of file +

    src/core/structures/enums.ts:102

    \ No newline at end of file diff --git a/v3/api/enumerations/plugintype/index.html b/v3/api/enumerations/plugintype/index.html index d369c1573..fa9d5cebc 100644 --- a/v3/api/enumerations/plugintype/index.html +++ b/v3/api/enumerations/plugintype/index.html @@ -59,4 +59,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    The PluginType for InitPlugins

    Source

    -

    src/core/structures/enums.ts:81

    \ No newline at end of file +

    src/core/structures/enums.ts:81

    \ No newline at end of file diff --git a/v3/api/functions/commandcontrolplugin/index.html b/v3/api/functions/commandcontrolplugin/index.html index e5dcd11ae..dbe961ab2 100644 --- a/v3/api/functions/commandcontrolplugin/index.html +++ b/v3/api/functions/commandcontrolplugin/index.html @@ -54,4 +54,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    2.5.0 @PURE

    Source

    -

    src/core/create-plugins.ts:37

    \ No newline at end of file +

    src/core/create-plugins.ts:37

    \ No newline at end of file diff --git a/v3/api/functions/commandinitplugin/index.html b/v3/api/functions/commandinitplugin/index.html index 81a31e555..1e1dd1f69 100644 --- a/v3/api/functions/commandinitplugin/index.html +++ b/v3/api/functions/commandinitplugin/index.html @@ -54,4 +54,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    2.5.0 @PURE

    Source

    -

    src/core/create-plugins.ts:28

    \ No newline at end of file +

    src/core/create-plugins.ts:28

    \ No newline at end of file diff --git a/v3/api/functions/commandmodule/index.html b/v3/api/functions/commandmodule/index.html index 298117816..f0ecb7f52 100644 --- a/v3/api/functions/commandmodule/index.html +++ b/v3/api/functions/commandmodule/index.html @@ -51,4 +51,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Since

    1.0.0 The wrapper function to define command modules for sern

    Source

    -

    src/core/modules.ts:19

    \ No newline at end of file +

    src/core/modules.ts:19

    \ No newline at end of file diff --git a/v3/api/functions/discordevent/index.html b/v3/api/functions/discordevent/index.html index c899c5a4b..3b12e01c5 100644 --- a/v3/api/functions/discordevent/index.html +++ b/v3/api/functions/discordevent/index.html @@ -58,4 +58,4 @@ where typings can be very bad.

    EventModule

    Experimental

    Source

    -

    src/core/modules.ts:47

    \ No newline at end of file +

    src/core/modules.ts:47

    \ No newline at end of file diff --git a/v3/api/functions/discordeventcontrolplugin/index.html b/v3/api/functions/discordeventcontrolplugin/index.html index a044d1be7..9d84abef0 100644 --- a/v3/api/functions/discordeventcontrolplugin/index.html +++ b/v3/api/functions/discordeventcontrolplugin/index.html @@ -57,4 +57,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    A specialized function for creating control plugins with discord.js ClientEvents. Will probably be moved one day!

    Source

    -

    src/core/create-plugins.ts:58

    \ No newline at end of file +

    src/core/create-plugins.ts:58

    \ No newline at end of file diff --git a/v3/api/functions/eventcontrolplugin/index.html b/v3/api/functions/eventcontrolplugin/index.html index 93080fa44..effa08359 100644 --- a/v3/api/functions/eventcontrolplugin/index.html +++ b/v3/api/functions/eventcontrolplugin/index.html @@ -54,4 +54,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    2.5.0 @PURE

    Source

    -

    src/core/create-plugins.ts:46

    \ No newline at end of file +

    src/core/create-plugins.ts:46

    \ No newline at end of file diff --git a/v3/api/functions/eventinitplugin/index.html b/v3/api/functions/eventinitplugin/index.html index 19cb493f8..7df3f0985 100644 --- a/v3/api/functions/eventinitplugin/index.html +++ b/v3/api/functions/eventinitplugin/index.html @@ -54,4 +54,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    2.5.0 @PURE

    Source

    -

    src/core/create-plugins.ts:19

    \ No newline at end of file +

    src/core/create-plugins.ts:19

    \ No newline at end of file diff --git a/v3/api/functions/eventmodule/index.html b/v3/api/functions/eventmodule/index.html index 65410a947..d165462c9 100644 --- a/v3/api/functions/eventmodule/index.html +++ b/v3/api/functions/eventmodule/index.html @@ -52,4 +52,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    1.0.0 The wrapper function to define event modules for sern

    Source

    -

    src/core/modules.ts:32

    \ No newline at end of file +

    src/core/modules.ts:32

    \ No newline at end of file diff --git a/v3/api/functions/makedependencies/index.html b/v3/api/functions/makedependencies/index.html index cd20e3311..2c9ffaa4e 100644 --- a/v3/api/functions/makedependencies/index.html +++ b/v3/api/functions/makedependencies/index.html @@ -51,4 +51,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Returns

    Promise<<V>(…keys) => IntoDependencies<V>>

    Source

    -

    src/core/ioc/base.ts:144

    \ No newline at end of file +

    src/core/ioc/base.ts:144

    \ No newline at end of file diff --git a/v3/api/functions/makeplugin/index.html b/v3/api/functions/makeplugin/index.html index 1e7c89d0d..0715eee20 100644 --- a/v3/api/functions/makeplugin/index.html +++ b/v3/api/functions/makeplugin/index.html @@ -52,4 +52,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Returns

    Plugin<V>

    Source

    -

    src/core/create-plugins.ts:6

    \ No newline at end of file +

    src/core/create-plugins.ts:6

    \ No newline at end of file diff --git a/v3/api/functions/service/index.html b/v3/api/functions/service/index.html index a9df418d8..d52d4552c 100644 --- a/v3/api/functions/service/index.html +++ b/v3/api/functions/service/index.html @@ -60,4 +60,4 @@ Note: this method only works AFTER your container has been initiated

    Example

    1
    const client = Service('@sern/client');

    Source

    -

    src/core/ioc/dependency-injection.ts:37

    \ No newline at end of file +

    src/core/ioc/dependency-injection.ts:37

    \ No newline at end of file diff --git a/v3/api/functions/services/index.html b/v3/api/functions/services/index.html index a80dad272..451873952 100644 --- a/v3/api/functions/services/index.html +++ b/v3/api/functions/services/index.html @@ -55,4 +55,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    3.0.0 The plural version of Service

    Source

    -

    src/core/ioc/dependency-injection.ts:47

    \ No newline at end of file +

    src/core/ioc/dependency-injection.ts:47

    \ No newline at end of file diff --git a/v3/api/functions/single/index.html b/v3/api/functions/single/index.html index 902bd5ba9..0a94af640 100644 --- a/v3/api/functions/single/index.html +++ b/v3/api/functions/single/index.html @@ -57,4 +57,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    2.0.0. Creates a singleton object.

    Source

    -

    src/core/ioc/dependency-injection.ts:11

    \ No newline at end of file +

    src/core/ioc/dependency-injection.ts:11

    \ No newline at end of file diff --git a/v3/api/functions/transient/index.html b/v3/api/functions/transient/index.html index 39eda523e..90014b639 100644 --- a/v3/api/functions/transient/index.html +++ b/v3/api/functions/transient/index.html @@ -59,4 +59,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    2.0.0 Creates a transient object

    Source

    -

    src/core/ioc/dependency-injection.ts:21

    \ No newline at end of file +

    src/core/ioc/dependency-injection.ts:21

    \ No newline at end of file diff --git a/v3/api/interfaces/bothcommand/index.html b/v3/api/interfaces/bothcommand/index.html index 830767c72..d71ed98dc 100644 --- a/v3/api/interfaces/bothcommand/index.html +++ b/v3/api/interfaces/bothcommand/index.html @@ -117,4 +117,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:124

    \ No newline at end of file +

    src/types/core-modules.ts:124

    \ No newline at end of file diff --git a/v3/api/interfaces/buttoncommand/index.html b/v3/api/interfaces/buttoncommand/index.html index 40c55c18a..3d571047d 100644 --- a/v3/api/interfaces/buttoncommand/index.html +++ b/v3/api/interfaces/buttoncommand/index.html @@ -102,4 +102,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:64

    \ No newline at end of file +

    src/types/core-modules.ts:64

    \ No newline at end of file diff --git a/v3/api/interfaces/channelselectcommand/index.html b/v3/api/interfaces/channelselectcommand/index.html index 9f32b463b..3a02aa3f7 100644 --- a/v3/api/interfaces/channelselectcommand/index.html +++ b/v3/api/interfaces/channelselectcommand/index.html @@ -102,4 +102,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:74

    \ No newline at end of file +

    src/types/core-modules.ts:74

    \ No newline at end of file diff --git a/v3/api/interfaces/commandmoduledefs/index.html b/v3/api/interfaces/commandmoduledefs/index.html index e5afcbd8e..e52aa94d6 100644 --- a/v3/api/interfaces/commandmoduledefs/index.html +++ b/v3/api/interfaces/commandmoduledefs/index.html @@ -124,4 +124,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    8: ContextMenuMsg

    Source

    -

    src/types/core-modules.ts:153

    \ No newline at end of file +

    src/types/core-modules.ts:153

    \ No newline at end of file diff --git a/v3/api/interfaces/contextmenumsg/index.html b/v3/api/interfaces/contextmenumsg/index.html index c44a93889..8f15f9739 100644 --- a/v3/api/interfaces/contextmenumsg/index.html +++ b/v3/api/interfaces/contextmenumsg/index.html @@ -102,4 +102,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:59

    \ No newline at end of file +

    src/types/core-modules.ts:59

    \ No newline at end of file diff --git a/v3/api/interfaces/contextmenuuser/index.html b/v3/api/interfaces/contextmenuuser/index.html index ba04fcde2..fd7aab0c7 100644 --- a/v3/api/interfaces/contextmenuuser/index.html +++ b/v3/api/interfaces/contextmenuuser/index.html @@ -102,4 +102,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:54

    \ No newline at end of file +

    src/types/core-modules.ts:54

    \ No newline at end of file diff --git a/v3/api/interfaces/controller/index.html b/v3/api/interfaces/controller/index.html index f821df7cd..5b3a34f02 100644 --- a/v3/api/interfaces/controller/index.html +++ b/v3/api/interfaces/controller/index.html @@ -58,4 +58,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Returns

    Err<void>

    Source

    -

    src/types/core-plugin.ts:60

    \ No newline at end of file +

    src/types/core-plugin.ts:60

    \ No newline at end of file diff --git a/v3/api/interfaces/controlplugin/index.html b/v3/api/interfaces/controlplugin/index.html index e3385ef9c..a1f3b5bce 100644 --- a/v3/api/interfaces/controlplugin/index.html +++ b/v3/api/interfaces/controlplugin/index.html @@ -60,4 +60,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    type: Control

    Source

    -

    src/types/core-plugin.ts:72

    \ No newline at end of file +

    src/types/core-plugin.ts:72

    \ No newline at end of file diff --git a/v3/api/interfaces/coredependencies/index.html b/v3/api/interfaces/coredependencies/index.html index 70c45e065..af0b3b7ca 100644 --- a/v3/api/interfaces/coredependencies/index.html +++ b/v3/api/interfaces/coredependencies/index.html @@ -95,4 +95,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Returns

    CoreModuleStore

    Source

    -

    src/types/ioc.ts:34

    \ No newline at end of file +

    src/types/ioc.ts:34

    \ No newline at end of file diff --git a/v3/api/interfaces/coremodulestore/index.html b/v3/api/interfaces/coremodulestore/index.html index 2aeba4098..92167b618 100644 --- a/v3/api/interfaces/coremodulestore/index.html +++ b/v3/api/interfaces/coremodulestore/index.html @@ -55,4 +55,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    metadata: WeakMap<Module, CommandMeta>

    Source

    -

    src/core/contracts/module-store.ts:8

    \ No newline at end of file +

    src/core/contracts/module-store.ts:8

    \ No newline at end of file diff --git a/v3/api/interfaces/discordeventcommand/index.html b/v3/api/interfaces/discordeventcommand/index.html index 4252bde6b..709ab7d63 100644 --- a/v3/api/interfaces/discordeventcommand/index.html +++ b/v3/api/interfaces/discordeventcommand/index.html @@ -104,4 +104,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.execute

    Source

    -

    src/types/core-modules.ts:108

    \ No newline at end of file +

    src/types/core-modules.ts:108

    \ No newline at end of file diff --git a/v3/api/interfaces/disposable/index.html b/v3/api/interfaces/disposable/index.html index d329aeec2..41925339b 100644 --- a/v3/api/interfaces/disposable/index.html +++ b/v3/api/interfaces/disposable/index.html @@ -51,4 +51,4 @@ Let dependencies implement this to dispose and cleanup.

    Returns

    unknown

    Source

    -

    src/core/contracts/hooks.ts:15

    \ No newline at end of file +

    src/core/contracts/hooks.ts:15

    \ No newline at end of file diff --git a/v3/api/interfaces/emitter/index.html b/v3/api/interfaces/emitter/index.html index 2b55360fe..719d57984 100644 --- a/v3/api/interfaces/emitter/index.html +++ b/v3/api/interfaces/emitter/index.html @@ -76,4 +76,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Returns

    this

    Source

    -

    src/core/contracts/emitter.ts:7

    \ No newline at end of file +

    src/core/contracts/emitter.ts:7

    \ No newline at end of file diff --git a/v3/api/interfaces/errorhandling/index.html b/v3/api/interfaces/errorhandling/index.html index 65a62d2bb..eda8c3522 100644 --- a/v3/api/interfaces/errorhandling/index.html +++ b/v3/api/interfaces/errorhandling/index.html @@ -66,4 +66,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Returns

    void

    Source

    -

    src/core/contracts/error-handling.ts:14

    \ No newline at end of file +

    src/core/contracts/error-handling.ts:14

    \ No newline at end of file diff --git a/v3/api/interfaces/eventmoduledefs/index.html b/v3/api/interfaces/eventmoduledefs/index.html index c134da31d..bd198e4ee 100644 --- a/v3/api/interfaces/eventmoduledefs/index.html +++ b/v3/api/interfaces/eventmoduledefs/index.html @@ -61,4 +61,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    3: ExternalEventCommand

    Source

    -

    src/types/core-modules.ts:167

    \ No newline at end of file +

    src/types/core-modules.ts:167

    \ No newline at end of file diff --git a/v3/api/interfaces/externaleventcommand/index.html b/v3/api/interfaces/externaleventcommand/index.html index 43616cb54..f2e119d71 100644 --- a/v3/api/interfaces/externaleventcommand/index.html +++ b/v3/api/interfaces/externaleventcommand/index.html @@ -109,4 +109,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.execute

    Source

    -

    src/types/core-modules.ts:50

    \ No newline at end of file +

    src/types/core-modules.ts:50

    \ No newline at end of file diff --git a/v3/api/interfaces/init/index.html b/v3/api/interfaces/init/index.html index 8226aa11e..e8c5eafdc 100644 --- a/v3/api/interfaces/init/index.html +++ b/v3/api/interfaces/init/index.html @@ -51,4 +51,4 @@ Let dependencies implement this to initiate some logic.

    Returns

    unknown

    Source

    -

    src/core/contracts/hooks.ts:7

    \ No newline at end of file +

    src/core/contracts/hooks.ts:7

    \ No newline at end of file diff --git a/v3/api/interfaces/initplugin/index.html b/v3/api/interfaces/initplugin/index.html index 772a8e0dd..2b3c054d0 100644 --- a/v3/api/interfaces/initplugin/index.html +++ b/v3/api/interfaces/initplugin/index.html @@ -60,4 +60,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    type: Init

    Source

    -

    src/types/core-plugin.ts:68

    \ No newline at end of file +

    src/types/core-plugin.ts:68

    \ No newline at end of file diff --git a/v3/api/interfaces/logging/index.html b/v3/api/interfaces/logging/index.html index 14a271930..391c72f06 100644 --- a/v3/api/interfaces/logging/index.html +++ b/v3/api/interfaces/logging/index.html @@ -88,4 +88,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Returns

    void

    Source

    -

    src/core/contracts/logging.ts:6

    \ No newline at end of file +

    src/core/contracts/logging.ts:6

    \ No newline at end of file diff --git a/v3/api/interfaces/mentionableselectcommand/index.html b/v3/api/interfaces/mentionableselectcommand/index.html index b6887976b..3e797fe7d 100644 --- a/v3/api/interfaces/mentionableselectcommand/index.html +++ b/v3/api/interfaces/mentionableselectcommand/index.html @@ -102,4 +102,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:84

    \ No newline at end of file +

    src/types/core-modules.ts:84

    \ No newline at end of file diff --git a/v3/api/interfaces/modalsubmitcommand/index.html b/v3/api/interfaces/modalsubmitcommand/index.html index ddcf78857..6d1468b39 100644 --- a/v3/api/interfaces/modalsubmitcommand/index.html +++ b/v3/api/interfaces/modalsubmitcommand/index.html @@ -102,4 +102,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:94

    \ No newline at end of file +

    src/types/core-modules.ts:94

    \ No newline at end of file diff --git a/v3/api/interfaces/plugin/index.html b/v3/api/interfaces/plugin/index.html index 4cec7ce9d..cd25f81a2 100644 --- a/v3/api/interfaces/plugin/index.html +++ b/v3/api/interfaces/plugin/index.html @@ -60,4 +60,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    type: PluginType

    Source

    -

    src/types/core-plugin.ts:63

    \ No newline at end of file +

    src/types/core-plugin.ts:63

    \ No newline at end of file diff --git a/v3/api/interfaces/roleselectcommand/index.html b/v3/api/interfaces/roleselectcommand/index.html index b8be46807..96d175ab9 100644 --- a/v3/api/interfaces/roleselectcommand/index.html +++ b/v3/api/interfaces/roleselectcommand/index.html @@ -102,4 +102,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:79

    \ No newline at end of file +

    src/types/core-modules.ts:79

    \ No newline at end of file diff --git a/v3/api/interfaces/sernautocompletedata/index.html b/v3/api/interfaces/sernautocompletedata/index.html index 7bb95c41f..79e5e6057 100644 --- a/v3/api/interfaces/sernautocompletedata/index.html +++ b/v3/api/interfaces/sernautocompletedata/index.html @@ -110,4 +110,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    type: String | Integer | Number

    Source

    -

    src/types/core-modules.ts:173

    \ No newline at end of file +

    src/types/core-modules.ts:173

    \ No newline at end of file diff --git a/v3/api/interfaces/serneventcommand/index.html b/v3/api/interfaces/serneventcommand/index.html index 1f56cf93e..1483ffc40 100644 --- a/v3/api/interfaces/serneventcommand/index.html +++ b/v3/api/interfaces/serneventcommand/index.html @@ -104,4 +104,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.execute

    Source

    -

    src/types/core-modules.ts:44

    \ No newline at end of file +

    src/types/core-modules.ts:44

    \ No newline at end of file diff --git a/v3/api/interfaces/serneventsmapping/index.html b/v3/api/interfaces/serneventsmapping/index.html index c6076d395..3c101868c 100644 --- a/v3/api/interfaces/serneventsmapping/index.html +++ b/v3/api/interfaces/serneventsmapping/index.html @@ -75,4 +75,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    warning: [Payload]

    Source

    -

    src/types/utility.ts:22

    \ No newline at end of file +

    src/types/utility.ts:22

    \ No newline at end of file diff --git a/v3/api/interfaces/sernsubcommanddata/index.html b/v3/api/interfaces/sernsubcommanddata/index.html index 8a811525f..4627ef39d 100644 --- a/v3/api/interfaces/sernsubcommanddata/index.html +++ b/v3/api/interfaces/sernsubcommanddata/index.html @@ -105,4 +105,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    APIApplicationCommandOptionBase.type

    Source

    -

    src/types/core-modules.ts:208

    \ No newline at end of file +

    src/types/core-modules.ts:208

    \ No newline at end of file diff --git a/v3/api/interfaces/sernsubcommandgroupdata/index.html b/v3/api/interfaces/sernsubcommandgroupdata/index.html index 7a6bb0686..06760938f 100644 --- a/v3/api/interfaces/sernsubcommandgroupdata/index.html +++ b/v3/api/interfaces/sernsubcommandgroupdata/index.html @@ -112,4 +112,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    type: SubcommandGroup

    Source

    -

    src/types/core-modules.ts:213

    \ No newline at end of file +

    src/types/core-modules.ts:213

    \ No newline at end of file diff --git a/v3/api/interfaces/slashcommand/index.html b/v3/api/interfaces/slashcommand/index.html index c520f2409..6cbfb0fe4 100644 --- a/v3/api/interfaces/slashcommand/index.html +++ b/v3/api/interfaces/slashcommand/index.html @@ -110,4 +110,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:117

    \ No newline at end of file +

    src/types/core-modules.ts:117

    \ No newline at end of file diff --git a/v3/api/interfaces/stringselectcommand/index.html b/v3/api/interfaces/stringselectcommand/index.html index b972f4c44..fdb4f8bde 100644 --- a/v3/api/interfaces/stringselectcommand/index.html +++ b/v3/api/interfaces/stringselectcommand/index.html @@ -102,4 +102,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:69

    \ No newline at end of file +

    src/types/core-modules.ts:69

    \ No newline at end of file diff --git a/v3/api/interfaces/textcommand/index.html b/v3/api/interfaces/textcommand/index.html index e285b8a16..fd21d16da 100644 --- a/v3/api/interfaces/textcommand/index.html +++ b/v3/api/interfaces/textcommand/index.html @@ -110,4 +110,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:111

    \ No newline at end of file +

    src/types/core-modules.ts:111

    \ No newline at end of file diff --git a/v3/api/interfaces/userselectcommand/index.html b/v3/api/interfaces/userselectcommand/index.html index fe87c9307..939db7822 100644 --- a/v3/api/interfaces/userselectcommand/index.html +++ b/v3/api/interfaces/userselectcommand/index.html @@ -102,4 +102,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:89

    \ No newline at end of file +

    src/types/core-modules.ts:89

    \ No newline at end of file diff --git a/v3/api/interfaces/wrapper/index.html b/v3/api/interfaces/wrapper/index.html index 498d0de84..eda6505e3 100644 --- a/v3/api/interfaces/wrapper/index.html +++ b/v3/api/interfaces/wrapper/index.html @@ -87,4 +87,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;
  • https://github.com/sern-handler/handler/pull/325
  • Source

    -

    src/types/core.ts:16

    \ No newline at end of file +

    src/types/core.ts:16

    \ No newline at end of file diff --git a/v3/api/namespaces/presence/functions/module/index.html b/v3/api/namespaces/presence/functions/module/index.html index f8a9b81ae..e97d6d7bc 100644 --- a/v3/api/namespaces/presence/functions/module/index.html +++ b/v3/api/namespaces/presence/functions/module/index.html @@ -54,4 +54,4 @@ adjacent to the file where Sern.init is CALLED.

    Returns

    Config<T>

    Source

    -

    src/core/presences.ts:28

    \ No newline at end of file +

    src/core/presences.ts:28

    \ No newline at end of file diff --git a/v3/api/namespaces/presence/functions/of/index.html b/v3/api/namespaces/presence/functions/of/index.html index 6d91b459e..cbb8cff8e 100644 --- a/v3/api/namespaces/presence/functions/of/index.html +++ b/v3/api/namespaces/presence/functions/of/index.html @@ -97,4 +97,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    optional status: Status

    Source

    -

    src/core/presences.ts:37

    \ No newline at end of file +

    src/core/presences.ts:37

    \ No newline at end of file diff --git a/v3/api/namespaces/presence/interfaces/result/index.html b/v3/api/namespaces/presence/interfaces/result/index.html index 9e9e132f5..edfbcfae8 100644 --- a/v3/api/namespaces/presence/interfaces/result/index.html +++ b/v3/api/namespaces/presence/interfaces/result/index.html @@ -86,4 +86,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    optional status: Status

    Source

    -

    src/core/presences.ts:9

    \ No newline at end of file +

    src/core/presences.ts:9

    \ No newline at end of file diff --git a/v3/api/namespaces/presence/type-aliases/config/index.html b/v3/api/namespaces/presence/type-aliases/config/index.html index ab21df842..682bf436b 100644 --- a/v3/api/namespaces/presence/type-aliases/config/index.html +++ b/v3/api/namespaces/presence/type-aliases/config/index.html @@ -60,4 +60,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    optional inject: [...T]

    Source

    -

    src/core/presences.ts:17

    \ No newline at end of file +

    src/core/presences.ts:17

    \ No newline at end of file diff --git a/v3/api/namespaces/sern/functions/init/index.html b/v3/api/namespaces/sern/functions/init/index.html index d3d12fd4c..5fd4a159a 100644 --- a/v3/api/namespaces/sern/functions/init/index.html +++ b/v3/api/namespaces/sern/functions/init/index.html @@ -53,4 +53,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Example

    src/index.ts
    1
    Sern.init({
    2
    commands: 'dist/commands',
    3
    events: 'dist/events',
    4
    })

    Source

    -

    src/sern.ts:26

    \ No newline at end of file +

    src/sern.ts:26

    \ No newline at end of file diff --git a/v3/api/readme/index.html b/v3/api/readme/index.html index 702085254..2c2d76e0e 100644 --- a/v3/api/readme/index.html +++ b/v3/api/readme/index.html @@ -130,4 +130,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;
  • makePlugin
  • single
  • transient
  • - \ No newline at end of file + \ No newline at end of file diff --git a/v3/api/type-aliases/anycommandplugin/index.html b/v3/api/type-aliases/anycommandplugin/index.html index c354728da..75d2bf6f9 100644 --- a/v3/api/type-aliases/anycommandplugin/index.html +++ b/v3/api/type-aliases/anycommandplugin/index.html @@ -45,4 +45,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    AnyCommandPlugin: ControlPlugin | InitPlugin<[InitArgs<Processed<CommandModule>>]>

    Source

    -

    src/types/core-plugin.ts:76

    \ No newline at end of file +

    src/types/core-plugin.ts:76

    \ No newline at end of file diff --git a/v3/api/type-aliases/anyeventplugin/index.html b/v3/api/type-aliases/anyeventplugin/index.html index 09b54bdab..33401ef2b 100644 --- a/v3/api/type-aliases/anyeventplugin/index.html +++ b/v3/api/type-aliases/anyeventplugin/index.html @@ -45,4 +45,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    AnyEventPlugin: ControlPlugin | InitPlugin<[InitArgs<Processed<EventModule>>]>

    Source

    -

    src/types/core-plugin.ts:77

    \ No newline at end of file +

    src/types/core-plugin.ts:77

    \ No newline at end of file diff --git a/v3/api/type-aliases/args/index.html b/v3/api/type-aliases/args/index.html index 30c6c14ff..369219f99 100644 --- a/v3/api/type-aliases/args/index.html +++ b/v3/api/type-aliases/args/index.html @@ -54,4 +54,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    text: string[]

    Source

    -

    src/types/utility.ts:16

    \ No newline at end of file +

    src/types/utility.ts:16

    \ No newline at end of file diff --git a/v3/api/type-aliases/commandmodule/index.html b/v3/api/type-aliases/commandmodule/index.html index ebf6a14c2..d0d99c6f4 100644 --- a/v3/api/type-aliases/commandmodule/index.html +++ b/v3/api/type-aliases/commandmodule/index.html @@ -45,4 +45,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    CommandModule: TextCommand | SlashCommand | BothCommand | ContextMenuUser | ContextMenuMsg | ButtonCommand | StringSelectCommand | MentionableSelectCommand | UserSelectCommand | ChannelSelectCommand | RoleSelectCommand | ModalSubmitCommand

    Source

    -

    src/types/core-modules.ts:132

    \ No newline at end of file +

    src/types/core-modules.ts:132

    \ No newline at end of file diff --git a/v3/api/type-aliases/eventmodule/index.html b/v3/api/type-aliases/eventmodule/index.html index 145be93ce..d87b325e7 100644 --- a/v3/api/type-aliases/eventmodule/index.html +++ b/v3/api/type-aliases/eventmodule/index.html @@ -45,4 +45,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    EventModule: DiscordEventCommand | SernEventCommand | ExternalEventCommand

    Source

    -

    src/types/core-modules.ts:131

    \ No newline at end of file +

    src/types/core-modules.ts:131

    \ No newline at end of file diff --git a/v3/api/type-aliases/initializable/index.html b/v3/api/type-aliases/initializable/index.html index 43515721e..720f7ff0c 100644 --- a/v3/api/type-aliases/initializable/index.html +++ b/v3/api/type-aliases/initializable/index.html @@ -49,4 +49,4 @@ If T has an init method, this will be called.

    Type parameters

    T extends Init

    Source

    -

    src/types/ioc.ts:17

    \ No newline at end of file +

    src/types/ioc.ts:17

    \ No newline at end of file diff --git a/v3/api/type-aliases/logpayload/index.html b/v3/api/type-aliases/logpayload/index.html index 899c5f5b7..16ccb563d 100644 --- a/v3/api/type-aliases/logpayload/index.html +++ b/v3/api/type-aliases/logpayload/index.html @@ -52,4 +52,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    message: T

    Source

    -

    src/core/contracts/logging.ts:11

    \ No newline at end of file +

    src/core/contracts/logging.ts:11

    \ No newline at end of file diff --git a/v3/api/type-aliases/payload/index.html b/v3/api/type-aliases/payload/index.html index d922a59cc..1a3c04e10 100644 --- a/v3/api/type-aliases/payload/index.html +++ b/v3/api/type-aliases/payload/index.html @@ -45,4 +45,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Payload: object | object | object

    Source

    -

    src/types/utility.ts:26

    \ No newline at end of file +

    src/types/utility.ts:26

    \ No newline at end of file diff --git a/v3/api/type-aliases/pluginresult/index.html b/v3/api/type-aliases/pluginresult/index.html index bcf37547a..e1e4a6ba9 100644 --- a/v3/api/type-aliases/pluginresult/index.html +++ b/v3/api/type-aliases/pluginresult/index.html @@ -45,4 +45,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    PluginResult: Awaitable<VoidResult>

    Source

    -

    src/types/core-plugin.ts:51

    \ No newline at end of file +

    src/types/core-plugin.ts:51

    \ No newline at end of file diff --git a/v3/api/type-aliases/sernoptionsdata/index.html b/v3/api/type-aliases/sernoptionsdata/index.html index 9757f2997..fc01f2dde 100644 --- a/v3/api/type-aliases/sernoptionsdata/index.html +++ b/v3/api/type-aliases/sernoptionsdata/index.html @@ -46,4 +46,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Type that replaces autocomplete with SernAutocompleteData

    Source

    -

    src/types/core-modules.ts:200

    \ No newline at end of file +

    src/types/core-modules.ts:200

    \ No newline at end of file diff --git a/v3/api/type-aliases/singleton/index.html b/v3/api/type-aliases/singleton/index.html index 7ce4101ac..07d78f0e2 100644 --- a/v3/api/type-aliases/singleton/index.html +++ b/v3/api/type-aliases/singleton/index.html @@ -51,4 +51,4 @@ T is created once and lazily.

    Returns

    T

    Source

    -

    src/types/ioc.ts:7

    \ No newline at end of file +

    src/types/ioc.ts:7

    \ No newline at end of file diff --git a/v3/api/type-aliases/slashoptions/index.html b/v3/api/type-aliases/slashoptions/index.html index 2ee5005bd..5f7294407 100644 --- a/v3/api/type-aliases/slashoptions/index.html +++ b/v3/api/type-aliases/slashoptions/index.html @@ -45,4 +45,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    SlashOptions: Omit<CommandInteractionOptionResolver, "getMessage" | "getFocused">

    Source

    -

    src/types/utility.ts:14

    \ No newline at end of file +

    src/types/utility.ts:14

    \ No newline at end of file diff --git a/v3/api/type-aliases/transient/index.html b/v3/api/type-aliases/transient/index.html index 30b269340..05615ece9 100644 --- a/v3/api/type-aliases/transient/index.html +++ b/v3/api/type-aliases/transient/index.html @@ -53,4 +53,4 @@ Every time this is called, a new object is created

    Returns

    T

    Source

    -

    src/types/ioc.ts:12

    \ No newline at end of file +

    src/types/ioc.ts:12

    \ No newline at end of file diff --git a/v3/api/variables/controller/index.html b/v3/api/variables/controller/index.html index 137175cd0..e4533ffcc 100644 --- a/v3/api/variables/controller/index.html +++ b/v3/api/variables/controller/index.html @@ -61,4 +61,4 @@ The object passed into every plugin to control a command’s behavior

    Returns

    ErrImpl<void>

    Source

    -

    src/core/create-plugins.ts:69

    \ No newline at end of file +

    src/core/create-plugins.ts:69

    \ No newline at end of file diff --git a/v3/cli/about/index.html b/v3/cli/about/index.html index db8a14887..ca95d2dd7 100644 --- a/v3/cli/about/index.html +++ b/v3/cli/about/index.html @@ -50,4 +50,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;
    If you're new to sern, run npm create @sern/bot for an interactive setup to your new bot project!
    If you have any ideas, suggestions, bug reports, kindly join our support server: https://sern.dev/discord
    Options:
    -v, --version output the version number
    -h, --help display help for command
    -
    Commands:
    init [options] Quickest way to scaffold a new project [DEPRECATED]
    plugins [options] Install plugins from https://github.com/sern-handler/awesome-plugins
    extra Easy way to add extra things in your sern project
    commands Defacto way to manage your slash commands
    help [command] display help for command
    \ No newline at end of file +
    Commands:
    init [options] Quickest way to scaffold a new project [DEPRECATED]
    plugins [options] Install plugins from https://github.com/sern-handler/awesome-plugins
    extra Easy way to add extra things in your sern project
    commands Defacto way to manage your slash commands
    help [command] display help for command
    \ No newline at end of file diff --git a/v3/cli/build/index.html b/v3/cli/build/index.html index 5b291822b..8df9ec839 100644 --- a/v3/cli/build/index.html +++ b/v3/cli/build/index.html @@ -113,4 +113,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Full esbuild documentation here. Add more to the define field in build options (only availible with a sern.build file at the moment)

    process.env

    We generate your process.env with dotenv and generate typings for process.env. Less hassle!

    -
    DISCORD_TOKEN=<your token>
    1
    process.env.DISCORD_TOKEN; // string | undefined (not typesafe :()
    \ No newline at end of file +
    DISCORD_TOKEN=<your token>
    1
    process.env.DISCORD_TOKEN; // string | undefined (not typesafe :()
    \ No newline at end of file diff --git a/v3/cli/clear/index.html b/v3/cli/clear/index.html index 95ef7c5d3..9b85a52ef 100644 --- a/v3/cli/clear/index.html +++ b/v3/cli/clear/index.html @@ -55,4 +55,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem; \ No newline at end of file + \ No newline at end of file diff --git a/v3/cli/extra/index.html b/v3/cli/extra/index.html index cfdc3c8c7..6f33b56cb 100644 --- a/v3/cli/extra/index.html +++ b/v3/cli/extra/index.html @@ -48,4 +48,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    This command is pretty straightfoward. Install utilities into your application, assuming you have a sern.config.json.

    You can use this command to install things such as a Dockerfile

    Usage

    -
    Terminal window
    sern extra
    # Choose which extra feature from the prompt, such as this:
    What extra feature do you want to add? Dockerfile (TypeScript)
    \ No newline at end of file +
    Terminal window
    sern extra
    # Choose which extra feature from the prompt, such as this:
    What extra feature do you want to add? Dockerfile (TypeScript)
    \ No newline at end of file diff --git a/v3/cli/publish/index.html b/v3/cli/publish/index.html index 334dd5b38..45655ea12 100644 --- a/v3/cli/publish/index.html +++ b/v3/cli/publish/index.html @@ -88,4 +88,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;
    src/commands/ping.ts
    1
    import { commandModule, Service, CommandType } from '@sern/handler'
    2
    3
    const client = Service('@sern/client');
    4
    5
    export const config = {
    6
    guildIds: ["889026545715400705"]
    7
    }
    8
    -
    9
    export default commandModule( {
    10
    type: CommandType.Slash
    11
    description: `${client.user.username}'s ping`,
    12
    execute: (ctx) => {
    13
    ctx.reply('pong')
    14
    }
    15
    })
    \ No newline at end of file +
    9
    export default commandModule( {
    10
    type: CommandType.Slash
    11
    description: `${client.user.username}'s ping`,
    12
    execute: (ctx) => {
    13
    ctx.reply('pong')
    14
    }
    15
    })
    \ No newline at end of file diff --git a/v3/guide/getting-started/choose-ide/index.html b/v3/guide/getting-started/choose-ide/index.html index 8551d33f0..f6c185b1e 100644 --- a/v3/guide/getting-started/choose-ide/index.html +++ b/v3/guide/getting-started/choose-ide/index.html @@ -51,4 +51,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;
  • Sublime Text
  • NotePad++
  • nvim (chad)
  • - \ No newline at end of file + \ No newline at end of file diff --git a/v3/guide/getting-started/preparing/index.html b/v3/guide/getting-started/preparing/index.html index 2ff86b8a4..94587c60b 100644 --- a/v3/guide/getting-started/preparing/index.html +++ b/v3/guide/getting-started/preparing/index.html @@ -44,4 +44,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Preparing to Code

    After installing an IDE, you need to install node. Node is necessary to use sern, as it’s based on Discord.js.

    You can download Node from the official website here.

    After you’ve downloaded Node you will need a Discord token

    -

    CONTINUE 🤓

    \ No newline at end of file +

    CONTINUE 🤓

    \ No newline at end of file diff --git a/v3/guide/walkthrough/autocomplete/index.html b/v3/guide/walkthrough/autocomplete/index.html index 206f35c33..18722b37d 100644 --- a/v3/guide/walkthrough/autocomplete/index.html +++ b/v3/guide/walkthrough/autocomplete/index.html @@ -51,4 +51,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    We can filter the cheeses based on the focus object, and return only the cheeses that start with the focus object.

    You can do a lot more with the focus object, such as performing API calls, or implementing a fuzzy search.

    src/commands/cheese.ts
    1
    export default commandModule({
    2
    type: CommandType.Slash,
    3
    description: "show me cheese",
    4
    options: [
    5
    {
    6
    name: "list",
    7
    type: ApplicationCommandOptionType.String,
    8
    description: "pick a cheese to show",
    9
    required: true,
    10
    autocomplete: true,
    11
    command: {
    12
    onEvent: [],
    13
    execute: (ctx) => {
    14
    const focus = ctx.options.getFocused();
    15
    ctx.respond(
    16
    ["gouda", "parmesan", "harvarti"]
    17
    .filter((cheese) => cheese.startsWith(focus))
    18
    .map((cheese) => ({
    19
    name: cheese,
    20
    value: cheese,
    21
    })),
    22
    );
    23
    },
    24
    },
    25
    },
    26
    ],
    27
    execute: (ctx, [, args]) => {
    28
    const cheese = args.getString("list", true);
    29
    ctx.reply("selected cheese");
    30
    },
    31
    });
    - \ No newline at end of file + \ No newline at end of file diff --git a/v3/guide/walkthrough/cli/index.html b/v3/guide/walkthrough/cli/index.html index ff1f8f423..7eadca469 100644 --- a/v3/guide/walkthrough/cli/index.html +++ b/v3/guide/walkthrough/cli/index.html @@ -56,4 +56,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Extra Utilities

    To install extra utilities into your project, run:

    Terminal window
    sern extra
    -

    We have a more in depth guide on the CLI if you’re interested in learning more.

    \ No newline at end of file +

    We have a more in depth guide on the CLI if you’re interested in learning more.

    \ No newline at end of file diff --git a/v3/guide/walkthrough/conclusion/index.html b/v3/guide/walkthrough/conclusion/index.html index ee19b25b4..f2bdbe9ac 100644 --- a/v3/guide/walkthrough/conclusion/index.html +++ b/v3/guide/walkthrough/conclusion/index.html @@ -44,4 +44,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Conclusion

    If you reached this far, thank you for reading!

    We hope you have learned the necessities you need to create a bot with the sern framework.

    If you have any other questions, bugs, feature requests, concerns, please join our community server, and we’ll be glad to answer your questions!

    -

    paper logo

    \ No newline at end of file +

    paper logo

    \ No newline at end of file diff --git a/v3/guide/walkthrough/dependency-injection/index.html b/v3/guide/walkthrough/dependency-injection/index.html index 83460cfed..948d0bdac 100644 --- a/v3/guide/walkthrough/dependency-injection/index.html +++ b/v3/guide/walkthrough/dependency-injection/index.html @@ -87,4 +87,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;
  • Now, when your bot starts, the init method will be called. 🎉

  • - \ No newline at end of file + \ No newline at end of file diff --git a/v3/guide/walkthrough/first-command/index.html b/v3/guide/walkthrough/first-command/index.html index 94d174667..9e3830fc2 100644 --- a/v3/guide/walkthrough/first-command/index.html +++ b/v3/guide/walkthrough/first-command/index.html @@ -71,4 +71,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;
  • CommandType.Slash
  • CommandType.Text
  • -

    This data structure helps interop between legacy commands and slash commands with ease.

    \ No newline at end of file +

    This data structure helps interop between legacy commands and slash commands with ease.

    \ No newline at end of file diff --git a/v3/guide/walkthrough/first-event/index.html b/v3/guide/walkthrough/first-event/index.html index 0c52d4675..8dd046a9d 100644 --- a/v3/guide/walkthrough/first-event/index.html +++ b/v3/guide/walkthrough/first-event/index.html @@ -53,4 +53,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;
    src/index.ts
    1
    await makeDependencies({
    2
    build: root => root.add({
    3
    eventlistener: single(() => new EventEmitter())
    4
    })
    5
    })

    In your event module, you can now listen to events from eventlistener, which will be emitted from the EventEmitter.

    src/events/myevent.ts
    1
    export default eventModule({
    2
    type: EventType.External,
    3
    emitter: 'eventlistener',
    4
    execute: (args) => {
    5
    console.log('Got event from eventlistener: ', args);
    6
    }
    7
    })
    - \ No newline at end of file + \ No newline at end of file diff --git a/v3/guide/walkthrough/goal/index.html b/v3/guide/walkthrough/goal/index.html index 3a5bc90f2..d1862569e 100644 --- a/v3/guide/walkthrough/goal/index.html +++ b/v3/guide/walkthrough/goal/index.html @@ -54,4 +54,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;
    4
    export class PingCommand extends Command {
    5
    public constructor(context: Command.Context) {
    6
    super(context, {
    7
    description: "Pong!",
    8
    chatInputCommand: {
    9
    register: true,
    10
    },
    11
    });
    12
    }
    13
    public async chatInputRun(interaction: CommandInteraction) {
    14
    await interaction.reply("Pong!");
    15
    }
    16
    }

    Keep in mind the sern example acts as both a slash command AND a text command. The Sapphire example is only a slash command, and it’s more code than sern.

    -

    Be smart. Choose sern.

    \ No newline at end of file +

    Be smart. Choose sern.

    \ No newline at end of file diff --git a/v3/guide/walkthrough/good-to-know/index.html b/v3/guide/walkthrough/good-to-know/index.html index f7a1c48e4..07cc4afb7 100644 --- a/v3/guide/walkthrough/good-to-know/index.html +++ b/v3/guide/walkthrough/good-to-know/index.html @@ -46,4 +46,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    For example, when installing TypeScript plugins, the language property is necessary to install from our open source repository.

    Using the CLI and running sern init --sync on pre-existing projects should install this file in the your project.

    Or, if this is a brand-new project, sern init automatically installs it.

    -
    sern.config.json
    1
    {
    2
    "language": "typescript",
    3
    "paths": {
    4
    "base": "src",
    5
    "commands": "commands"
    6
    }
    7
    }
    \ No newline at end of file +
    sern.config.json
    1
    {
    2
    "language": "typescript",
    3
    "paths": {
    4
    "base": "src",
    5
    "commands": "commands"
    6
    }
    7
    }
    \ No newline at end of file diff --git a/v3/guide/walkthrough/new-project/index.html b/v3/guide/walkthrough/new-project/index.html index e4b600bf6..a032ecab9 100644 --- a/v3/guide/walkthrough/new-project/index.html +++ b/v3/guide/walkthrough/new-project/index.html @@ -43,4 +43,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem; StarlightThemeProvider.updatePickers();

    New Project

    Terminal window
    npm create @sern/bot

    Once you’ve used this command, follow the interactive prompts to create your new project.

    -

    If you need help, feel free to ask on our Discord.

    \ No newline at end of file +

    If you need help, feel free to ask on our Discord.

    \ No newline at end of file diff --git a/v3/guide/walkthrough/plugins/index.html b/v3/guide/walkthrough/plugins/index.html index 50682bd7c..7aa4991b7 100644 --- a/v3/guide/walkthrough/plugins/index.html +++ b/v3/guide/walkthrough/plugins/index.html @@ -81,4 +81,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;
  • Before an event occurs, this command module will check if the user has the id 182326315813306368.
  • If all plugins return controller.next(), this command replies Pong 🏓
  • - \ No newline at end of file + \ No newline at end of file diff --git a/v3/guide/walkthrough/sern-emitter/index.html b/v3/guide/walkthrough/sern-emitter/index.html index 552e2d81b..52213c8b2 100644 --- a/v3/guide/walkthrough/sern-emitter/index.html +++ b/v3/guide/walkthrough/sern-emitter/index.html @@ -51,4 +51,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;
  • warn events, where it is possible to throw errors
  • You can put these and other event listeners into event modules!

    -

    You can view all events in the SernEventsMapping interface.

    \ No newline at end of file +

    You can view all events in the SernEventsMapping interface.

    \ No newline at end of file diff --git a/v3/guide/walkthrough/services/index.html b/v3/guide/walkthrough/services/index.html index 970308999..a99e51501 100644 --- a/v3/guide/walkthrough/services/index.html +++ b/v3/guide/walkthrough/services/index.html @@ -83,4 +83,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem; \ No newline at end of file + \ No newline at end of file diff --git a/v3/guide/walkthrough/transition/index.html b/v3/guide/walkthrough/transition/index.html index 0ff609e83..b5da1f791 100644 --- a/v3/guide/walkthrough/transition/index.html +++ b/v3/guide/walkthrough/transition/index.html @@ -47,4 +47,4 @@ include a dependencies.d.ts file into compilation. (Chec

    A standard project file tree:

    \ No newline at end of file +
  • .env
  • .gitignore
  • bun.lockb
  • package.json
  • README.md
  • sern.config.json
  • tsconfig.json
  • \ No newline at end of file diff --git a/v4/api/classes/context/index.html b/v4/api/classes/context/index.html index 8f5102bdf..40a53a924 100644 --- a/v4/api/classes/context/index.html +++ b/v4/api/classes/context/index.html @@ -222,4 +222,4 @@ else, interaction.user

    Returns

    Context

    Source

    -

    src/core/structures/context.ts:124

    \ No newline at end of file +

    src/core/structures/context.ts:124

    \ No newline at end of file diff --git a/v4/api/enumerations/commandtype/index.html b/v4/api/enumerations/commandtype/index.html index 206e27d6f..d9819075c 100644 --- a/v4/api/enumerations/commandtype/index.html +++ b/v4/api/enumerations/commandtype/index.html @@ -129,4 +129,4 @@ A bitfield that discriminates command modules

    UserSelect: 128

    Source

    -

    src/core/structures/enums.ts:26

    \ No newline at end of file +

    src/core/structures/enums.ts:26

    \ No newline at end of file diff --git a/v4/api/enumerations/eventtype/index.html b/v4/api/enumerations/eventtype/index.html index fa69b98dc..cb00f83cb 100644 --- a/v4/api/enumerations/eventtype/index.html +++ b/v4/api/enumerations/eventtype/index.html @@ -68,4 +68,4 @@ Could be for example, process events, database events

    The EventType for handling sern events

    Source

    -

    src/core/structures/enums.ts:55

    \ No newline at end of file +

    src/core/structures/enums.ts:55

    \ No newline at end of file diff --git a/v4/api/enumerations/payloadtype/index.html b/v4/api/enumerations/payloadtype/index.html index 0c0f32d15..2471b86cc 100644 --- a/v4/api/enumerations/payloadtype/index.html +++ b/v4/api/enumerations/payloadtype/index.html @@ -64,4 +64,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Warning: "warning"

    Source

    -

    src/core/structures/enums.ts:94

    \ No newline at end of file +

    src/core/structures/enums.ts:94

    \ No newline at end of file diff --git a/v4/api/enumerations/plugintype/index.html b/v4/api/enumerations/plugintype/index.html index 50ba402d7..00bb72d7f 100644 --- a/v4/api/enumerations/plugintype/index.html +++ b/v4/api/enumerations/plugintype/index.html @@ -59,4 +59,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    The PluginType for InitPlugins

    Source

    -

    src/core/structures/enums.ts:81

    \ No newline at end of file +

    src/core/structures/enums.ts:81

    \ No newline at end of file diff --git a/v4/api/functions/commandcontrolplugin/index.html b/v4/api/functions/commandcontrolplugin/index.html index f58af326f..df0755e28 100644 --- a/v4/api/functions/commandcontrolplugin/index.html +++ b/v4/api/functions/commandcontrolplugin/index.html @@ -74,4 +74,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;
  • Useful for implementing preconditions, filters, and command preprocessing
  • Source

    -

    src/core/plugin.ts:120

    \ No newline at end of file +

    src/core/plugin.ts:120

    \ No newline at end of file diff --git a/v4/api/functions/commandinitplugin/index.html b/v4/api/functions/commandinitplugin/index.html index 28d381a78..39a107e3b 100644 --- a/v4/api/functions/commandinitplugin/index.html +++ b/v4/api/functions/commandinitplugin/index.html @@ -69,4 +69,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;
  • Use controller.stop(reason) to halt plugin execution
  • Source

    -

    src/core/plugin.ts:62

    \ No newline at end of file +

    src/core/plugin.ts:62

    \ No newline at end of file diff --git a/v4/api/functions/commandmodule/index.html b/v4/api/functions/commandmodule/index.html index 459192e06..6e3fe3833 100644 --- a/v4/api/functions/commandmodule/index.html +++ b/v4/api/functions/commandmodule/index.html @@ -58,4 +58,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Example

    1
    // Command with component interaction
    2
    export default commandModule({
    3
    type: CommandType.Slash,
    4
    description: "Interactive command",
    5
    execute: async (ctx) => {
    6
    const button = new ButtonBuilder({
    7
    customId: "btn/someData",
    8
    label: "Click me",
    9
    style: ButtonStyle.Primary
    10
    });
    11
    await ctx.reply({
    12
    content: "Interactive message",
    13
    components: [new ActionRowBuilder().addComponents(button)]
    14
    });
    15
    }
    16
    });

    Source

    -

    src/core/modules.ts:47

    \ No newline at end of file +

    src/core/modules.ts:47

    \ No newline at end of file diff --git a/v4/api/functions/discordevent/index.html b/v4/api/functions/discordevent/index.html index 842fdb18b..160a8adfe 100644 --- a/v4/api/functions/discordevent/index.html +++ b/v4/api/functions/discordevent/index.html @@ -58,4 +58,4 @@ where typings were bad.

    Returns

    Module

    Source

    -

    src/core/modules.ts:97

    \ No newline at end of file +

    src/core/modules.ts:97

    \ No newline at end of file diff --git a/v4/api/functions/eventinitplugin/index.html b/v4/api/functions/eventinitplugin/index.html index 4cabca57e..2dae3fc3d 100644 --- a/v4/api/functions/eventinitplugin/index.html +++ b/v4/api/functions/eventinitplugin/index.html @@ -51,4 +51,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Since

    2.5.0

    Source

    -

    src/core/plugin.ts:15

    \ No newline at end of file +

    src/core/plugin.ts:15

    \ No newline at end of file diff --git a/v4/api/functions/eventmodule/index.html b/v4/api/functions/eventmodule/index.html index a00b29903..2af54978e 100644 --- a/v4/api/functions/eventmodule/index.html +++ b/v4/api/functions/eventmodule/index.html @@ -63,4 +63,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Example

    1
    // Custom sern event
    2
    export default eventModule({
    3
    type: EventType.Sern,
    4
    execute: async (eventData) => {
    5
    // Handle sern-specific event
    6
    }
    7
    });

    Source

    -

    src/core/modules.ts:83

    \ No newline at end of file +

    src/core/modules.ts:83

    \ No newline at end of file diff --git a/v4/api/functions/makedependencies/index.html b/v4/api/functions/makedependencies/index.html index e5c0525eb..fffc8355e 100644 --- a/v4/api/functions/makedependencies/index.html +++ b/v4/api/functions/makedependencies/index.html @@ -53,4 +53,4 @@ This is required to start the handler, and is to be called before Sern.init.

    Example

    1
    await makeDependencies(({ add }) => {
    2
    add('@sern/client', new Client({ intents, partials })
    3
    })

    Source

    -

    src/core/ioc.ts:63

    \ No newline at end of file +

    src/core/ioc.ts:63

    \ No newline at end of file diff --git a/v4/api/functions/makeplugin/index.html b/v4/api/functions/makeplugin/index.html index 7d3c448f1..d5584942e 100644 --- a/v4/api/functions/makeplugin/index.html +++ b/v4/api/functions/makeplugin/index.html @@ -52,4 +52,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Returns

    Plugin<V>

    Source

    -

    src/core/plugin.ts:6

    \ No newline at end of file +

    src/core/plugin.ts:6

    \ No newline at end of file diff --git a/v4/api/functions/service/index.html b/v4/api/functions/service/index.html index eb6ee920b..b6687773c 100644 --- a/v4/api/functions/service/index.html +++ b/v4/api/functions/service/index.html @@ -62,4 +62,4 @@ Note: this method only works AFTER your container has been initiated

    Throws

    if container is absent or not present

    Source

    -

    src/core/ioc.ts:93

    \ No newline at end of file +

    src/core/ioc.ts:93

    \ No newline at end of file diff --git a/v4/api/functions/services/index.html b/v4/api/functions/services/index.html index cfe8cc493..dd4fc9c41 100644 --- a/v4/api/functions/services/index.html +++ b/v4/api/functions/services/index.html @@ -57,4 +57,4 @@ The plural version of Servi

    Throws

    if container is absent or not present

    Source

    -

    src/core/ioc.ts:103

    \ No newline at end of file +

    src/core/ioc.ts:103

    \ No newline at end of file diff --git a/v4/api/functions/single/index.html b/v4/api/functions/single/index.html index f2eff8612..c6cf57cd8 100644 --- a/v4/api/functions/single/index.html +++ b/v4/api/functions/single/index.html @@ -52,4 +52,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Returns

    T

    Source

    -

    src/core/ioc.ts:112

    \ No newline at end of file +

    src/core/ioc.ts:112

    \ No newline at end of file diff --git a/v4/api/functions/transient/index.html b/v4/api/functions/transient/index.html index 2e95d5e7d..603a02217 100644 --- a/v4/api/functions/transient/index.html +++ b/v4/api/functions/transient/index.html @@ -55,4 +55,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    2.0.0 Creates a transient object

    Source

    -

    src/core/ioc.ts:123

    \ No newline at end of file +

    src/core/ioc.ts:123

    \ No newline at end of file diff --git a/v4/api/interfaces/bothcommand/index.html b/v4/api/interfaces/bothcommand/index.html index 365914a8c..9752faf45 100644 --- a/v4/api/interfaces/bothcommand/index.html +++ b/v4/api/interfaces/bothcommand/index.html @@ -174,4 +174,4 @@ to attach metadata or configuration to modules.

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:283

    \ No newline at end of file +

    src/types/core-modules.ts:283

    \ No newline at end of file diff --git a/v4/api/interfaces/buttoncommand/index.html b/v4/api/interfaces/buttoncommand/index.html index 1b1d87a40..a587352bd 100644 --- a/v4/api/interfaces/buttoncommand/index.html +++ b/v4/api/interfaces/buttoncommand/index.html @@ -167,4 +167,4 @@ to attach metadata or configuration to modules.

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:225

    \ No newline at end of file +

    src/types/core-modules.ts:225

    \ No newline at end of file diff --git a/v4/api/interfaces/channelselectcommand/index.html b/v4/api/interfaces/channelselectcommand/index.html index 96c81f8f9..3bc8ec1a3 100644 --- a/v4/api/interfaces/channelselectcommand/index.html +++ b/v4/api/interfaces/channelselectcommand/index.html @@ -167,4 +167,4 @@ to attach metadata or configuration to modules.

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:235

    \ No newline at end of file +

    src/types/core-modules.ts:235

    \ No newline at end of file diff --git a/v4/api/interfaces/commandmoduledefs/index.html b/v4/api/interfaces/commandmoduledefs/index.html index 1289dc48e..a8a820565 100644 --- a/v4/api/interfaces/commandmoduledefs/index.html +++ b/v4/api/interfaces/commandmoduledefs/index.html @@ -124,4 +124,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    8: ContextMenuMsg

    Source

    -

    src/types/core-modules.ts:310

    \ No newline at end of file +

    src/types/core-modules.ts:310

    \ No newline at end of file diff --git a/v4/api/interfaces/contextmenumsg/index.html b/v4/api/interfaces/contextmenumsg/index.html index 5f0b48fe4..1bf7815c2 100644 --- a/v4/api/interfaces/contextmenumsg/index.html +++ b/v4/api/interfaces/contextmenumsg/index.html @@ -167,4 +167,4 @@ to attach metadata or configuration to modules.

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:220

    \ No newline at end of file +

    src/types/core-modules.ts:220

    \ No newline at end of file diff --git a/v4/api/interfaces/contextmenuuser/index.html b/v4/api/interfaces/contextmenuuser/index.html index 6a20872c8..0f43aae6a 100644 --- a/v4/api/interfaces/contextmenuuser/index.html +++ b/v4/api/interfaces/contextmenuuser/index.html @@ -167,4 +167,4 @@ to attach metadata or configuration to modules.

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:215

    \ No newline at end of file +

    src/types/core-modules.ts:215

    \ No newline at end of file diff --git a/v4/api/interfaces/controlplugin/index.html b/v4/api/interfaces/controlplugin/index.html index df3ebd12c..05862cd0f 100644 --- a/v4/api/interfaces/controlplugin/index.html +++ b/v4/api/interfaces/controlplugin/index.html @@ -68,4 +68,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Plugin.type

    Source

    -

    src/types/core-plugin.ts:52

    \ No newline at end of file +

    src/types/core-plugin.ts:52

    \ No newline at end of file diff --git a/v4/api/interfaces/coredependencies/index.html b/v4/api/interfaces/coredependencies/index.html index fdfcc7200..5015f615a 100644 --- a/v4/api/interfaces/coredependencies/index.html +++ b/v4/api/interfaces/coredependencies/index.html @@ -90,4 +90,4 @@ by module.meta.id -> Module

    @sern/scheduler: TaskScheduler

    Source

    -

    src/core/ioc.ts:161

    \ No newline at end of file +

    src/core/ioc.ts:161

    \ No newline at end of file diff --git a/v4/api/interfaces/discordeventcommand/index.html b/v4/api/interfaces/discordeventcommand/index.html index f7b631b88..5b04b632b 100644 --- a/v4/api/interfaces/discordeventcommand/index.html +++ b/v4/api/interfaces/discordeventcommand/index.html @@ -168,4 +168,4 @@ to attach metadata or configuration to modules.

    Overrides

    Module.execute

    Source

    -

    src/types/core-modules.ts:268

    \ No newline at end of file +

    src/types/core-modules.ts:268

    \ No newline at end of file diff --git a/v4/api/interfaces/disposable/index.html b/v4/api/interfaces/disposable/index.html index 1b39981cc..e501a7bc8 100644 --- a/v4/api/interfaces/disposable/index.html +++ b/v4/api/interfaces/disposable/index.html @@ -51,4 +51,4 @@ Let dependencies implement this to dispose and cleanup.

    Returns

    unknown

    Source

    -

    src/core/interfaces.ts:17

    \ No newline at end of file +

    src/core/interfaces.ts:17

    \ No newline at end of file diff --git a/v4/api/interfaces/emitter/index.html b/v4/api/interfaces/emitter/index.html index 35321845f..db88c0eb3 100644 --- a/v4/api/interfaces/emitter/index.html +++ b/v4/api/interfaces/emitter/index.html @@ -76,4 +76,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Returns

    this

    Source

    -

    src/core/interfaces.ts:23

    \ No newline at end of file +

    src/core/interfaces.ts:23

    \ No newline at end of file diff --git a/v4/api/interfaces/errorhandling/index.html b/v4/api/interfaces/errorhandling/index.html index 4a8c392ec..1e236e4f1 100644 --- a/v4/api/interfaces/errorhandling/index.html +++ b/v4/api/interfaces/errorhandling/index.html @@ -66,4 +66,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Returns

    void

    Source

    -

    src/core/interfaces.ts:41

    \ No newline at end of file +

    src/core/interfaces.ts:41

    \ No newline at end of file diff --git a/v4/api/interfaces/eventmoduledefs/index.html b/v4/api/interfaces/eventmoduledefs/index.html index 07cee1ce6..8bd82393e 100644 --- a/v4/api/interfaces/eventmoduledefs/index.html +++ b/v4/api/interfaces/eventmoduledefs/index.html @@ -63,4 +63,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    2: ExternalEventCommand

    Source

    -

    src/types/core-modules.ts:324

    \ No newline at end of file +

    src/types/core-modules.ts:324

    \ No newline at end of file diff --git a/v4/api/interfaces/externaleventcommand/index.html b/v4/api/interfaces/externaleventcommand/index.html index 4e2b5cac8..151f1fb9e 100644 --- a/v4/api/interfaces/externaleventcommand/index.html +++ b/v4/api/interfaces/externaleventcommand/index.html @@ -173,4 +173,4 @@ to attach metadata or configuration to modules.

    Overrides

    Module.execute

    Source

    -

    src/types/core-modules.ts:210

    \ No newline at end of file +

    src/types/core-modules.ts:210

    \ No newline at end of file diff --git a/v4/api/interfaces/init/index.html b/v4/api/interfaces/init/index.html index 18a987d3f..c1d562716 100644 --- a/v4/api/interfaces/init/index.html +++ b/v4/api/interfaces/init/index.html @@ -51,4 +51,4 @@ Let dependencies implement this to initiate some logic.

    Returns

    unknown

    Source

    -

    src/core/interfaces.ts:9

    \ No newline at end of file +

    src/core/interfaces.ts:9

    \ No newline at end of file diff --git a/v4/api/interfaces/initplugin/index.html b/v4/api/interfaces/initplugin/index.html index 1001c3f32..b9b4d4712 100644 --- a/v4/api/interfaces/initplugin/index.html +++ b/v4/api/interfaces/initplugin/index.html @@ -68,4 +68,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Plugin.type

    Source

    -

    src/types/core-plugin.ts:48

    \ No newline at end of file +

    src/types/core-plugin.ts:48

    \ No newline at end of file diff --git a/v4/api/interfaces/logging/index.html b/v4/api/interfaces/logging/index.html index 55c4e9604..6ddd252bc 100644 --- a/v4/api/interfaces/logging/index.html +++ b/v4/api/interfaces/logging/index.html @@ -88,4 +88,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Returns

    void

    Source

    -

    src/core/interfaces.ts:50

    \ No newline at end of file +

    src/core/interfaces.ts:50

    \ No newline at end of file diff --git a/v4/api/interfaces/mentionableselectcommand/index.html b/v4/api/interfaces/mentionableselectcommand/index.html index 41bd7e190..94f70ba33 100644 --- a/v4/api/interfaces/mentionableselectcommand/index.html +++ b/v4/api/interfaces/mentionableselectcommand/index.html @@ -167,4 +167,4 @@ to attach metadata or configuration to modules.

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:245

    \ No newline at end of file +

    src/types/core-modules.ts:245

    \ No newline at end of file diff --git a/v4/api/interfaces/modalsubmitcommand/index.html b/v4/api/interfaces/modalsubmitcommand/index.html index 571a86524..a8741cde7 100644 --- a/v4/api/interfaces/modalsubmitcommand/index.html +++ b/v4/api/interfaces/modalsubmitcommand/index.html @@ -167,4 +167,4 @@ to attach metadata or configuration to modules.

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:255

    \ No newline at end of file +

    src/types/core-modules.ts:255

    \ No newline at end of file diff --git a/v4/api/interfaces/module/index.html b/v4/api/interfaces/module/index.html index 36a2ee7b9..c98b8b9c6 100644 --- a/v4/api/interfaces/module/index.html +++ b/v4/api/interfaces/module/index.html @@ -164,4 +164,4 @@ to attach metadata or configuration to modules.

    Returns

    any

    Source

    -

    src/types/core-modules.ts:196

    \ No newline at end of file +

    src/types/core-modules.ts:196

    \ No newline at end of file diff --git a/v4/api/interfaces/plugin/index.html b/v4/api/interfaces/plugin/index.html index 4e99ed280..b83c6a010 100644 --- a/v4/api/interfaces/plugin/index.html +++ b/v4/api/interfaces/plugin/index.html @@ -65,4 +65,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    type: PluginType

    Source

    -

    src/types/core-plugin.ts:43

    \ No newline at end of file +

    src/types/core-plugin.ts:43

    \ No newline at end of file diff --git a/v4/api/interfaces/roleselectcommand/index.html b/v4/api/interfaces/roleselectcommand/index.html index 5e6c0ef04..87afd5755 100644 --- a/v4/api/interfaces/roleselectcommand/index.html +++ b/v4/api/interfaces/roleselectcommand/index.html @@ -167,4 +167,4 @@ to attach metadata or configuration to modules.

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:240

    \ No newline at end of file +

    src/types/core-modules.ts:240

    \ No newline at end of file diff --git a/v4/api/interfaces/sernautocompletedata/index.html b/v4/api/interfaces/sernautocompletedata/index.html index 25d244003..ce819abb1 100644 --- a/v4/api/interfaces/sernautocompletedata/index.html +++ b/v4/api/interfaces/sernautocompletedata/index.html @@ -110,4 +110,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    type: String | Integer | Number

    Source

    -

    src/types/core-modules.ts:330

    \ No newline at end of file +

    src/types/core-modules.ts:330

    \ No newline at end of file diff --git a/v4/api/interfaces/serneventcommand/index.html b/v4/api/interfaces/serneventcommand/index.html index 05e57b485..4c05dad28 100644 --- a/v4/api/interfaces/serneventcommand/index.html +++ b/v4/api/interfaces/serneventcommand/index.html @@ -168,4 +168,4 @@ to attach metadata or configuration to modules.

    Overrides

    Module.execute

    Source

    -

    src/types/core-modules.ts:203

    \ No newline at end of file +

    src/types/core-modules.ts:203

    \ No newline at end of file diff --git a/v4/api/interfaces/serneventsmapping/index.html b/v4/api/interfaces/serneventsmapping/index.html index 4bc1fdda8..7b2a91ba1 100644 --- a/v4/api/interfaces/serneventsmapping/index.html +++ b/v4/api/interfaces/serneventsmapping/index.html @@ -75,4 +75,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    warning: [Payload]

    Source

    -

    src/types/utility.ts:13

    \ No newline at end of file +

    src/types/utility.ts:13

    \ No newline at end of file diff --git a/v4/api/interfaces/sernsubcommanddata/index.html b/v4/api/interfaces/sernsubcommanddata/index.html index eeb07a2f8..41c44a7e9 100644 --- a/v4/api/interfaces/sernsubcommanddata/index.html +++ b/v4/api/interfaces/sernsubcommanddata/index.html @@ -105,4 +105,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    APIApplicationCommandOptionBase.type

    Source

    -

    src/types/core-modules.ts:368

    \ No newline at end of file +

    src/types/core-modules.ts:368

    \ No newline at end of file diff --git a/v4/api/interfaces/sernsubcommandgroupdata/index.html b/v4/api/interfaces/sernsubcommandgroupdata/index.html index fddf03edd..91e20cbca 100644 --- a/v4/api/interfaces/sernsubcommandgroupdata/index.html +++ b/v4/api/interfaces/sernsubcommandgroupdata/index.html @@ -112,4 +112,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    type: SubcommandGroup

    Source

    -

    src/types/core-modules.ts:373

    \ No newline at end of file +

    src/types/core-modules.ts:373

    \ No newline at end of file diff --git a/v4/api/interfaces/slashcommand/index.html b/v4/api/interfaces/slashcommand/index.html index aecf96394..ea6668cfa 100644 --- a/v4/api/interfaces/slashcommand/index.html +++ b/v4/api/interfaces/slashcommand/index.html @@ -174,4 +174,4 @@ to attach metadata or configuration to modules.

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:276

    \ No newline at end of file +

    src/types/core-modules.ts:276

    \ No newline at end of file diff --git a/v4/api/interfaces/stringselectcommand/index.html b/v4/api/interfaces/stringselectcommand/index.html index cfb90c84c..229bd1e43 100644 --- a/v4/api/interfaces/stringselectcommand/index.html +++ b/v4/api/interfaces/stringselectcommand/index.html @@ -167,4 +167,4 @@ to attach metadata or configuration to modules.

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:230

    \ No newline at end of file +

    src/types/core-modules.ts:230

    \ No newline at end of file diff --git a/v4/api/interfaces/textcommand/index.html b/v4/api/interfaces/textcommand/index.html index c94d04320..63503b71c 100644 --- a/v4/api/interfaces/textcommand/index.html +++ b/v4/api/interfaces/textcommand/index.html @@ -167,4 +167,4 @@ to attach metadata or configuration to modules.

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:271

    \ No newline at end of file +

    src/types/core-modules.ts:271

    \ No newline at end of file diff --git a/v4/api/interfaces/userselectcommand/index.html b/v4/api/interfaces/userselectcommand/index.html index cd7278fe5..f760df29b 100644 --- a/v4/api/interfaces/userselectcommand/index.html +++ b/v4/api/interfaces/userselectcommand/index.html @@ -167,4 +167,4 @@ to attach metadata or configuration to modules.

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:250

    \ No newline at end of file +

    src/types/core-modules.ts:250

    \ No newline at end of file diff --git a/v4/api/namespaces/sern/functions/init/index.html b/v4/api/namespaces/sern/functions/init/index.html index 1c4fa1dbb..8d91bbf0d 100644 --- a/v4/api/namespaces/sern/functions/init/index.html +++ b/v4/api/namespaces/sern/functions/init/index.html @@ -55,4 +55,4 @@ Function to start the handler up

    Example

    src/index.ts
    1
    Sern.init({
    2
    commands: 'dist/commands',
    3
    events: 'dist/events',
    4
    })

    Source

    -

    src/sern.ts:32

    \ No newline at end of file +

    src/sern.ts:32

    \ No newline at end of file diff --git a/v4/api/readme/index.html b/v4/api/readme/index.html index 27a4b2360..ff9a86d11 100644 --- a/v4/api/readme/index.html +++ b/v4/api/readme/index.html @@ -125,4 +125,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;
  • scheduledTask
  • single
  • transient
  • - \ No newline at end of file + \ No newline at end of file diff --git a/v4/api/type-aliases/anyplugin/index.html b/v4/api/type-aliases/anyplugin/index.html index d94d30769..d312f9560 100644 --- a/v4/api/type-aliases/anyplugin/index.html +++ b/v4/api/type-aliases/anyplugin/index.html @@ -45,4 +45,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    AnyPlugin: ControlPlugin | InitPlugin<[InitArgs<Processed<Module>>]>

    Source

    -

    src/types/core-plugin.ts:55

    \ No newline at end of file +

    src/types/core-plugin.ts:55

    \ No newline at end of file diff --git a/v4/api/type-aliases/commandmodule/index.html b/v4/api/type-aliases/commandmodule/index.html index 456de7cc8..d95ee3efb 100644 --- a/v4/api/type-aliases/commandmodule/index.html +++ b/v4/api/type-aliases/commandmodule/index.html @@ -45,4 +45,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    CommandModule: TextCommand | SlashCommand | BothCommand | ContextMenuUser | ContextMenuMsg | ButtonCommand | StringSelectCommand | MentionableSelectCommand | UserSelectCommand | ChannelSelectCommand | RoleSelectCommand | ModalSubmitCommand

    Source

    -

    src/types/core-modules.ts:290

    \ No newline at end of file +

    src/types/core-modules.ts:290

    \ No newline at end of file diff --git a/v4/api/type-aliases/controller/index.html b/v4/api/type-aliases/controller/index.html index 6efac4947..abf353898 100644 --- a/v4/api/type-aliases/controller/index.html +++ b/v4/api/type-aliases/controller/index.html @@ -45,4 +45,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Controller: typeof controller

    Source

    -

    src/core/plugin.ts:137

    \ No newline at end of file +

    src/core/plugin.ts:137

    \ No newline at end of file diff --git a/v4/api/type-aliases/eventmodule/index.html b/v4/api/type-aliases/eventmodule/index.html index 12bdb89f0..227db9c9e 100644 --- a/v4/api/type-aliases/eventmodule/index.html +++ b/v4/api/type-aliases/eventmodule/index.html @@ -45,4 +45,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    EventModule: DiscordEventCommand | SernEventCommand | ExternalEventCommand

    Source

    -

    src/types/core-modules.ts:289

    \ No newline at end of file +

    src/types/core-modules.ts:289

    \ No newline at end of file diff --git a/v4/api/type-aliases/logpayload/index.html b/v4/api/type-aliases/logpayload/index.html index 297f0de39..b01f86c41 100644 --- a/v4/api/type-aliases/logpayload/index.html +++ b/v4/api/type-aliases/logpayload/index.html @@ -52,4 +52,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    message: T

    Source

    -

    src/core/interfaces.ts:55

    \ No newline at end of file +

    src/core/interfaces.ts:55

    \ No newline at end of file diff --git a/v4/api/type-aliases/payload/index.html b/v4/api/type-aliases/payload/index.html index 43c63f6f1..5123bced3 100644 --- a/v4/api/type-aliases/payload/index.html +++ b/v4/api/type-aliases/payload/index.html @@ -45,4 +45,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Payload: object | object | object

    Source

    -

    src/types/utility.ts:17

    \ No newline at end of file +

    src/types/utility.ts:17

    \ No newline at end of file diff --git a/v4/api/type-aliases/pluginresult/index.html b/v4/api/type-aliases/pluginresult/index.html index 014e5d038..4d9c128c5 100644 --- a/v4/api/type-aliases/pluginresult/index.html +++ b/v4/api/type-aliases/pluginresult/index.html @@ -45,4 +45,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    PluginResult: Awaitable<Result<Record<string, unknown> | undefined, string | undefined>>

    Source

    -

    src/types/core-plugin.ts:36

    \ No newline at end of file +

    src/types/core-plugin.ts:36

    \ No newline at end of file diff --git a/v4/api/type-aliases/sernoptionsdata/index.html b/v4/api/type-aliases/sernoptionsdata/index.html index d7a92fa10..fdde7d8ff 100644 --- a/v4/api/type-aliases/sernoptionsdata/index.html +++ b/v4/api/type-aliases/sernoptionsdata/index.html @@ -46,4 +46,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Type that replaces autocomplete with SernAutocompleteData

    Source

    -

    src/types/core-modules.ts:360

    \ No newline at end of file +

    src/types/core-modules.ts:360

    \ No newline at end of file diff --git a/v4/api/variables/controller/index.html b/v4/api/variables/controller/index.html index 4516b1087..1b9ca0e13 100644 --- a/v4/api/variables/controller/index.html +++ b/v4/api/variables/controller/index.html @@ -81,4 +81,4 @@ The object passed into every plugin to control a command’s behavior

    readonly ok: false = false

    Source

    -

    src/core/plugin.ts:131

    \ No newline at end of file +

    src/core/plugin.ts:131

    \ No newline at end of file diff --git a/v4/api/variables/presence/index.html b/v4/api/variables/presence/index.html index 575016dac..69ad6708c 100644 --- a/v4/api/variables/presence/index.html +++ b/v4/api/variables/presence/index.html @@ -115,4 +115,4 @@ adjacent to the file where Sern.init is CALLED.

    optional status: Status

    Source

    -

    src/core/presences.ts:9

    \ No newline at end of file +

    src/core/presences.ts:9

    \ No newline at end of file diff --git a/v4/cli/about/index.html b/v4/cli/about/index.html index e82a03080..943bf63d2 100644 --- a/v4/cli/about/index.html +++ b/v4/cli/about/index.html @@ -50,4 +50,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;
    If you're new to sern, run npm create @sern/bot for an interactive setup to your new bot project!
    If you have any ideas, suggestions, bug reports, kindly join our support server: https://sern.dev/discord
    Options:
    -v, --version output the version number
    -h, --help display help for command
    -
    Commands:
    init [options] Quickest way to scaffold a new project [DEPRECATED]
    plugins [options] Install plugins from https://github.com/sern-handler/awesome-plugins
    extra Easy way to add extra things in your sern project
    commands Defacto way to manage your slash commands
    help [command] display help for command
    \ No newline at end of file +
    Commands:
    init [options] Quickest way to scaffold a new project [DEPRECATED]
    plugins [options] Install plugins from https://github.com/sern-handler/awesome-plugins
    extra Easy way to add extra things in your sern project
    commands Defacto way to manage your slash commands
    help [command] display help for command
    \ No newline at end of file diff --git a/v4/cli/build/index.html b/v4/cli/build/index.html index 29d6c6568..9c47d845d 100644 --- a/v4/cli/build/index.html +++ b/v4/cli/build/index.html @@ -113,4 +113,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Full esbuild documentation here. Add more to the define field in build options (only availible with a sern.build file at the moment)

    process.env

    We generate your process.env with dotenv and generate typings for process.env. Less hassle!

    -
    DISCORD_TOKEN=<your token>
    1
    process.env.DISCORD_TOKEN; // string | undefined (not typesafe :()
    \ No newline at end of file +
    DISCORD_TOKEN=<your token>
    1
    process.env.DISCORD_TOKEN; // string | undefined (not typesafe :()
    \ No newline at end of file diff --git a/v4/cli/clear/index.html b/v4/cli/clear/index.html index b073ac2a5..f90b7b498 100644 --- a/v4/cli/clear/index.html +++ b/v4/cli/clear/index.html @@ -55,4 +55,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem; \ No newline at end of file + \ No newline at end of file diff --git a/v4/cli/extra/index.html b/v4/cli/extra/index.html index b8e32e133..3a14e1de5 100644 --- a/v4/cli/extra/index.html +++ b/v4/cli/extra/index.html @@ -48,4 +48,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    This command is pretty straightfoward. Install utilities into your application, assuming you have a sern.config.json.

    You can use this command to install things such as a Dockerfile

    Usage

    -
    Terminal window
    sern extra
    # Choose which extra feature from the prompt, such as this:
    What extra feature do you want to add? Dockerfile (TypeScript)
    \ No newline at end of file +
    Terminal window
    sern extra
    # Choose which extra feature from the prompt, such as this:
    What extra feature do you want to add? Dockerfile (TypeScript)
    \ No newline at end of file diff --git a/v4/cli/publish/index.html b/v4/cli/publish/index.html index b171815dd..bfde14008 100644 --- a/v4/cli/publish/index.html +++ b/v4/cli/publish/index.html @@ -91,4 +91,4 @@ use the new service Publisher, officially maintained.

    src/commands/ping.ts
    1
    import { commandModule, Service, CommandType } from '@sern/handler'
    2
    3
    const client = Service('@sern/client');
    4
    5
    export const config = {
    6
    guildIds: ["889026545715400705"]
    7
    }
    8
    -
    9
    export default commandModule( {
    10
    type: CommandType.Slash
    11
    description: `${client.user.username}'s ping`,
    12
    execute: (ctx) => {
    13
    ctx.reply('pong')
    14
    }
    15
    })
    \ No newline at end of file +
    9
    export default commandModule( {
    10
    type: CommandType.Slash
    11
    description: `${client.user.username}'s ping`,
    12
    execute: (ctx) => {
    13
    ctx.reply('pong')
    14
    }
    15
    })
    \ No newline at end of file diff --git a/v4/reference/autocomplete/index.html b/v4/reference/autocomplete/index.html index 2bb86c386..f7b849c2a 100644 --- a/v4/reference/autocomplete/index.html +++ b/v4/reference/autocomplete/index.html @@ -51,4 +51,4 @@ We’ve implemented this functionality using a simple tree search algorithm with We can filter cheeses based on the focus object, and return only the cheeses that start with the focus object. You can do a lot more with the focus object, such as performing API calls, or implementing a fuzzy search.

    src/commands/cheese.ts
    1
    export default commandModule({
    2
    type: CommandType.Slash,
    3
    description: "show me cheese",
    4
    options: [
    5
    {
    6
    name: "list",
    7
    type: ApplicationCommandOptionType.String,
    8
    description: "pick a cheese to show",
    9
    required: true,
    10
    autocomplete: true,
    11
    command: {
    12
    onEvent: [],
    13
    execute: (ctx) => {
    14
    const focus = ctx.options.getFocused();
    15
    ctx.respond ["gouda", "parmesan", "harvarti"]
    16
    .filter((cheese) => cheese.startsWith(focus))
    17
    .map((cheese) => ({ name: cheese, value: cheese })));
    18
    },
    19
    },
    20
    },
    21
    ],
    22
    execute: (ctx) => {
    23
    const cheese = ctx.options.getString("list", true);
    24
    ctx.reply("selected cheese");
    25
    },
    26
    });
    - \ No newline at end of file + \ No newline at end of file diff --git a/v4/reference/conclusion/index.html b/v4/reference/conclusion/index.html index 66d7809d3..d1baf9536 100644 --- a/v4/reference/conclusion/index.html +++ b/v4/reference/conclusion/index.html @@ -44,4 +44,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Conclusion

    If you reached this far, thank you for reading!

    We hope you have learned the necessities you need to create a bot with the sern framework.

    If you have any other questions, bugs, feature requests, concerns, please join our community server, and we’ll be glad to answer your questions!

    -

    paper logo

    \ No newline at end of file +

    paper logo

    \ No newline at end of file diff --git a/v4/reference/config/index.html b/v4/reference/config/index.html index b748b58c5..f2be62a5f 100644 --- a/v4/reference/config/index.html +++ b/v4/reference/config/index.html @@ -65,4 +65,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    user defined

    Feel free to supply any other constants / variables you may need.

    1
    export const OWNERS = ['182326315813306368']
    - \ No newline at end of file + \ No newline at end of file diff --git a/v4/reference/dependencies/index.html b/v4/reference/dependencies/index.html index 1b34fc3ee..40f9e94e2 100644 --- a/v4/reference/dependencies/index.html +++ b/v4/reference/dependencies/index.html @@ -115,4 +115,4 @@ A common occurence in sern projects is to swap out the Logger for a custom one. As a result, the codebase is more modular and easier to test and refactor

    \ No newline at end of file +For example, you may prefer importing the logger service vs. injecting the Logger class as a dependency.

    \ No newline at end of file diff --git a/v4/reference/error-handling/index.html b/v4/reference/error-handling/index.html index e79d096a9..95715696e 100644 --- a/v4/reference/error-handling/index.html +++ b/v4/reference/error-handling/index.html @@ -41,9 +41,11 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem; StarlightThemeProvider.updatePickers();

    Error handling

    Error handling is important in any application, especially one which has a long lifetime of running.

    +

    Error handling

    +

    Error handling is important in any application, especially one which has a long lifetime of running.

    Handling errors in command and event modules

    -

    To capture errors, enable the ‘error’ event in sern’s global event manager.

    +

    To capture errors, enable the error event in sern’s global event manager.

    • Directorysrc/
      • Directorycommands/
      • Directoryevents/ @@ -53,6 +55,5 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;
    3
    export default eventModule({
    4
    type: EventType.Sern,
    5
    name: 'error',
    6
    execute: (err) => {
    7
    console.log('caught', err)
    8
    }
    9
    })

    If the error handler is not set, sern’s behavior is to crash the application. This respects node.js’s default behavior

    -
    \ No newline at end of file +If this happens, a memory leaks occurs and your bot will crash.

    \ No newline at end of file diff --git a/v4/reference/getting-started/index.html b/v4/reference/getting-started/index.html index d8647a7be..8cba3a2f7 100644 --- a/v4/reference/getting-started/index.html +++ b/v4/reference/getting-started/index.html @@ -44,4 +44,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Getting Started

    Terminal window
    npm create @sern/bot

    Once you’ve used this command, follow the interactive prompts to create your new project.

    If you need help, feel free to ask on our Discord.

    -
    \ No newline at end of file + \ No newline at end of file diff --git a/v4/reference/modules/index.html b/v4/reference/modules/index.html index 9aba21f9b..eb20431e5 100644 --- a/v4/reference/modules/index.html +++ b/v4/reference/modules/index.html @@ -84,4 +84,4 @@ You may not see your command instantly in Discord, if so, try refreshing.

    Listening to Discord Events
    src/events/messageCreate.js
    1
    import { eventModule, EventType } from "@sern/handler";
    2
    3
    export default eventModule({
    4
    type: EventType.Discord,
    5
    execute: async (message) => {
    6
    console.log(`${message.user} said`, message.content)
    7
    },
    8
    });
    - \ No newline at end of file + \ No newline at end of file diff --git a/v4/reference/plugins/index.html b/v4/reference/plugins/index.html index 45fdd9447..8accaf92c 100644 --- a/v4/reference/plugins/index.html +++ b/v4/reference/plugins/index.html @@ -109,4 +109,4 @@ plugin chain.

    Plugins also carry an instance of all of your dependencies. Use them and use them as you please! For example, creating a plugin which logs which user uses your command

    -
    1
    import { commandModule, CommandControlPlugin, CommandType } from '@sern/handler'
    2
    export const log = CommandControlPlugin((ctx, sdt) => {
    3
    sdt
    4
    .deps['@sern/logger']
    5
    .info({ message: `${ctx.user.id} used this command from ${ctx.guild.id}` });
    6
    })
    \ No newline at end of file +
    1
    import { commandModule, CommandControlPlugin, CommandType } from '@sern/handler'
    2
    export const log = CommandControlPlugin((ctx, sdt) => {
    3
    sdt
    4
    .deps['@sern/logger']
    5
    .info({ message: `${ctx.user.id} used this command from ${ctx.guild.id}` });
    6
    })
    \ No newline at end of file diff --git a/v4/reference/presence/index.html b/v4/reference/presence/index.html index 6e1f2ff1d..c3dff4f96 100644 --- a/v4/reference/presence/index.html +++ b/v4/reference/presence/index.html @@ -57,4 +57,4 @@ An example of this is shuffling presences on intervals.

    23
    export default Presence.module({
    24
    execute: () => {
    25
    const [type, name, status] = statuses.at(0)!;
    26
    return Presence
    27
    //start your presence with this.
    28
    .of({ activities: [ { type, name } ], status })
    29
    .repeated(() => {
    30
    const [type, name, status] = [...shuffleArray(statuses)].shift()!;
    31
    return {
    32
    status,
    33
    activities: [{ type, name }]
    34
    };
    35
    }, 60_000); //repeat and setPresence with returned result every minute
    36
    }
    37
    })

    Inject dependencies

    ./src/presence.js
    1
    import { Presence } from '@sern/handler'
    2
    import { ActivityType } from 'discord.js';
    3
    -
    4
    const activity = { type: ActivityType.Listening, name: "what's bofa" };
    5
    export default Presence.module({
    6
    inject: ['@sern/logger'],
    7
    execute: (logger) => {
    8
    logger?.info({ message: "Presence changed" });
    9
    return Presence
    10
    .of({ activities: [activity], status: "idle" })
    11
    .once();
    12
    }
    13
    })
    \ No newline at end of file +
    4
    const activity = { type: ActivityType.Listening, name: "what's bofa" };
    5
    export default Presence.module({
    6
    inject: ['@sern/logger'],
    7
    execute: (logger) => {
    8
    logger?.info({ message: "Presence changed" });
    9
    return Presence
    10
    .of({ activities: [activity], status: "idle" })
    11
    .once();
    12
    }
    13
    })
    \ No newline at end of file diff --git a/v4/reference/project-layout/index.html b/v4/reference/project-layout/index.html index e00a519ee..d55902353 100644 --- a/v4/reference/project-layout/index.html +++ b/v4/reference/project-layout/index.html @@ -44,4 +44,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Project Layout

    A project should look like this:

    • Directorysrc -
      • Directorycommands/
      • Directoryevents/
      • Directoryplugins/ # created automatically if running sern plugins
      • index.js
      • config.js # configuration for your entire application
    • .env
    • .gitignore
    • bun.lockb
    • package.json
    • README.md
    • sern.config.json
    • jsconfig.json # tsconfig.json if you are using typescript
    \ No newline at end of file +
  • .env
  • .gitignore
  • bun.lockb
  • package.json
  • README.md
  • sern.config.json
  • jsconfig.json # tsconfig.json if you are using typescript
  • \ No newline at end of file diff --git a/v4/reference/tasks/index.html b/v4/reference/tasks/index.html index 87b39fd65..c1b4dffac 100644 --- a/v4/reference/tasks/index.html +++ b/v4/reference/tasks/index.html @@ -49,4 +49,4 @@ If you haven’t already, add the tasks directory to you
    3
    export default scheduledTask({
    4
    trigger: "* * * * *",
    5
    execute: (context) => {
    6
    console.log("cron cron")
    7
    }
    8
    })

    The trigger is a cron tab pattern, you can edit and test one here.

    \ No newline at end of file +deps['@sern/scheduler'].kill(uuid) will kill the task.

    \ No newline at end of file diff --git a/v4/snippets/command/index.html b/v4/snippets/command/index.html index 24c2cae7f..bfa0a2d4c 100644 --- a/v4/snippets/command/index.html +++ b/v4/snippets/command/index.html @@ -42,4 +42,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Command

    src/commands/ping.js
    1
    import { commandModule, CommandType } from "@sern/handler";
    2
    -
    3
    export default commandModule({
    4
    type: CommandType.Both,
    5
    plugins: [],
    6
    description: "A ping command",
    7
    execute: async (ctx, sdt) => {
    8
    await ctx.reply("Pong 🏓");
    9
    },
    10
    });
    \ No newline at end of file +
    3
    export default commandModule({
    4
    type: CommandType.Both,
    5
    plugins: [],
    6
    description: "A ping command",
    7
    execute: async (ctx, sdt) => {
    8
    await ctx.reply("Pong 🏓");
    9
    },
    10
    });
    \ No newline at end of file diff --git a/v4/snippets/event/index.html b/v4/snippets/event/index.html index 5bd74dd2c..5d9cda208 100644 --- a/v4/snippets/event/index.html +++ b/v4/snippets/event/index.html @@ -43,4 +43,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem; StarlightThemeProvider.updatePickers();

    Event

    src/events/ping.js
    1
    import { eventModule, EventType } from "@sern/handler";
    2
    import type { GuildMember } from "discord.js";
    3
    4
    export default eventModule({
    5
    type: EventType.Discord,
    6
    name: "guildMemberAdd",
    7
    async execute(member) {
    8
    },
    9
    });
    \ No newline at end of file +
    4
    export default eventModule({
    5
    type: EventType.Discord,
    6
    name: "guildMemberAdd",
    7
    async execute(member: GuildMember) {
    8
    // TODO: This should be inferred
    9
    if (member.pending) return;
    10
    },
    11
    });
    \ No newline at end of file diff --git a/v4/snippets/plugin/index.html b/v4/snippets/plugin/index.html index d940047ce..49afea718 100644 --- a/v4/snippets/plugin/index.html +++ b/v4/snippets/plugin/index.html @@ -42,4 +42,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Plugins

    1
    // This plugin only allows users with '182326315813306368' as their id to use this command.
    2
    import { CommandControlPlugin, CommandType, controller } from "@sern/handler";
    3
    import type { ModalSubmitInteraction } from "discord.js";
    4
    -
    5
    const OWNER = '182326315813306368';
    6
    export function ownerOnly() {
    7
    return CommandControlPlugin<CommandType.Slash>((ctx, sdt)=> {
    8
    if(ctx.user === OWNER)
    9
    return controller.next()
    10
    return controller.stop()
    11
    })
    12
    }
    \ No newline at end of file +
    5
    const OWNER = '182326315813306368';
    6
    export function ownerOnly() {
    7
    return CommandControlPlugin<CommandType.Slash>((ctx, sdt)=> {
    8
    if(ctx.user === OWNER)
    9
    return controller.next()
    10
    return controller.stop()
    11
    })
    12
    }
    \ No newline at end of file diff --git a/v4/snippets/presence/index.html b/v4/snippets/presence/index.html index 831139b52..7397244db 100644 --- a/v4/snippets/presence/index.html +++ b/v4/snippets/presence/index.html @@ -43,4 +43,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem; StarlightThemeProvider.updatePickers();

    Presence

    1
    import { Presence } from '@sern/handler'
    2
    import { ActivityType } from 'discord.js';
    3
    4
    const activity = { type: ActivityType.Listening, name: "what's bofa" };
    5
    -
    6
    export default Presence.module({
    7
    execute: () => {
    8
    return Presence
    9
    .of({ activities: [activity], status: "idle" })
    10
    .once();
    11
    }
    12
    })
    \ No newline at end of file +
    6
    export default Presence.module({
    7
    execute: () => {
    8
    return Presence
    9
    .of({ activities: [activity], status: "idle" })
    10
    .once();
    11
    }
    12
    })
    \ No newline at end of file diff --git a/v4/tools/localizer/index.html b/v4/tools/localizer/index.html index 04358f839..06e24a051 100644 --- a/v4/tools/localizer/index.html +++ b/v4/tools/localizer/index.html @@ -58,4 +58,4 @@ Create the directory assets/locals. Each json file in he
    1
    execute : (ctx, { deps }) => {
    2
    //the localizer object from makeDependencies
    3
    deps.localizer
    4
    // Returns the Spanish translation for 'salute.hello'
    5
    deps.localizer.translate("salute.hello", "es-ES");
    6
    }
    1
    import { local } from '@sern/localizer';
    2
    -
    3
    // Returns the Spanish translation for 'salute.hello'
    4
    const greeting = local('salute.hello', 'es-ES');
    \ No newline at end of file +
    3
    // Returns the Spanish translation for 'salute.hello'
    4
    const greeting = local('salute.hello', 'es-ES');
    \ No newline at end of file diff --git a/v4/tools/publisher/index.html b/v4/tools/publisher/index.html index 77c7ca44d..7b06d7a54 100644 --- a/v4/tools/publisher/index.html +++ b/v4/tools/publisher/index.html @@ -112,4 +112,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;
  • Also able to use IntegrationContextType enum from @sern/publisher if you don’t want to use numbers.
  • - \ No newline at end of file + \ No newline at end of file diff --git a/v4/transition/from-v3/index.html b/v4/transition/from-v3/index.html index 5632756d5..365cae293 100644 --- a/v4/transition/from-v3/index.html +++ b/v4/transition/from-v3/index.html @@ -71,4 +71,4 @@ publishing as a service

    Things marked internal are now removed from public api.

    -
    1
    import type { SernEmitter, CoreDependencies, Singleton } from "@sern/handler";
    2
    import type { SernEmitter, CoreDependencies } from "@sern/handler";
    3
    import type { SernLogger } from "./utils/Logger";
    4
    import type { Octokit } from "@octokit/rest";
    5
    declare global {
    6
    interface Dependencies extends CoreDependencies {
    7
    "@sern/logger": SernLogger;
    8
    "@sern/logger": Singleton<SernLogger>;
    9
    octokit: Octokit;
    10
    octokit: Singleton<Octokit>;
    11
    }
    12
    }
    13
    export {};
    \ No newline at end of file +
    1
    import type { SernEmitter, CoreDependencies, Singleton } from "@sern/handler";
    2
    import type { SernEmitter, CoreDependencies } from "@sern/handler";
    3
    import type { SernLogger } from "./utils/Logger";
    4
    import type { Octokit } from "@octokit/rest";
    5
    declare global {
    6
    interface Dependencies extends CoreDependencies {
    7
    "@sern/logger": SernLogger;
    8
    "@sern/logger": Singleton<SernLogger>;
    9
    octokit: Octokit;
    10
    octokit: Singleton<Octokit>;
    11
    }
    12
    }
    13
    export {};
    \ No newline at end of file