diff --git a/blog/1.2.0/index.html b/blog/1.2.0/index.html index c0706304f..78935ab93 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 1059c12e5..a14c2b826 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 082aa68f0..47713bd31 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 bddd19b5f..6532dc6d2 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 fb7525b22..2924ccc38 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 25f039389..22fe261b0 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 ed0dbe94d..01ef5acec 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 873c8d36f..693e8136f 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 22bc20f62..07de343a1 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 aec089a25..4ed275f07 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 3aabb71fa..708e1198d 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 6aa2934e2..bbe95bcec 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 d59e6fb49..e8da53001 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

    -
    Albion Guide

    Albion Guide

    Gets info about The First Descendant Game.

    Vinci

    Vinci

    The discord bot for Mara Turing

    Bask

    Bask

    A discord music bot

    sern Community

    sern Community

    The bot used to manage sern Community

    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

    Vinci

    Vinci

    The discord bot for Mara Turing

    man-nomic

    man-nomic

    Displays LLM model information

    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/es/v3/api/classes/context/index.html b/es/v3/api/classes/context/index.html index 4c956f80f..8148a7e95 100644 --- a/es/v3/api/classes/context/index.html +++ b/es/v3/api/classes/context/index.html @@ -230,4 +230,4 @@ else, interaction.user

    Returns

    Context

    Source

    -

    src/core/structures/context.ts:129

    \ No newline at end of file +

    src/core/structures/context.ts:129

    \ 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 b317bd61b..e3f8c54ed 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 3f67fec75..25dd45058 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 cf30934f3..5e055740f 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;

    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/v3/api/enumerations/plugintype/index.html b/es/v3/api/enumerations/plugintype/index.html index ca9ba35b4..ae1946fdd 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 de4f721a1..6b76bcf8a 100644 --- a/es/v3/api/functions/commandcontrolplugin/index.html +++ b/es/v3/api/functions/commandcontrolplugin/index.html @@ -53,4 +53,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Since

    2.5.0

    Source

    -

    src/core/plugin.ts:28

    \ No newline at end of file +

    src/core/plugin.ts:28

    \ 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 1453caf57..2fb51008c 100644 --- a/es/v3/api/functions/commandinitplugin/index.html +++ b/es/v3/api/functions/commandinitplugin/index.html @@ -53,4 +53,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Since

    2.5.0

    Source

    -

    src/core/plugin.ts:20

    \ No newline at end of file +

    src/core/plugin.ts:20

    \ 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 09ed6092f..162a6e807 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:16

    \ No newline at end of file +

    src/core/modules.ts:16

    \ 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 38c8b2ff0..0c137c477 100644 --- a/es/v3/api/functions/discordevent/index.html +++ b/es/v3/api/functions/discordevent/index.html @@ -57,4 +57,4 @@ where typings can be very bad.

    Returns

    Module

    Source

    -

    src/core/modules.ts:42

    \ No newline at end of file +

    src/core/modules.ts:42

    \ 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 93e7a9433..85cf4ff53 100644 --- a/es/v3/api/functions/eventinitplugin/index.html +++ b/es/v3/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:14

    \ No newline at end of file +

    src/core/plugin.ts:14

    \ 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 51c8b97a4..12c51d44d 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:29

    \ No newline at end of file +

    src/core/modules.ts:29

    \ 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 47fa42f17..5b1eccdcf 100644 --- a/es/v3/api/functions/makedependencies/index.html +++ b/es/v3/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/v3/api/functions/makeplugin/index.html b/es/v3/api/functions/makeplugin/index.html index b5e98f18c..c1de2d53c 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/plugin.ts:5

    \ No newline at end of file +

    src/core/plugin.ts:5

    \ 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 7a26d464f..69156fecc 100644 --- a/es/v3/api/functions/service/index.html +++ b/es/v3/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/v3/api/functions/services/index.html b/es/v3/api/functions/services/index.html index 5414bbcdc..c7b7517d7 100644 --- a/es/v3/api/functions/services/index.html +++ b/es/v3/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/v3/api/functions/single/index.html b/es/v3/api/functions/single/index.html index 458cf5eb1..2d5d9f1d3 100644 --- a/es/v3/api/functions/single/index.html +++ b/es/v3/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/v3/api/functions/transient/index.html b/es/v3/api/functions/transient/index.html index 36e880a1b..a8dfefdf8 100644 --- a/es/v3/api/functions/transient/index.html +++ b/es/v3/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/v3/api/interfaces/bothcommand/index.html b/es/v3/api/interfaces/bothcommand/index.html index 512d07af3..1d13ac284 100644 --- a/es/v3/api/interfaces/bothcommand/index.html +++ b/es/v3/api/interfaces/bothcommand/index.html @@ -136,4 +136,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.type

    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/interfaces/buttoncommand/index.html b/es/v3/api/interfaces/buttoncommand/index.html index 90b4312af..7e0d82681 100644 --- a/es/v3/api/interfaces/buttoncommand/index.html +++ b/es/v3/api/interfaces/buttoncommand/index.html @@ -129,4 +129,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/channelselectcommand/index.html b/es/v3/api/interfaces/channelselectcommand/index.html index abc5e8e46..70969c733 100644 --- a/es/v3/api/interfaces/channelselectcommand/index.html +++ b/es/v3/api/interfaces/channelselectcommand/index.html @@ -129,4 +129,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/commandmoduledefs/index.html b/es/v3/api/interfaces/commandmoduledefs/index.html index 3a2370b4c..0c03fce9b 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:159

    \ No newline at end of file +

    src/types/core-modules.ts:159

    \ 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 8fe04e41f..c1b84d522 100644 --- a/es/v3/api/interfaces/contextmenumsg/index.html +++ b/es/v3/api/interfaces/contextmenumsg/index.html @@ -129,4 +129,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/contextmenuuser/index.html b/es/v3/api/interfaces/contextmenuuser/index.html index 7998fb6d2..06b253091 100644 --- a/es/v3/api/interfaces/contextmenuuser/index.html +++ b/es/v3/api/interfaces/contextmenuuser/index.html @@ -129,4 +129,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/controlplugin/index.html b/es/v3/api/interfaces/controlplugin/index.html index b14289507..5f92f6fac 100644 --- a/es/v3/api/interfaces/controlplugin/index.html +++ b/es/v3/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: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/interfaces/coredependencies/index.html b/es/v3/api/interfaces/coredependencies/index.html index 8d54c1464..f384ba482 100644 --- a/es/v3/api/interfaces/coredependencies/index.html +++ b/es/v3/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/v3/api/interfaces/discordeventcommand/index.html b/es/v3/api/interfaces/discordeventcommand/index.html index 9c5fa7c95..99d5d5571 100644 --- a/es/v3/api/interfaces/discordeventcommand/index.html +++ b/es/v3/api/interfaces/discordeventcommand/index.html @@ -130,4 +130,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.execute

    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/disposable/index.html b/es/v3/api/interfaces/disposable/index.html index 52cb69ff7..d7ef8269d 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/interfaces.ts:17

    \ No newline at end of file +

    src/core/interfaces.ts:17

    \ 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 50c119d09..9b55ee26f 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/interfaces.ts:23

    \ No newline at end of file +

    src/core/interfaces.ts:23

    \ 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 f8f5314b6..f068d6288 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/interfaces.ts:41

    \ No newline at end of file +

    src/core/interfaces.ts:41

    \ 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 00cf70398..f66488c26 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;

    2: ExternalEventCommand

    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/externaleventcommand/index.html b/es/v3/api/interfaces/externaleventcommand/index.html index cfaf2b79a..a8805341a 100644 --- a/es/v3/api/interfaces/externaleventcommand/index.html +++ b/es/v3/api/interfaces/externaleventcommand/index.html @@ -135,4 +135,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.execute

    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/init/index.html b/es/v3/api/interfaces/init/index.html index 3fc5aa681..0df27b5b9 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/interfaces.ts:9

    \ No newline at end of file +

    src/core/interfaces.ts:9

    \ 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 6943098a1..a7a390dfb 100644 --- a/es/v3/api/interfaces/initplugin/index.html +++ b/es/v3/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:47

    \ No newline at end of file +

    src/types/core-plugin.ts:47

    \ 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 6891f2b86..9cf87e0fe 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/interfaces.ts:50

    \ No newline at end of file +

    src/core/interfaces.ts:50

    \ 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 677ca9974..03b9b4a86 100644 --- a/es/v3/api/interfaces/mentionableselectcommand/index.html +++ b/es/v3/api/interfaces/mentionableselectcommand/index.html @@ -129,4 +129,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/modalsubmitcommand/index.html b/es/v3/api/interfaces/modalsubmitcommand/index.html index aba2c6973..f43d67c32 100644 --- a/es/v3/api/interfaces/modalsubmitcommand/index.html +++ b/es/v3/api/interfaces/modalsubmitcommand/index.html @@ -129,4 +129,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:104

    \ No newline at end of file +

    src/types/core-modules.ts:104

    \ 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 1b2ca21bc..8ef7032e3 100644 --- a/es/v3/api/interfaces/plugin/index.html +++ b/es/v3/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:42

    \ No newline at end of file +

    src/types/core-plugin.ts:42

    \ 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 fdb14e742..db589b96d 100644 --- a/es/v3/api/interfaces/roleselectcommand/index.html +++ b/es/v3/api/interfaces/roleselectcommand/index.html @@ -129,4 +129,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/sernautocompletedata/index.html b/es/v3/api/interfaces/sernautocompletedata/index.html index a65f965c4..5677d2b54 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:179

    \ No newline at end of file +

    src/types/core-modules.ts:179

    \ 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 7cc55b9b4..e138d1144 100644 --- a/es/v3/api/interfaces/serneventcommand/index.html +++ b/es/v3/api/interfaces/serneventcommand/index.html @@ -130,4 +130,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.execute

    Source

    -

    src/types/core-modules.ts:52

    \ No newline at end of file +

    src/types/core-modules.ts:52

    \ 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 e12ec4b06..a6d27da4e 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:14

    \ No newline at end of file +

    src/types/utility.ts:14

    \ 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 ec581b740..12151107a 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:217

    \ No newline at end of file +

    src/types/core-modules.ts:217

    \ 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 be2d34953..b469b179e 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:222

    \ No newline at end of file +

    src/types/core-modules.ts:222

    \ 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 11bde2b9f..017fcd700 100644 --- a/es/v3/api/interfaces/slashcommand/index.html +++ b/es/v3/api/interfaces/slashcommand/index.html @@ -136,4 +136,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:125

    \ No newline at end of file +

    src/types/core-modules.ts:125

    \ 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 e35dd2cf2..b01b9d548 100644 --- a/es/v3/api/interfaces/stringselectcommand/index.html +++ b/es/v3/api/interfaces/stringselectcommand/index.html @@ -129,4 +129,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/textcommand/index.html b/es/v3/api/interfaces/textcommand/index.html index 60d22e4f4..2cdea2b31 100644 --- a/es/v3/api/interfaces/textcommand/index.html +++ b/es/v3/api/interfaces/textcommand/index.html @@ -129,4 +129,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:120

    \ No newline at end of file +

    src/types/core-modules.ts:120

    \ 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 3eaaf1455..97d5c7157 100644 --- a/es/v3/api/interfaces/userselectcommand/index.html +++ b/es/v3/api/interfaces/userselectcommand/index.html @@ -129,4 +129,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:99

    \ No newline at end of file +

    src/types/core-modules.ts:99

    \ 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 a1795fc5b..7bfc9de6e 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:58

    \ No newline at end of file +

    src/core/presences.ts:58

    \ 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 a285df790..9554a0482 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:51

    \ No newline at end of file +

    src/core/presences.ts:51

    \ 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 ada254f9a..20ead580a 100644 --- a/es/v3/api/namespaces/sern/functions/init/index.html +++ b/es/v3/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:35

    \ No newline at end of file +

    src/sern.ts:35

    \ No newline at end of file diff --git a/es/v3/api/readme/index.html b/es/v3/api/readme/index.html index eb6fd848b..0455da9f2 100644 --- a/es/v3/api/readme/index.html +++ b/es/v3/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/v3/api/type-aliases/commandmodule/index.html b/es/v3/api/type-aliases/commandmodule/index.html index cfcea944c..b2fa48bec 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:139

    \ No newline at end of file +

    src/types/core-modules.ts:139

    \ 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 ffb8bd611..9174ebb8a 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:138

    \ No newline at end of file +

    src/types/core-modules.ts:138

    \ 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 ec38f2c30..53da7810d 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/interfaces.ts:55

    \ No newline at end of file +

    src/core/interfaces.ts:55

    \ 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 d357a43ba..9af21f139 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:18

    \ No newline at end of file +

    src/types/utility.ts:18

    \ 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 37ecba173..76a303a01 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<Result<Record<string, unknown> | undefined, string | undefined>>

    Source

    -

    src/types/core-plugin.ts:35

    \ No newline at end of file +

    src/types/core-plugin.ts:35

    \ 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 ae25e40d9..4911faaaa 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:209

    \ No newline at end of file +

    src/types/core-modules.ts:209

    \ 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 02504fbbb..7b1cbafa8 100644 --- a/es/v3/api/variables/controller/index.html +++ b/es/v3/api/variables/controller/index.html @@ -65,4 +65,4 @@ The object passed into every plugin to control a command’s behavior

    Returns

    Err<undefined | string>

    Source

    -

    src/core/plugin.ts:39

    \ No newline at end of file +

    src/core/plugin.ts:39

    \ No newline at end of file diff --git a/es/v3/cli/about/index.html b/es/v3/cli/about/index.html index 88d0761bd..c84dd9359 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 5a49f0742..080896f30 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 cf793d9bb..763af32d6 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 82ecbf8f9..ae1324cad 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 4e37a3cb0..40ab7224d 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 3adbbde1f..95a67f829 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 36b47aa08..b30e1f1fa 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 7df3ffd03..c8aa7a747 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 1cdd76c24..dee1512ce 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 b181b7d9f..774c9f5cf 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 7b3e33f49..e0d24bbd0 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 069eb423f..9ddc4df93 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 935f8c974..2bd8cbdc5 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 16366b5be..a8e56ed66 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 23ae8fb72..b26c3219b 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 a116e1b38..b602120d1 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 3b796f0aa..f8607984b 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 34eb3a6e2..00ac4eef9 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 c63487ef7..e1d75e7f6 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 97b560199..7c3518da6 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 d8fabbcee..381e47284 100644 --- a/es/v4/api/classes/context/index.html +++ b/es/v4/api/classes/context/index.html @@ -230,4 +230,4 @@ else, interaction.user

    Returns

    Context

    Source

    -

    src/core/structures/context.ts:129

    \ No newline at end of file +

    src/core/structures/context.ts:129

    \ 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 ab4f93d0b..1df16c5b9 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 74a3888ed..f1d75e925 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 69b468f2e..8e26a6e7c 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 203444269..0bb327c2c 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 da2e300fe..d2394b029 100644 --- a/es/v4/api/functions/commandcontrolplugin/index.html +++ b/es/v4/api/functions/commandcontrolplugin/index.html @@ -53,4 +53,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Since

    2.5.0

    Source

    -

    src/core/plugin.ts:28

    \ No newline at end of file +

    src/core/plugin.ts:28

    \ 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 7d80a1da8..0d11b44a1 100644 --- a/es/v4/api/functions/commandinitplugin/index.html +++ b/es/v4/api/functions/commandinitplugin/index.html @@ -53,4 +53,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Since

    2.5.0

    Source

    -

    src/core/plugin.ts:20

    \ No newline at end of file +

    src/core/plugin.ts:20

    \ 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 940df65b2..04d11917f 100644 --- a/es/v4/api/functions/commandmodule/index.html +++ b/es/v4/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:16

    \ No newline at end of file +

    src/core/modules.ts:16

    \ 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 2513ff7ef..62f32d1b3 100644 --- a/es/v4/api/functions/discordevent/index.html +++ b/es/v4/api/functions/discordevent/index.html @@ -57,4 +57,4 @@ where typings can be very bad.

    Returns

    Module

    Source

    -

    src/core/modules.ts:42

    \ No newline at end of file +

    src/core/modules.ts:42

    \ 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 18a7cf7f3..76598bfd0 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:14

    \ No newline at end of file +

    src/core/plugin.ts:14

    \ 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 c4aa64240..1c62f1eb3 100644 --- a/es/v4/api/functions/eventmodule/index.html +++ b/es/v4/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:29

    \ No newline at end of file +

    src/core/modules.ts:29

    \ 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 a603003c3..a24403bc8 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 8c8302b2e..f5f8c1abe 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:5

    \ No newline at end of file +

    src/core/plugin.ts:5

    \ 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 fef490d64..7032662e7 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 6b0d4b80a..f9185ae76 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 7044b2240..622bdf02c 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 1ca8bfc06..34a4e77f2 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 d0b52d204..7591d370e 100644 --- a/es/v4/api/interfaces/bothcommand/index.html +++ b/es/v4/api/interfaces/bothcommand/index.html @@ -136,4 +136,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.type

    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/v4/api/interfaces/buttoncommand/index.html b/es/v4/api/interfaces/buttoncommand/index.html index 6cae56c98..673abc5a3 100644 --- a/es/v4/api/interfaces/buttoncommand/index.html +++ b/es/v4/api/interfaces/buttoncommand/index.html @@ -129,4 +129,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/v4/api/interfaces/channelselectcommand/index.html b/es/v4/api/interfaces/channelselectcommand/index.html index 9d50422e8..fff1dec3f 100644 --- a/es/v4/api/interfaces/channelselectcommand/index.html +++ b/es/v4/api/interfaces/channelselectcommand/index.html @@ -129,4 +129,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/v4/api/interfaces/commandmoduledefs/index.html b/es/v4/api/interfaces/commandmoduledefs/index.html index eef00b0a7..d3a2f91a4 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:159

    \ No newline at end of file +

    src/types/core-modules.ts:159

    \ 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 43b43e989..2b9827133 100644 --- a/es/v4/api/interfaces/contextmenumsg/index.html +++ b/es/v4/api/interfaces/contextmenumsg/index.html @@ -129,4 +129,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/v4/api/interfaces/contextmenuuser/index.html b/es/v4/api/interfaces/contextmenuuser/index.html index 7252711a3..928e33cb3 100644 --- a/es/v4/api/interfaces/contextmenuuser/index.html +++ b/es/v4/api/interfaces/contextmenuuser/index.html @@ -129,4 +129,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/v4/api/interfaces/controlplugin/index.html b/es/v4/api/interfaces/controlplugin/index.html index fadf9b7b9..6ec9dd70a 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:51

    \ No newline at end of file +

    src/types/core-plugin.ts:51

    \ 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 266b959f1..b6822fff5 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 4d36065b1..7c397dee0 100644 --- a/es/v4/api/interfaces/discordeventcommand/index.html +++ b/es/v4/api/interfaces/discordeventcommand/index.html @@ -130,4 +130,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.execute

    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/v4/api/interfaces/disposable/index.html b/es/v4/api/interfaces/disposable/index.html index 846f2cc73..f5846d8d3 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 45fedaadb..bce9fecde 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 e086341ad..855b1212e 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 00537e361..b3015c6f2 100644 --- a/es/v4/api/interfaces/eventmoduledefs/index.html +++ b/es/v4/api/interfaces/eventmoduledefs/index.html @@ -61,4 +61,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    2: ExternalEventCommand

    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/v4/api/interfaces/externaleventcommand/index.html b/es/v4/api/interfaces/externaleventcommand/index.html index d0a6c8f24..ed93ab483 100644 --- a/es/v4/api/interfaces/externaleventcommand/index.html +++ b/es/v4/api/interfaces/externaleventcommand/index.html @@ -135,4 +135,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.execute

    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/v4/api/interfaces/init/index.html b/es/v4/api/interfaces/init/index.html index a6285f53c..f35add5d5 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 2a4ffc8ca..6f7dce945 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:47

    \ No newline at end of file +

    src/types/core-plugin.ts:47

    \ 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 79bd8d2aa..4f04b0564 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 ab0b6ed78..5b2496a55 100644 --- a/es/v4/api/interfaces/mentionableselectcommand/index.html +++ b/es/v4/api/interfaces/mentionableselectcommand/index.html @@ -129,4 +129,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/v4/api/interfaces/modalsubmitcommand/index.html b/es/v4/api/interfaces/modalsubmitcommand/index.html index 94a48bb0d..d05f117a4 100644 --- a/es/v4/api/interfaces/modalsubmitcommand/index.html +++ b/es/v4/api/interfaces/modalsubmitcommand/index.html @@ -129,4 +129,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:104

    \ No newline at end of file +

    src/types/core-modules.ts:104

    \ 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 f34fa36f7..ad752a72e 100644 --- a/es/v4/api/interfaces/module/index.html +++ b/es/v4/api/interfaces/module/index.html @@ -126,4 +126,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Returns

    any

    Source

    -

    src/types/core-modules.ts:45

    \ No newline at end of file +

    src/types/core-modules.ts:45

    \ 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 165d5643e..5203da016 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:42

    \ No newline at end of file +

    src/types/core-plugin.ts:42

    \ 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 30278e402..2f1cddf78 100644 --- a/es/v4/api/interfaces/roleselectcommand/index.html +++ b/es/v4/api/interfaces/roleselectcommand/index.html @@ -129,4 +129,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/v4/api/interfaces/sernautocompletedata/index.html b/es/v4/api/interfaces/sernautocompletedata/index.html index 83277660c..785aa2416 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:179

    \ No newline at end of file +

    src/types/core-modules.ts:179

    \ 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 957497c50..e53ab9ec4 100644 --- a/es/v4/api/interfaces/serneventcommand/index.html +++ b/es/v4/api/interfaces/serneventcommand/index.html @@ -130,4 +130,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.execute

    Source

    -

    src/types/core-modules.ts:52

    \ No newline at end of file +

    src/types/core-modules.ts:52

    \ 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 b98c87867..9979f6e96 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:14

    \ No newline at end of file +

    src/types/utility.ts:14

    \ 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 c5c28511a..39eb076ca 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:217

    \ No newline at end of file +

    src/types/core-modules.ts:217

    \ 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 d561b627f..74b40a466 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:222

    \ No newline at end of file +

    src/types/core-modules.ts:222

    \ 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 db164f854..c9f3cb33e 100644 --- a/es/v4/api/interfaces/slashcommand/index.html +++ b/es/v4/api/interfaces/slashcommand/index.html @@ -136,4 +136,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:125

    \ No newline at end of file +

    src/types/core-modules.ts:125

    \ 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 be7d914a9..26d8e17bf 100644 --- a/es/v4/api/interfaces/stringselectcommand/index.html +++ b/es/v4/api/interfaces/stringselectcommand/index.html @@ -129,4 +129,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/v4/api/interfaces/textcommand/index.html b/es/v4/api/interfaces/textcommand/index.html index 1cc3ef28f..65358c154 100644 --- a/es/v4/api/interfaces/textcommand/index.html +++ b/es/v4/api/interfaces/textcommand/index.html @@ -129,4 +129,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:120

    \ No newline at end of file +

    src/types/core-modules.ts:120

    \ 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 c735e5adb..168101b18 100644 --- a/es/v4/api/interfaces/userselectcommand/index.html +++ b/es/v4/api/interfaces/userselectcommand/index.html @@ -129,4 +129,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:99

    \ No newline at end of file +

    src/types/core-modules.ts:99

    \ 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 f2ba32953..37aea7b42 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:35

    \ No newline at end of file +

    src/sern.ts:35

    \ No newline at end of file diff --git a/es/v4/api/readme/index.html b/es/v4/api/readme/index.html index f22898829..f70d606df 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 8fc068dfb..18283f7e2 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:54

    \ No newline at end of file +

    src/types/core-plugin.ts:54

    \ 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 81c10333e..8ffe4d923 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:139

    \ No newline at end of file +

    src/types/core-modules.ts:139

    \ 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 d6a8f0e51..bbb4e20a3 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:45

    \ No newline at end of file +

    src/core/plugin.ts:45

    \ 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 b57c5dedf..b6882210c 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:138

    \ No newline at end of file +

    src/types/core-modules.ts:138

    \ 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 c26850c4a..bc1fb96bd 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 3ccc8c0bd..9476ee0f7 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:18

    \ No newline at end of file +

    src/types/utility.ts:18

    \ 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 48f69fb62..7c08bb5ff 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:35

    \ No newline at end of file +

    src/types/core-plugin.ts:35

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

    type: CommandType

    Source

    -

    src/types/core-modules.ts:25

    \ No newline at end of file +

    src/types/core-modules.ts:25

    \ 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 4b419727a..5753cc33d 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:209

    \ No newline at end of file +

    src/types/core-modules.ts:209

    \ 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 23f68dd6a..766bf45e8 100644 --- a/es/v4/api/variables/controller/index.html +++ b/es/v4/api/variables/controller/index.html @@ -65,4 +65,4 @@ The object passed into every plugin to control a command’s behavior

    Returns

    Err<undefined | string>

    Source

    -

    src/core/plugin.ts:39

    \ No newline at end of file +

    src/core/plugin.ts:39

    \ 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 43390f605..a41068d70 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:10

    \ No newline at end of file +

    src/core/presences.ts:10

    \ No newline at end of file diff --git a/es/v4/cli/about/index.html b/es/v4/cli/about/index.html index d52c74b08..ffdb81afe 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 00f6595c5..eedd31e49 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 76ae42bdd..bc74717c2 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 9e9204536..1e1be175c 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 5e00e44f3..2c66e6068 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 7df908548..86b41f2fd 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 d4a0649fa..484740d0e 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 9b49e697e..162ac35b2 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 a51edc243..7ed0b6372 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/getting-started/index.html b/es/v4/reference/getting-started/index.html index 5c56c867e..87ae35147 100644 --- a/es/v4/reference/getting-started/index.html +++ b/es/v4/reference/getting-started/index.html @@ -43,4 +43,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem; StarlightThemeProvider.updatePickers();

    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 +

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

    \ No newline at end of file diff --git a/es/v4/reference/modules/index.html b/es/v4/reference/modules/index.html index 71ede21e4..5e6b12645 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 6ab4cd0ad..652cf9bdf 100644 --- a/es/v4/reference/plugins/index.html +++ b/es/v4/reference/plugins/index.html @@ -108,4 +108,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 be72fe92c..91347b427 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 5985ccfea..5c7fdd3c8 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 a170a4af6..8db8bee52 100644 --- a/es/v4/reference/tasks/index.html +++ b/es/v4/reference/tasks/index.html @@ -46,4 +46,4 @@ If you haven’t already, add the tasks directory to you
    1
    export const tasks = "./dist/tasks"

    Defines a task that runs every minute.

    ./src/tasks/every-minute.js
    1
    import { scheduledTask } from "@sern/handler";
    2
    -
    3
    export default scheduledTask({
    4
    trigger: "* * * * *",
    5
    execute: (context) => {
    6
    console.log("cron cron")
    7
    }
    8
    })
    \ No newline at end of file +
    3
    export default scheduledTask({
    4
    trigger: "* * * * *",
    5
    execute: (context) => {
    6
    console.log("cron cron")
    7
    }
    8
    })
    \ No newline at end of file diff --git a/es/v4/snippets/command/index.html b/es/v4/snippets/command/index.html index 8fe777da4..62e8aa613 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 565fbec9a..86e684745 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 069ba6de7..bf1babe3c 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 afee9c425..d7784a4c5 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 b88615698..482d8bc8f 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 249e84f39..d670c0cb8 100644 --- a/es/v4/tools/publisher/index.html +++ b/es/v4/tools/publisher/index.html @@ -72,4 +72,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;
    4
    export default commandModule( {
    5
    type: CommandType.Slash,
    6
    plugins: [
    7
    publishConfig({
    8
    integrationTypes: ['User'],
    9
    contexts: [1,2]
    10
    })
    11
    ],
    12
    description: `hello worl`,
    13
    execute: (ctx) => {
    14
    ctx.reply('pong')
    15
    }
    16
    })

    Example: command published in guild

    src/commands/ping.ts
    1
    import { commandModule, CommandType } from '@sern/handler'
    2
    import { publishConfig } from '@sern/publisher'
    3
    -
    4
    export default commandModule( {
    5
    type: CommandType.Slash,
    6
    plugins: [
    7
    publishConfig({
    8
    guildIds: ["889026545715400705"]
    9
    })
    10
    ],
    11
    description: `hello worl`,
    12
    execute: (ctx) => {
    13
    ctx.reply('pong')
    14
    }
    15
    })
    \ No newline at end of file +
    4
    export default commandModule( {
    5
    type: CommandType.Slash,
    6
    plugins: [
    7
    publishConfig({
    8
    guildIds: ["889026545715400705"]
    9
    })
    10
    ],
    11
    description: `hello worl`,
    12
    execute: (ctx) => {
    13
    ctx.reply('pong')
    14
    }
    15
    })
    \ 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 896a35262..690936ef6 100644 --- a/es/v4/transition/from-v3/index.html +++ b/es/v4/transition/from-v3/index.html @@ -46,7 +46,7 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    The second argument is the new SDT type

    1
    import { commandModule, CommandType } from '@sern/handler'
    2
    -
    3
    export default commandModule({
    4
    type: CommandType.Slash,
    5
    description: "My ping command",
    6
    execute: (ctx, sdt) => {
    7
    sdt.params // only exists if current command is not a component
    8
    sdt.deps // Dependencies
    9
    sdt.type // module type
    10
    }
    11
    })
    +
    3
    export default commandModule({
    4
    type: CommandType.Slash,
    5
    description: "My ping command",
    6
    execute: (ctx, sdt) => {
    7
    sdt.params // only exists if current command is a component (dynamic custom ids)
    8
    sdt.deps // Dependencies
    9
    sdt.type // module type
    10
    }
    11
    })

    It used to look like this:

    @@ -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 bff11377c..96e884fd5 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

    -
    man-nomic

    man-nomic

    Displays LLM model information

    sern Community

    sern Community

    The bot used to manage sern Community

    Vinci

    Vinci

    The discord bot for Mara Turing

    Albion Guide

    Albion Guide

    Gets info about The First Descendant Game.

    Bask

    Bask

    A discord music bot

    +
    man-nomic

    man-nomic

    Displays LLM model information

    Bask

    Bask

    A discord music 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

    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_0b93820.pf_fragment b/pagefind/fragment/en_0b93820.pf_fragment new file mode 100644 index 000000000..908d118fa Binary files /dev/null and b/pagefind/fragment/en_0b93820.pf_fragment differ diff --git a/pagefind/fragment/en_1cd6a8e.pf_fragment b/pagefind/fragment/en_1cd6a8e.pf_fragment deleted file mode 100644 index bef8654e5..000000000 Binary files a/pagefind/fragment/en_1cd6a8e.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/en_1e9151b.pf_fragment b/pagefind/fragment/en_1e9151b.pf_fragment deleted file mode 100644 index 943b180d4..000000000 Binary files a/pagefind/fragment/en_1e9151b.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/en_211f877.pf_fragment b/pagefind/fragment/en_211f877.pf_fragment deleted file mode 100644 index 72ceedc2e..000000000 Binary files a/pagefind/fragment/en_211f877.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/en_23207fb.pf_fragment b/pagefind/fragment/en_23207fb.pf_fragment deleted file mode 100644 index dbdd69dc8..000000000 Binary files a/pagefind/fragment/en_23207fb.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/en_4686fbf.pf_fragment b/pagefind/fragment/en_2a999fc.pf_fragment similarity index 86% rename from pagefind/fragment/en_4686fbf.pf_fragment rename to pagefind/fragment/en_2a999fc.pf_fragment index 3e9bfac14..9f9f523a0 100644 Binary files a/pagefind/fragment/en_4686fbf.pf_fragment and b/pagefind/fragment/en_2a999fc.pf_fragment differ diff --git a/pagefind/fragment/en_383af7e.pf_fragment b/pagefind/fragment/en_383af7e.pf_fragment deleted file mode 100644 index 7574c11fb..000000000 Binary files a/pagefind/fragment/en_383af7e.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/en_3f1fbc3.pf_fragment b/pagefind/fragment/en_3f1fbc3.pf_fragment new file mode 100644 index 000000000..3fd42516f Binary files /dev/null and b/pagefind/fragment/en_3f1fbc3.pf_fragment differ diff --git a/pagefind/fragment/en_62e99da.pf_fragment b/pagefind/fragment/en_62e99da.pf_fragment deleted file mode 100644 index 9bbc8af2a..000000000 Binary files a/pagefind/fragment/en_62e99da.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/en_63f87cf.pf_fragment b/pagefind/fragment/en_63f87cf.pf_fragment deleted file mode 100644 index 4e2e20e89..000000000 Binary files a/pagefind/fragment/en_63f87cf.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/en_678738f.pf_fragment b/pagefind/fragment/en_678738f.pf_fragment new file mode 100644 index 000000000..8c74d022f Binary files /dev/null and b/pagefind/fragment/en_678738f.pf_fragment differ diff --git a/pagefind/fragment/en_6ae7548.pf_fragment b/pagefind/fragment/en_6ae7548.pf_fragment deleted file mode 100644 index 8e3cd8e4e..000000000 Binary files a/pagefind/fragment/en_6ae7548.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/en_3ad86ec.pf_fragment b/pagefind/fragment/en_71edb1e.pf_fragment similarity index 86% rename from pagefind/fragment/en_3ad86ec.pf_fragment rename to pagefind/fragment/en_71edb1e.pf_fragment index 8a8622fbe..db9cff7ea 100644 Binary files a/pagefind/fragment/en_3ad86ec.pf_fragment and b/pagefind/fragment/en_71edb1e.pf_fragment differ diff --git a/pagefind/fragment/en_729033a.pf_fragment b/pagefind/fragment/en_729033a.pf_fragment new file mode 100644 index 000000000..44be258d1 Binary files /dev/null and b/pagefind/fragment/en_729033a.pf_fragment differ diff --git a/pagefind/fragment/en_779b80b.pf_fragment b/pagefind/fragment/en_779b80b.pf_fragment new file mode 100644 index 000000000..09c06541c Binary files /dev/null and b/pagefind/fragment/en_779b80b.pf_fragment differ diff --git a/pagefind/fragment/en_9968ddb.pf_fragment b/pagefind/fragment/en_9c5d70a.pf_fragment similarity index 87% rename from pagefind/fragment/en_9968ddb.pf_fragment rename to pagefind/fragment/en_9c5d70a.pf_fragment index 41b1baad0..38d15d24e 100644 Binary files a/pagefind/fragment/en_9968ddb.pf_fragment and b/pagefind/fragment/en_9c5d70a.pf_fragment differ diff --git a/pagefind/fragment/en_be1a6c7.pf_fragment b/pagefind/fragment/en_9e771b3.pf_fragment similarity index 83% rename from pagefind/fragment/en_be1a6c7.pf_fragment rename to pagefind/fragment/en_9e771b3.pf_fragment index 6492b3217..2a03191ae 100644 Binary files a/pagefind/fragment/en_be1a6c7.pf_fragment and b/pagefind/fragment/en_9e771b3.pf_fragment differ diff --git a/pagefind/fragment/en_b740206.pf_fragment b/pagefind/fragment/en_b740206.pf_fragment deleted file mode 100644 index c1f3a4a64..000000000 Binary files a/pagefind/fragment/en_b740206.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/en_d218992.pf_fragment b/pagefind/fragment/en_d218992.pf_fragment new file mode 100644 index 000000000..2d94ee0ac Binary files /dev/null and b/pagefind/fragment/en_d218992.pf_fragment differ diff --git a/pagefind/fragment/en_d3f3448.pf_fragment b/pagefind/fragment/en_d3f3448.pf_fragment deleted file mode 100644 index ad410a360..000000000 Binary files a/pagefind/fragment/en_d3f3448.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/en_d44cae4.pf_fragment b/pagefind/fragment/en_d44cae4.pf_fragment new file mode 100644 index 000000000..a4f350015 Binary files /dev/null and b/pagefind/fragment/en_d44cae4.pf_fragment differ diff --git a/pagefind/fragment/en_95ec7c3.pf_fragment b/pagefind/fragment/en_d9b54ec.pf_fragment similarity index 87% rename from pagefind/fragment/en_95ec7c3.pf_fragment rename to pagefind/fragment/en_d9b54ec.pf_fragment index 34f6832ba..811c82f2b 100644 Binary files a/pagefind/fragment/en_95ec7c3.pf_fragment and b/pagefind/fragment/en_d9b54ec.pf_fragment differ diff --git a/pagefind/fragment/en_deb947e.pf_fragment b/pagefind/fragment/en_deb947e.pf_fragment new file mode 100644 index 000000000..19a414043 Binary files /dev/null and b/pagefind/fragment/en_deb947e.pf_fragment differ diff --git a/pagefind/fragment/en_e37180d.pf_fragment b/pagefind/fragment/en_e37180d.pf_fragment new file mode 100644 index 000000000..2f325b8bf Binary files /dev/null and b/pagefind/fragment/en_e37180d.pf_fragment differ diff --git a/pagefind/fragment/en_ed88e2a.pf_fragment b/pagefind/fragment/en_ed88e2a.pf_fragment new file mode 100644 index 000000000..e7c4be8e8 Binary files /dev/null and b/pagefind/fragment/en_ed88e2a.pf_fragment differ diff --git a/pagefind/fragment/en_f26b2ed.pf_fragment b/pagefind/fragment/en_f26b2ed.pf_fragment deleted file mode 100644 index d3c38a343..000000000 Binary files a/pagefind/fragment/en_f26b2ed.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/en_f4d8b90.pf_fragment b/pagefind/fragment/en_f4d8b90.pf_fragment new file mode 100644 index 000000000..38bfb31b4 Binary files /dev/null and b/pagefind/fragment/en_f4d8b90.pf_fragment differ diff --git a/pagefind/fragment/es_2e18a7c.pf_fragment b/pagefind/fragment/es_2e18a7c.pf_fragment new file mode 100644 index 000000000..6b7227cb3 Binary files /dev/null and b/pagefind/fragment/es_2e18a7c.pf_fragment differ diff --git a/pagefind/fragment/es_3a13a6b.pf_fragment b/pagefind/fragment/es_3a13a6b.pf_fragment new file mode 100644 index 000000000..ea157f39a Binary files /dev/null and b/pagefind/fragment/es_3a13a6b.pf_fragment differ diff --git a/pagefind/fragment/es_4bb2a1e.pf_fragment b/pagefind/fragment/es_4bb2a1e.pf_fragment deleted file mode 100644 index 028a648fe..000000000 Binary files a/pagefind/fragment/es_4bb2a1e.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/es_59d99c8.pf_fragment b/pagefind/fragment/es_59d99c8.pf_fragment deleted file mode 100644 index ac3ab73b8..000000000 Binary files a/pagefind/fragment/es_59d99c8.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/es_65e2da1.pf_fragment b/pagefind/fragment/es_605c80d.pf_fragment similarity index 88% rename from pagefind/fragment/es_65e2da1.pf_fragment rename to pagefind/fragment/es_605c80d.pf_fragment index 39f477492..9bcabd96b 100644 Binary files a/pagefind/fragment/es_65e2da1.pf_fragment and b/pagefind/fragment/es_605c80d.pf_fragment differ diff --git a/pagefind/fragment/es_655f42b.pf_fragment b/pagefind/fragment/es_655f42b.pf_fragment deleted file mode 100644 index ddb77b617..000000000 Binary files a/pagefind/fragment/es_655f42b.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/es_750f84e.pf_fragment b/pagefind/fragment/es_70f69e9.pf_fragment similarity index 89% rename from pagefind/fragment/es_750f84e.pf_fragment rename to pagefind/fragment/es_70f69e9.pf_fragment index d79e723d5..f94ddd548 100644 Binary files a/pagefind/fragment/es_750f84e.pf_fragment and b/pagefind/fragment/es_70f69e9.pf_fragment differ diff --git a/pagefind/fragment/es_77cd8b3.pf_fragment b/pagefind/fragment/es_77cd8b3.pf_fragment new file mode 100644 index 000000000..56975da6e Binary files /dev/null and b/pagefind/fragment/es_77cd8b3.pf_fragment differ diff --git a/pagefind/fragment/es_2f2869b.pf_fragment b/pagefind/fragment/es_8158a21.pf_fragment similarity index 88% rename from pagefind/fragment/es_2f2869b.pf_fragment rename to pagefind/fragment/es_8158a21.pf_fragment index 4e111088b..455196947 100644 Binary files a/pagefind/fragment/es_2f2869b.pf_fragment and b/pagefind/fragment/es_8158a21.pf_fragment differ diff --git a/pagefind/fragment/es_9da5bc1.pf_fragment b/pagefind/fragment/es_9da5bc1.pf_fragment deleted file mode 100644 index e52a7a947..000000000 Binary files a/pagefind/fragment/es_9da5bc1.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/es_7601ddd.pf_fragment b/pagefind/fragment/es_aea647e.pf_fragment similarity index 86% rename from pagefind/fragment/es_7601ddd.pf_fragment rename to pagefind/fragment/es_aea647e.pf_fragment index 208fd9cf1..2e9509dae 100644 Binary files a/pagefind/fragment/es_7601ddd.pf_fragment and b/pagefind/fragment/es_aea647e.pf_fragment differ diff --git a/pagefind/fragment/es_c2e1958.pf_fragment b/pagefind/fragment/es_c2e1958.pf_fragment new file mode 100644 index 000000000..2d816eb13 Binary files /dev/null and b/pagefind/fragment/es_c2e1958.pf_fragment differ diff --git a/pagefind/fragment/es_d7e885d.pf_fragment b/pagefind/fragment/es_d7e885d.pf_fragment deleted file mode 100644 index 312e0f3f9..000000000 Binary files a/pagefind/fragment/es_d7e885d.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/es_d969152.pf_fragment b/pagefind/fragment/es_d969152.pf_fragment new file mode 100644 index 000000000..8c5920fef Binary files /dev/null and b/pagefind/fragment/es_d969152.pf_fragment differ diff --git a/pagefind/fragment/es_e158647.pf_fragment b/pagefind/fragment/es_e158647.pf_fragment deleted file mode 100644 index 439e6d5fc..000000000 Binary files a/pagefind/fragment/es_e158647.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/es_f632ab2.pf_fragment b/pagefind/fragment/es_f632ab2.pf_fragment new file mode 100644 index 000000000..2b696807f Binary files /dev/null and b/pagefind/fragment/es_f632ab2.pf_fragment differ diff --git a/pagefind/fragment/tr_1e92986.pf_fragment b/pagefind/fragment/tr_1e92986.pf_fragment new file mode 100644 index 000000000..91ec0a6ea Binary files /dev/null and b/pagefind/fragment/tr_1e92986.pf_fragment differ diff --git a/pagefind/fragment/tr_1f1b26b.pf_fragment b/pagefind/fragment/tr_1f1b26b.pf_fragment deleted file mode 100644 index 3e6200cde..000000000 Binary files a/pagefind/fragment/tr_1f1b26b.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/tr_26bfdc0.pf_fragment b/pagefind/fragment/tr_26bfdc0.pf_fragment new file mode 100644 index 000000000..bb99aa3a8 Binary files /dev/null and b/pagefind/fragment/tr_26bfdc0.pf_fragment differ diff --git a/pagefind/fragment/tr_2bf587f.pf_fragment b/pagefind/fragment/tr_2bf587f.pf_fragment deleted file mode 100644 index e2d6f16da..000000000 Binary files a/pagefind/fragment/tr_2bf587f.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/tr_3d96946.pf_fragment b/pagefind/fragment/tr_3d96946.pf_fragment new file mode 100644 index 000000000..056c3bb4f Binary files /dev/null and b/pagefind/fragment/tr_3d96946.pf_fragment differ diff --git a/pagefind/fragment/tr_3edfd8d.pf_fragment b/pagefind/fragment/tr_3edfd8d.pf_fragment deleted file mode 100644 index ebc98dae8..000000000 Binary files a/pagefind/fragment/tr_3edfd8d.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/tr_40b1c7b.pf_fragment b/pagefind/fragment/tr_40b1c7b.pf_fragment new file mode 100644 index 000000000..b024ecc2c Binary files /dev/null and b/pagefind/fragment/tr_40b1c7b.pf_fragment differ diff --git a/pagefind/fragment/tr_5298c3f.pf_fragment b/pagefind/fragment/tr_5298c3f.pf_fragment deleted file mode 100644 index c57312067..000000000 Binary files a/pagefind/fragment/tr_5298c3f.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/tr_54ee77f.pf_fragment b/pagefind/fragment/tr_54ee77f.pf_fragment new file mode 100644 index 000000000..5b0ee082c Binary files /dev/null and b/pagefind/fragment/tr_54ee77f.pf_fragment differ diff --git a/pagefind/fragment/tr_575821c.pf_fragment b/pagefind/fragment/tr_575821c.pf_fragment deleted file mode 100644 index 0999f626e..000000000 Binary files a/pagefind/fragment/tr_575821c.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/tr_62e6a58.pf_fragment b/pagefind/fragment/tr_62e6a58.pf_fragment deleted file mode 100644 index b0006d1f2..000000000 Binary files a/pagefind/fragment/tr_62e6a58.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/tr_68f7da2.pf_fragment b/pagefind/fragment/tr_68f7da2.pf_fragment deleted file mode 100644 index ad4d6b11a..000000000 Binary files a/pagefind/fragment/tr_68f7da2.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/tr_80706e7.pf_fragment b/pagefind/fragment/tr_80706e7.pf_fragment deleted file mode 100644 index 94b55430e..000000000 Binary files a/pagefind/fragment/tr_80706e7.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/tr_92c5b8b.pf_fragment b/pagefind/fragment/tr_92c5b8b.pf_fragment new file mode 100644 index 000000000..400f99f0b Binary files /dev/null and b/pagefind/fragment/tr_92c5b8b.pf_fragment differ diff --git a/pagefind/fragment/tr_933e28d.pf_fragment b/pagefind/fragment/tr_933e28d.pf_fragment new file mode 100644 index 000000000..741c064e4 Binary files /dev/null and b/pagefind/fragment/tr_933e28d.pf_fragment differ diff --git a/pagefind/fragment/tr_954643b.pf_fragment b/pagefind/fragment/tr_954643b.pf_fragment new file mode 100644 index 000000000..7555941e1 Binary files /dev/null and b/pagefind/fragment/tr_954643b.pf_fragment differ diff --git a/pagefind/fragment/tr_9da6339.pf_fragment b/pagefind/fragment/tr_9da6339.pf_fragment deleted file mode 100644 index 15af1f5f2..000000000 Binary files a/pagefind/fragment/tr_9da6339.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/tr_be59da1.pf_fragment b/pagefind/fragment/tr_be59da1.pf_fragment deleted file mode 100644 index 788457df1..000000000 Binary files a/pagefind/fragment/tr_be59da1.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/tr_f321718.pf_fragment b/pagefind/fragment/tr_f321718.pf_fragment new file mode 100644 index 000000000..ffae13daf Binary files /dev/null and b/pagefind/fragment/tr_f321718.pf_fragment differ diff --git a/pagefind/fragment/tr_fc1c3bf.pf_fragment b/pagefind/fragment/tr_fc1c3bf.pf_fragment new file mode 100644 index 000000000..5bce30bcb Binary files /dev/null and b/pagefind/fragment/tr_fc1c3bf.pf_fragment differ diff --git a/pagefind/index/en_5feba9d.pf_index b/pagefind/index/en_5feba9d.pf_index new file mode 100644 index 000000000..4434a1b12 Binary files /dev/null and b/pagefind/index/en_5feba9d.pf_index differ diff --git a/pagefind/index/en_6eecd5e.pf_index b/pagefind/index/en_6eecd5e.pf_index deleted file mode 100644 index 0d5432b93..000000000 Binary files a/pagefind/index/en_6eecd5e.pf_index and /dev/null differ diff --git a/pagefind/index/en_79c6298.pf_index b/pagefind/index/en_79c6298.pf_index new file mode 100644 index 000000000..a23ad2f1a Binary files /dev/null and b/pagefind/index/en_79c6298.pf_index differ diff --git a/pagefind/index/en_9ed6d42.pf_index b/pagefind/index/en_9ed6d42.pf_index deleted file mode 100644 index 1148b0ed8..000000000 Binary files a/pagefind/index/en_9ed6d42.pf_index and /dev/null differ diff --git a/pagefind/index/en_dbaf55c.pf_index b/pagefind/index/en_dbaf55c.pf_index deleted file mode 100644 index 58f9dc93f..000000000 Binary files a/pagefind/index/en_dbaf55c.pf_index and /dev/null differ diff --git a/pagefind/index/en_f57bcef.pf_index b/pagefind/index/en_f57bcef.pf_index new file mode 100644 index 000000000..95d654411 Binary files /dev/null and b/pagefind/index/en_f57bcef.pf_index differ diff --git a/pagefind/index/es_1979872.pf_index b/pagefind/index/es_1979872.pf_index deleted file mode 100644 index fe008150c..000000000 Binary files a/pagefind/index/es_1979872.pf_index and /dev/null differ diff --git a/pagefind/index/es_238239e.pf_index b/pagefind/index/es_238239e.pf_index new file mode 100644 index 000000000..f4ebb4bcf Binary files /dev/null and b/pagefind/index/es_238239e.pf_index differ diff --git a/pagefind/index/es_8f3e216.pf_index b/pagefind/index/es_8f3e216.pf_index deleted file mode 100644 index 361f24100..000000000 Binary files a/pagefind/index/es_8f3e216.pf_index and /dev/null differ diff --git a/pagefind/index/es_9a22ef5.pf_index b/pagefind/index/es_9a22ef5.pf_index new file mode 100644 index 000000000..63ec9a097 Binary files /dev/null and b/pagefind/index/es_9a22ef5.pf_index differ diff --git a/pagefind/index/es_a0c7c32.pf_index b/pagefind/index/es_a0c7c32.pf_index deleted file mode 100644 index 9adfc1edb..000000000 Binary files a/pagefind/index/es_a0c7c32.pf_index and /dev/null differ diff --git a/pagefind/index/es_ed4ef0f.pf_index b/pagefind/index/es_ed4ef0f.pf_index new file mode 100644 index 000000000..cd615a5ef Binary files /dev/null and b/pagefind/index/es_ed4ef0f.pf_index differ diff --git a/pagefind/index/tr_697ab1f.pf_index b/pagefind/index/tr_697ab1f.pf_index new file mode 100644 index 000000000..b3fe8e7d9 Binary files /dev/null and b/pagefind/index/tr_697ab1f.pf_index differ diff --git a/pagefind/index/tr_85cbfaf.pf_index b/pagefind/index/tr_85cbfaf.pf_index deleted file mode 100644 index 9b4a893c0..000000000 Binary files a/pagefind/index/tr_85cbfaf.pf_index and /dev/null differ diff --git a/pagefind/index/tr_9c2af34.pf_index b/pagefind/index/tr_9c2af34.pf_index new file mode 100644 index 000000000..73dff4cbc Binary files /dev/null and b/pagefind/index/tr_9c2af34.pf_index differ diff --git a/pagefind/index/tr_c4d3ddc.pf_index b/pagefind/index/tr_c4d3ddc.pf_index deleted file mode 100644 index 215a803f7..000000000 Binary files a/pagefind/index/tr_c4d3ddc.pf_index and /dev/null differ diff --git a/pagefind/index/tr_cf27df7.pf_index b/pagefind/index/tr_cf27df7.pf_index deleted file mode 100644 index 7c7e21acd..000000000 Binary files a/pagefind/index/tr_cf27df7.pf_index and /dev/null differ diff --git a/pagefind/index/tr_d2b8aa8.pf_index b/pagefind/index/tr_d2b8aa8.pf_index new file mode 100644 index 000000000..150d231e7 Binary files /dev/null and b/pagefind/index/tr_d2b8aa8.pf_index differ diff --git a/pagefind/pagefind-entry.json b/pagefind/pagefind-entry.json index 12a50c187..f7ffddc4c 100644 --- a/pagefind/pagefind-entry.json +++ b/pagefind/pagefind-entry.json @@ -1 +1 @@ -{"version":"1.1.0","languages":{"es":{"hash":"es_ba3d849834","wasm":"es","page_count":181},"en":{"hash":"en_887f555e78","wasm":"en","page_count":183},"tr":{"hash":"tr_41b67ebffa","wasm":"tr","page_count":181}}} \ No newline at end of file +{"version":"1.1.0","languages":{"tr":{"hash":"tr_9c823b745f","wasm":"tr","page_count":181},"es":{"hash":"es_195219bb82","wasm":"es","page_count":181},"en":{"hash":"en_3aaf5f7597","wasm":"en","page_count":183}}} \ No newline at end of file diff --git a/pagefind/pagefind.en_3aaf5f7597.pf_meta b/pagefind/pagefind.en_3aaf5f7597.pf_meta new file mode 100644 index 000000000..902767845 Binary files /dev/null and b/pagefind/pagefind.en_3aaf5f7597.pf_meta differ diff --git a/pagefind/pagefind.en_887f555e78.pf_meta b/pagefind/pagefind.en_887f555e78.pf_meta deleted file mode 100644 index b8cd88605..000000000 Binary files a/pagefind/pagefind.en_887f555e78.pf_meta and /dev/null differ diff --git a/pagefind/pagefind.es_195219bb82.pf_meta b/pagefind/pagefind.es_195219bb82.pf_meta new file mode 100644 index 000000000..2516e9bf9 Binary files /dev/null and b/pagefind/pagefind.es_195219bb82.pf_meta differ diff --git a/pagefind/pagefind.es_ba3d849834.pf_meta b/pagefind/pagefind.es_ba3d849834.pf_meta deleted file mode 100644 index 2ca34e8fa..000000000 Binary files a/pagefind/pagefind.es_ba3d849834.pf_meta and /dev/null differ diff --git a/pagefind/pagefind.tr_41b67ebffa.pf_meta b/pagefind/pagefind.tr_41b67ebffa.pf_meta deleted file mode 100644 index 6f2867f48..000000000 Binary files a/pagefind/pagefind.tr_41b67ebffa.pf_meta and /dev/null differ diff --git a/pagefind/pagefind.tr_9c823b745f.pf_meta b/pagefind/pagefind.tr_9c823b745f.pf_meta new file mode 100644 index 000000000..74ea49860 Binary files /dev/null and b/pagefind/pagefind.tr_9c823b745f.pf_meta differ diff --git a/plugins/index.html b/plugins/index.html index ec414dbc8..d25437ae2 100644 --- a/plugins/index.html +++ b/plugins/index.html @@ -38,21 +38,21 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem; Skip to content
    sern

    Plugins

    -First time here? View plugins

    channelType

    This plugin checks if a channel is the specified type

    requirePermission

    This is perm check, it allows users to parse the permission you want and let the plugin do the rest. (check bot or user for that perm).

    publish

    It allows you to publish your application commands using the discord.js library with ease.

    \ No newline at end of file +mirror the execute method on the current module.

    src/commands/ping.ts
    1
    const myServer = "941002690211766332";
    2
    export default commandModule({
    3
    type: CommandType.Both,
    4
    plugins: [
    5
    //This plugin prevents this command module from executing in other servers except myServer
    6
    fromCallback((ctx, args) => ctx.guildId == myServer)
    7
    ],
    8
    execute: ctx => {
    9
    ctx.reply("I only respond in myServer!");
    10
    }
    11
    })

    serverOnly

    Checks if a command is available in a specific server.

    cooldown

    Allows you to set cooldowns (or “ratelimits”) for commands, limits user/channel/guild actions.

    \ 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 ee69767c4..86b43aaf5 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 d8c45c529..959c34190 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 f283c5ec7..6ac888505 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 25037599a..02a1472c2 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 8926a27bb..4d1b8cc3a 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 0749544eb..26c6467f0 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 6b3c53687..9e3cae464 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

    -
    Vinci

    Vinci

    The discord bot for Mara Turing

    man-nomic

    man-nomic

    Displays LLM model information

    Bask

    Bask

    A discord music bot

    Albion Guide

    Albion Guide

    Gets info about The First Descendant Game.

    sern Community

    sern Community

    The bot used to manage sern Community

    +
    sern Community

    sern Community

    The bot used to manage sern Community

    Vinci

    Vinci

    The discord bot for Mara Turing

    Albion Guide

    Albion Guide

    Gets info about The First Descendant Game.

    Bask

    Bask

    A discord music bot

    man-nomic

    man-nomic

    Displays LLM model information

    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 dee24f97a..4cfc4810b 100644 --- a/tr/v3/api/classes/context/index.html +++ b/tr/v3/api/classes/context/index.html @@ -230,4 +230,4 @@ else, interaction.user

    Returns

    Context

    Source

    -

    src/core/structures/context.ts:129

    \ No newline at end of file +

    src/core/structures/context.ts:129

    \ 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 3b7e356db..9d41237b6 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 5917016bb..3a0e34484 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 b83ab726e..a4bcc81dc 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;

    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/v3/api/enumerations/plugintype/index.html b/tr/v3/api/enumerations/plugintype/index.html index 65277ec4d..e91092730 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 1398d4409..6d41cc485 100644 --- a/tr/v3/api/functions/commandcontrolplugin/index.html +++ b/tr/v3/api/functions/commandcontrolplugin/index.html @@ -53,4 +53,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Since

    2.5.0

    Source

    -

    src/core/plugin.ts:28

    \ No newline at end of file +

    src/core/plugin.ts:28

    \ 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 0d7673a4a..925189aad 100644 --- a/tr/v3/api/functions/commandinitplugin/index.html +++ b/tr/v3/api/functions/commandinitplugin/index.html @@ -53,4 +53,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Since

    2.5.0

    Source

    -

    src/core/plugin.ts:20

    \ No newline at end of file +

    src/core/plugin.ts:20

    \ 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 5310def5e..735789770 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:16

    \ No newline at end of file +

    src/core/modules.ts:16

    \ 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 445ea689f..2a26d5a29 100644 --- a/tr/v3/api/functions/discordevent/index.html +++ b/tr/v3/api/functions/discordevent/index.html @@ -57,4 +57,4 @@ where typings can be very bad.

    Returns

    Module

    Source

    -

    src/core/modules.ts:42

    \ No newline at end of file +

    src/core/modules.ts:42

    \ 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 afbd35bfd..542329cdd 100644 --- a/tr/v3/api/functions/eventinitplugin/index.html +++ b/tr/v3/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:14

    \ No newline at end of file +

    src/core/plugin.ts:14

    \ 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 01c851142..e92945f15 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:29

    \ No newline at end of file +

    src/core/modules.ts:29

    \ 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 e588b51de..030204f5e 100644 --- a/tr/v3/api/functions/makedependencies/index.html +++ b/tr/v3/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/v3/api/functions/makeplugin/index.html b/tr/v3/api/functions/makeplugin/index.html index 4f096a6ce..67c3e28e5 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/plugin.ts:5

    \ No newline at end of file +

    src/core/plugin.ts:5

    \ 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 50c6b6def..2eb374e86 100644 --- a/tr/v3/api/functions/service/index.html +++ b/tr/v3/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/v3/api/functions/services/index.html b/tr/v3/api/functions/services/index.html index 6e500a16a..9e553c789 100644 --- a/tr/v3/api/functions/services/index.html +++ b/tr/v3/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/v3/api/functions/single/index.html b/tr/v3/api/functions/single/index.html index a2a6e7c8a..5f1f470f6 100644 --- a/tr/v3/api/functions/single/index.html +++ b/tr/v3/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/v3/api/functions/transient/index.html b/tr/v3/api/functions/transient/index.html index f144cceaa..eeaaf72e9 100644 --- a/tr/v3/api/functions/transient/index.html +++ b/tr/v3/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/v3/api/interfaces/bothcommand/index.html b/tr/v3/api/interfaces/bothcommand/index.html index 4ac307320..fb0117d94 100644 --- a/tr/v3/api/interfaces/bothcommand/index.html +++ b/tr/v3/api/interfaces/bothcommand/index.html @@ -136,4 +136,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.type

    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/interfaces/buttoncommand/index.html b/tr/v3/api/interfaces/buttoncommand/index.html index 1d293565b..225576b32 100644 --- a/tr/v3/api/interfaces/buttoncommand/index.html +++ b/tr/v3/api/interfaces/buttoncommand/index.html @@ -129,4 +129,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/channelselectcommand/index.html b/tr/v3/api/interfaces/channelselectcommand/index.html index f7b67621f..c1e49c75f 100644 --- a/tr/v3/api/interfaces/channelselectcommand/index.html +++ b/tr/v3/api/interfaces/channelselectcommand/index.html @@ -129,4 +129,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/commandmoduledefs/index.html b/tr/v3/api/interfaces/commandmoduledefs/index.html index 6d568a944..90974743e 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:159

    \ No newline at end of file +

    src/types/core-modules.ts:159

    \ 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 caf4560d5..25eed628e 100644 --- a/tr/v3/api/interfaces/contextmenumsg/index.html +++ b/tr/v3/api/interfaces/contextmenumsg/index.html @@ -129,4 +129,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/contextmenuuser/index.html b/tr/v3/api/interfaces/contextmenuuser/index.html index 86487bddc..877a0e53a 100644 --- a/tr/v3/api/interfaces/contextmenuuser/index.html +++ b/tr/v3/api/interfaces/contextmenuuser/index.html @@ -129,4 +129,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/controlplugin/index.html b/tr/v3/api/interfaces/controlplugin/index.html index bb682bb1b..d4ba5655b 100644 --- a/tr/v3/api/interfaces/controlplugin/index.html +++ b/tr/v3/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: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/interfaces/coredependencies/index.html b/tr/v3/api/interfaces/coredependencies/index.html index 0028ec958..7697dcc88 100644 --- a/tr/v3/api/interfaces/coredependencies/index.html +++ b/tr/v3/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/v3/api/interfaces/discordeventcommand/index.html b/tr/v3/api/interfaces/discordeventcommand/index.html index fb656643c..f84c5acce 100644 --- a/tr/v3/api/interfaces/discordeventcommand/index.html +++ b/tr/v3/api/interfaces/discordeventcommand/index.html @@ -130,4 +130,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.execute

    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/disposable/index.html b/tr/v3/api/interfaces/disposable/index.html index 130bbc627..e06081763 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/interfaces.ts:17

    \ No newline at end of file +

    src/core/interfaces.ts:17

    \ 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 a368524e8..8e994d8e8 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/interfaces.ts:23

    \ No newline at end of file +

    src/core/interfaces.ts:23

    \ 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 2f8876891..304723457 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/interfaces.ts:41

    \ No newline at end of file +

    src/core/interfaces.ts:41

    \ 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 e4ff40881..4635d82c5 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;

    2: ExternalEventCommand

    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/externaleventcommand/index.html b/tr/v3/api/interfaces/externaleventcommand/index.html index feef6e91b..d672fcbf0 100644 --- a/tr/v3/api/interfaces/externaleventcommand/index.html +++ b/tr/v3/api/interfaces/externaleventcommand/index.html @@ -135,4 +135,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.execute

    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/init/index.html b/tr/v3/api/interfaces/init/index.html index 003db8f10..f81c2cee7 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/interfaces.ts:9

    \ No newline at end of file +

    src/core/interfaces.ts:9

    \ 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 fecc77b0a..1f5d1af0c 100644 --- a/tr/v3/api/interfaces/initplugin/index.html +++ b/tr/v3/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:47

    \ No newline at end of file +

    src/types/core-plugin.ts:47

    \ 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 7bbd69d04..69d76cff2 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/interfaces.ts:50

    \ No newline at end of file +

    src/core/interfaces.ts:50

    \ 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 f72610ce0..69a0f4d8d 100644 --- a/tr/v3/api/interfaces/mentionableselectcommand/index.html +++ b/tr/v3/api/interfaces/mentionableselectcommand/index.html @@ -129,4 +129,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/modalsubmitcommand/index.html b/tr/v3/api/interfaces/modalsubmitcommand/index.html index 5617a49be..d6f453204 100644 --- a/tr/v3/api/interfaces/modalsubmitcommand/index.html +++ b/tr/v3/api/interfaces/modalsubmitcommand/index.html @@ -129,4 +129,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:104

    \ No newline at end of file +

    src/types/core-modules.ts:104

    \ 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 4d8d4b40c..216d1f791 100644 --- a/tr/v3/api/interfaces/plugin/index.html +++ b/tr/v3/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:42

    \ No newline at end of file +

    src/types/core-plugin.ts:42

    \ 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 0728c4957..0f04dab14 100644 --- a/tr/v3/api/interfaces/roleselectcommand/index.html +++ b/tr/v3/api/interfaces/roleselectcommand/index.html @@ -129,4 +129,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/sernautocompletedata/index.html b/tr/v3/api/interfaces/sernautocompletedata/index.html index 522491b3a..bf98ff7b8 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:179

    \ No newline at end of file +

    src/types/core-modules.ts:179

    \ 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 5e8a263fa..d521f246b 100644 --- a/tr/v3/api/interfaces/serneventcommand/index.html +++ b/tr/v3/api/interfaces/serneventcommand/index.html @@ -130,4 +130,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.execute

    Source

    -

    src/types/core-modules.ts:52

    \ No newline at end of file +

    src/types/core-modules.ts:52

    \ 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 c5bbf1769..f5052de62 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:14

    \ No newline at end of file +

    src/types/utility.ts:14

    \ 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 831e662cd..b99020830 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:217

    \ No newline at end of file +

    src/types/core-modules.ts:217

    \ 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 6219f4604..08fa14621 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:222

    \ No newline at end of file +

    src/types/core-modules.ts:222

    \ 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 78c5a2560..25d8009d7 100644 --- a/tr/v3/api/interfaces/slashcommand/index.html +++ b/tr/v3/api/interfaces/slashcommand/index.html @@ -136,4 +136,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:125

    \ No newline at end of file +

    src/types/core-modules.ts:125

    \ 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 844b182a0..4cb1406f3 100644 --- a/tr/v3/api/interfaces/stringselectcommand/index.html +++ b/tr/v3/api/interfaces/stringselectcommand/index.html @@ -129,4 +129,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/textcommand/index.html b/tr/v3/api/interfaces/textcommand/index.html index 2b79c0dfb..b40c536c0 100644 --- a/tr/v3/api/interfaces/textcommand/index.html +++ b/tr/v3/api/interfaces/textcommand/index.html @@ -129,4 +129,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:120

    \ No newline at end of file +

    src/types/core-modules.ts:120

    \ 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 a5d736cc4..75345642b 100644 --- a/tr/v3/api/interfaces/userselectcommand/index.html +++ b/tr/v3/api/interfaces/userselectcommand/index.html @@ -129,4 +129,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:99

    \ No newline at end of file +

    src/types/core-modules.ts:99

    \ 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 041ea2afb..26d32f8e1 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:58

    \ No newline at end of file +

    src/core/presences.ts:58

    \ 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 22c4ec89a..77f4dc029 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:51

    \ No newline at end of file +

    src/core/presences.ts:51

    \ 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 63bbe8618..5753d6ada 100644 --- a/tr/v3/api/namespaces/sern/functions/init/index.html +++ b/tr/v3/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:35

    \ No newline at end of file +

    src/sern.ts:35

    \ No newline at end of file diff --git a/tr/v3/api/readme/index.html b/tr/v3/api/readme/index.html index 828487fa3..8ae17a02d 100644 --- a/tr/v3/api/readme/index.html +++ b/tr/v3/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/v3/api/type-aliases/commandmodule/index.html b/tr/v3/api/type-aliases/commandmodule/index.html index 89f1b5a58..2b12edade 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:139

    \ No newline at end of file +

    src/types/core-modules.ts:139

    \ 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 091930448..97592dc5f 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:138

    \ No newline at end of file +

    src/types/core-modules.ts:138

    \ 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 14e1c4a74..40d6665e6 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/interfaces.ts:55

    \ No newline at end of file +

    src/core/interfaces.ts:55

    \ 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 4f83bf01b..7fde51cb7 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:18

    \ No newline at end of file +

    src/types/utility.ts:18

    \ 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 f52d439cb..b531a7701 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<Result<Record<string, unknown> | undefined, string | undefined>>

    Source

    -

    src/types/core-plugin.ts:35

    \ No newline at end of file +

    src/types/core-plugin.ts:35

    \ 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 7cef42663..1ae21dbd3 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:209

    \ No newline at end of file +

    src/types/core-modules.ts:209

    \ 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 65ad6ca0a..54754f6d5 100644 --- a/tr/v3/api/variables/controller/index.html +++ b/tr/v3/api/variables/controller/index.html @@ -65,4 +65,4 @@ The object passed into every plugin to control a command’s behavior

    Returns

    Err<undefined | string>

    Source

    -

    src/core/plugin.ts:39

    \ No newline at end of file +

    src/core/plugin.ts:39

    \ No newline at end of file diff --git a/tr/v3/cli/about/index.html b/tr/v3/cli/about/index.html index 92fac1748..62d1836a3 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 ef354b467..7be205625 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 719b1f594..521d0dad2 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 0a3659aca..000eb8450 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 818a74fa6..e702377af 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 24502a93d..9607231e6 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 f3efef9c2..89087b94f 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 36624cc9f..ceb923885 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 4aeee8472..dd49d5d11 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 4848c4a76..947871e72 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 575ed206d..3d2123075 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 61692abc7..583640606 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 2bfddebc7..7bac59f41 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 5c0b88073..52599d169 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 a32e1cc85..c43d4cc0e 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 51c514c24..30afdc5b2 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 3b28f9499..bfe82617b 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 22d3714c0..7d5dbf828 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 48879797f..b728f1d2b 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 85b913a96..81768d1e6 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 afdf5d5e9..0ab0b9a69 100644 --- a/tr/v4/api/classes/context/index.html +++ b/tr/v4/api/classes/context/index.html @@ -230,4 +230,4 @@ else, interaction.user

    Returns

    Context

    Source

    -

    src/core/structures/context.ts:129

    \ No newline at end of file +

    src/core/structures/context.ts:129

    \ 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 7049fccac..6d3cde993 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 461591930..74b5cded1 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 c1f685ede..7e9760b8c 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 ec4c28804..e9ae199e8 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 f117ad727..15be88983 100644 --- a/tr/v4/api/functions/commandcontrolplugin/index.html +++ b/tr/v4/api/functions/commandcontrolplugin/index.html @@ -53,4 +53,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Since

    2.5.0

    Source

    -

    src/core/plugin.ts:28

    \ No newline at end of file +

    src/core/plugin.ts:28

    \ 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 e91ceecba..a543c7bf2 100644 --- a/tr/v4/api/functions/commandinitplugin/index.html +++ b/tr/v4/api/functions/commandinitplugin/index.html @@ -53,4 +53,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Since

    2.5.0

    Source

    -

    src/core/plugin.ts:20

    \ No newline at end of file +

    src/core/plugin.ts:20

    \ 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 033f603ae..452acc3f4 100644 --- a/tr/v4/api/functions/commandmodule/index.html +++ b/tr/v4/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:16

    \ No newline at end of file +

    src/core/modules.ts:16

    \ 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 9d178dd56..1f3151f68 100644 --- a/tr/v4/api/functions/discordevent/index.html +++ b/tr/v4/api/functions/discordevent/index.html @@ -57,4 +57,4 @@ where typings can be very bad.

    Returns

    Module

    Source

    -

    src/core/modules.ts:42

    \ No newline at end of file +

    src/core/modules.ts:42

    \ 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 26151182e..160ca7b33 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:14

    \ No newline at end of file +

    src/core/plugin.ts:14

    \ 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 3650a7e7e..05e528299 100644 --- a/tr/v4/api/functions/eventmodule/index.html +++ b/tr/v4/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:29

    \ No newline at end of file +

    src/core/modules.ts:29

    \ 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 86aa8ef9f..b8db4eed8 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 2bb693610..368afd9f6 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:5

    \ No newline at end of file +

    src/core/plugin.ts:5

    \ 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 dbbb6aea8..beaef06d2 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 7e70838a5..06f3eb734 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 bf049ef48..f29f82ae1 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 c53d66862..5ae71679a 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 f912da1de..a83217e9e 100644 --- a/tr/v4/api/interfaces/bothcommand/index.html +++ b/tr/v4/api/interfaces/bothcommand/index.html @@ -136,4 +136,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.type

    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/v4/api/interfaces/buttoncommand/index.html b/tr/v4/api/interfaces/buttoncommand/index.html index 8a7bd87a0..3238c861f 100644 --- a/tr/v4/api/interfaces/buttoncommand/index.html +++ b/tr/v4/api/interfaces/buttoncommand/index.html @@ -129,4 +129,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/v4/api/interfaces/channelselectcommand/index.html b/tr/v4/api/interfaces/channelselectcommand/index.html index c492721d6..e5e637e09 100644 --- a/tr/v4/api/interfaces/channelselectcommand/index.html +++ b/tr/v4/api/interfaces/channelselectcommand/index.html @@ -129,4 +129,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/v4/api/interfaces/commandmoduledefs/index.html b/tr/v4/api/interfaces/commandmoduledefs/index.html index 6fa5b624c..821b375bb 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:159

    \ No newline at end of file +

    src/types/core-modules.ts:159

    \ 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 bffe894ac..19f4b7a15 100644 --- a/tr/v4/api/interfaces/contextmenumsg/index.html +++ b/tr/v4/api/interfaces/contextmenumsg/index.html @@ -129,4 +129,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/v4/api/interfaces/contextmenuuser/index.html b/tr/v4/api/interfaces/contextmenuuser/index.html index 3f2f45dbd..a43d928d1 100644 --- a/tr/v4/api/interfaces/contextmenuuser/index.html +++ b/tr/v4/api/interfaces/contextmenuuser/index.html @@ -129,4 +129,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/v4/api/interfaces/controlplugin/index.html b/tr/v4/api/interfaces/controlplugin/index.html index fee56aaa4..e20761f00 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:51

    \ No newline at end of file +

    src/types/core-plugin.ts:51

    \ 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 c2f630c04..228cdb5c4 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 abe65c131..81cf300b1 100644 --- a/tr/v4/api/interfaces/discordeventcommand/index.html +++ b/tr/v4/api/interfaces/discordeventcommand/index.html @@ -130,4 +130,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.execute

    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/v4/api/interfaces/disposable/index.html b/tr/v4/api/interfaces/disposable/index.html index 36cbc094b..152764d4e 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 28105fc9c..38f983cfd 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 787b2dc82..5e5118b7e 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 d24996d60..a530947eb 100644 --- a/tr/v4/api/interfaces/eventmoduledefs/index.html +++ b/tr/v4/api/interfaces/eventmoduledefs/index.html @@ -61,4 +61,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    2: ExternalEventCommand

    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/v4/api/interfaces/externaleventcommand/index.html b/tr/v4/api/interfaces/externaleventcommand/index.html index ddc207bde..dc9bf4fdd 100644 --- a/tr/v4/api/interfaces/externaleventcommand/index.html +++ b/tr/v4/api/interfaces/externaleventcommand/index.html @@ -135,4 +135,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.execute

    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/v4/api/interfaces/init/index.html b/tr/v4/api/interfaces/init/index.html index 95a5f9c7f..d00868adc 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 f6a6a164d..2372dd596 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:47

    \ No newline at end of file +

    src/types/core-plugin.ts:47

    \ 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 9302f3543..738dc24e3 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 7f2414a2b..9534e98de 100644 --- a/tr/v4/api/interfaces/mentionableselectcommand/index.html +++ b/tr/v4/api/interfaces/mentionableselectcommand/index.html @@ -129,4 +129,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/v4/api/interfaces/modalsubmitcommand/index.html b/tr/v4/api/interfaces/modalsubmitcommand/index.html index ca0b7d016..6af28dbb0 100644 --- a/tr/v4/api/interfaces/modalsubmitcommand/index.html +++ b/tr/v4/api/interfaces/modalsubmitcommand/index.html @@ -129,4 +129,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:104

    \ No newline at end of file +

    src/types/core-modules.ts:104

    \ 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 5547eaf89..9010bda97 100644 --- a/tr/v4/api/interfaces/module/index.html +++ b/tr/v4/api/interfaces/module/index.html @@ -126,4 +126,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Returns

    any

    Source

    -

    src/types/core-modules.ts:45

    \ No newline at end of file +

    src/types/core-modules.ts:45

    \ 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 58faa8605..5f178c320 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:42

    \ No newline at end of file +

    src/types/core-plugin.ts:42

    \ 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 296e422e2..73e6d524e 100644 --- a/tr/v4/api/interfaces/roleselectcommand/index.html +++ b/tr/v4/api/interfaces/roleselectcommand/index.html @@ -129,4 +129,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/v4/api/interfaces/sernautocompletedata/index.html b/tr/v4/api/interfaces/sernautocompletedata/index.html index a40dd0677..cb6505719 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:179

    \ No newline at end of file +

    src/types/core-modules.ts:179

    \ 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 e421a2917..f785ee68a 100644 --- a/tr/v4/api/interfaces/serneventcommand/index.html +++ b/tr/v4/api/interfaces/serneventcommand/index.html @@ -130,4 +130,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.execute

    Source

    -

    src/types/core-modules.ts:52

    \ No newline at end of file +

    src/types/core-modules.ts:52

    \ 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 839c14e66..4620f31de 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:14

    \ No newline at end of file +

    src/types/utility.ts:14

    \ 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 99a01f016..8d9e80c6d 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:217

    \ No newline at end of file +

    src/types/core-modules.ts:217

    \ 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 6c35c569d..3fae013ae 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:222

    \ No newline at end of file +

    src/types/core-modules.ts:222

    \ 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 c057289e8..f810eb0b2 100644 --- a/tr/v4/api/interfaces/slashcommand/index.html +++ b/tr/v4/api/interfaces/slashcommand/index.html @@ -136,4 +136,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:125

    \ No newline at end of file +

    src/types/core-modules.ts:125

    \ 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 269bde873..06836e833 100644 --- a/tr/v4/api/interfaces/stringselectcommand/index.html +++ b/tr/v4/api/interfaces/stringselectcommand/index.html @@ -129,4 +129,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/v4/api/interfaces/textcommand/index.html b/tr/v4/api/interfaces/textcommand/index.html index 8feb222b3..a5ba2379f 100644 --- a/tr/v4/api/interfaces/textcommand/index.html +++ b/tr/v4/api/interfaces/textcommand/index.html @@ -129,4 +129,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:120

    \ No newline at end of file +

    src/types/core-modules.ts:120

    \ 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 ad78112e6..043ae00d4 100644 --- a/tr/v4/api/interfaces/userselectcommand/index.html +++ b/tr/v4/api/interfaces/userselectcommand/index.html @@ -129,4 +129,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:99

    \ No newline at end of file +

    src/types/core-modules.ts:99

    \ 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 af6bd2cb4..4c714c82c 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:35

    \ No newline at end of file +

    src/sern.ts:35

    \ No newline at end of file diff --git a/tr/v4/api/readme/index.html b/tr/v4/api/readme/index.html index c4ebbb5b7..f0cf4493f 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 3c79912ed..04954c58a 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:54

    \ No newline at end of file +

    src/types/core-plugin.ts:54

    \ 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 c07dcbea0..bc9ac812a 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:139

    \ No newline at end of file +

    src/types/core-modules.ts:139

    \ 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 67438b5cb..05568ecb7 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:45

    \ No newline at end of file +

    src/core/plugin.ts:45

    \ 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 2bbe8c404..cf881aa12 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:138

    \ No newline at end of file +

    src/types/core-modules.ts:138

    \ 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 2b08a8ad9..4f91620e1 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 dca6fdf0a..fc7deb0fd 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:18

    \ No newline at end of file +

    src/types/utility.ts:18

    \ 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 19d81a155..d3349ce4a 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:35

    \ No newline at end of file +

    src/types/core-plugin.ts:35

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

    type: CommandType

    Source

    -

    src/types/core-modules.ts:25

    \ No newline at end of file +

    src/types/core-modules.ts:25

    \ 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 b1fb1c426..1e9bfa01c 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:209

    \ No newline at end of file +

    src/types/core-modules.ts:209

    \ 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 529996ba1..55f6a68c8 100644 --- a/tr/v4/api/variables/controller/index.html +++ b/tr/v4/api/variables/controller/index.html @@ -65,4 +65,4 @@ The object passed into every plugin to control a command’s behavior

    Returns

    Err<undefined | string>

    Source

    -

    src/core/plugin.ts:39

    \ No newline at end of file +

    src/core/plugin.ts:39

    \ 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 80a8e9fa9..d8e7382b5 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:10

    \ No newline at end of file +

    src/core/presences.ts:10

    \ No newline at end of file diff --git a/tr/v4/cli/about/index.html b/tr/v4/cli/about/index.html index 6e7489989..30dbf473d 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 321e888be..7129619f2 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 79e56bd77..7579bcd05 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 5f58cabf0..13154cdb8 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 748c380eb..cd0d84591 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 2c3673628..8bd62b07a 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 13b194650..d0f6a0251 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 632750bd9..375889be4 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 2c4b27eb9..5a935f4b5 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/getting-started/index.html b/tr/v4/reference/getting-started/index.html index d4ed91885..ad6a58250 100644 --- a/tr/v4/reference/getting-started/index.html +++ b/tr/v4/reference/getting-started/index.html @@ -43,4 +43,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem; StarlightThemeProvider.updatePickers();

    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 +

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

    \ No newline at end of file diff --git a/tr/v4/reference/modules/index.html b/tr/v4/reference/modules/index.html index e14832ea4..a898eb0a2 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 b698fc336..d240d9fe3 100644 --- a/tr/v4/reference/plugins/index.html +++ b/tr/v4/reference/plugins/index.html @@ -108,4 +108,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 c33857f5c..14b2ff778 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 415edc827..0310f18a7 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 c9668e084..6bf39592a 100644 --- a/tr/v4/reference/tasks/index.html +++ b/tr/v4/reference/tasks/index.html @@ -46,4 +46,4 @@ If you haven’t already, add the tasks directory to you
    1
    export const tasks = "./dist/tasks"

    Defines a task that runs every minute.

    ./src/tasks/every-minute.js
    1
    import { scheduledTask } from "@sern/handler";
    2
    -
    3
    export default scheduledTask({
    4
    trigger: "* * * * *",
    5
    execute: (context) => {
    6
    console.log("cron cron")
    7
    }
    8
    })
    \ No newline at end of file +
    3
    export default scheduledTask({
    4
    trigger: "* * * * *",
    5
    execute: (context) => {
    6
    console.log("cron cron")
    7
    }
    8
    })
    \ No newline at end of file diff --git a/tr/v4/snippets/command/index.html b/tr/v4/snippets/command/index.html index 72b32f4c0..07b441557 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 b495777fb..f81fcd94c 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 507454793..692e4ba5e 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 c25255064..7f120ccd7 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 e4f3fdb72..601ade70a 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 73031e095..7bcc60072 100644 --- a/tr/v4/tools/publisher/index.html +++ b/tr/v4/tools/publisher/index.html @@ -72,4 +72,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;
    4
    export default commandModule( {
    5
    type: CommandType.Slash,
    6
    plugins: [
    7
    publishConfig({
    8
    integrationTypes: ['User'],
    9
    contexts: [1,2]
    10
    })
    11
    ],
    12
    description: `hello worl`,
    13
    execute: (ctx) => {
    14
    ctx.reply('pong')
    15
    }
    16
    })

    Example: command published in guild

    src/commands/ping.ts
    1
    import { commandModule, CommandType } from '@sern/handler'
    2
    import { publishConfig } from '@sern/publisher'
    3
    -
    4
    export default commandModule( {
    5
    type: CommandType.Slash,
    6
    plugins: [
    7
    publishConfig({
    8
    guildIds: ["889026545715400705"]
    9
    })
    10
    ],
    11
    description: `hello worl`,
    12
    execute: (ctx) => {
    13
    ctx.reply('pong')
    14
    }
    15
    })
    \ No newline at end of file +
    4
    export default commandModule( {
    5
    type: CommandType.Slash,
    6
    plugins: [
    7
    publishConfig({
    8
    guildIds: ["889026545715400705"]
    9
    })
    10
    ],
    11
    description: `hello worl`,
    12
    execute: (ctx) => {
    13
    ctx.reply('pong')
    14
    }
    15
    })
    \ 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 932826d06..03a853811 100644 --- a/tr/v4/transition/from-v3/index.html +++ b/tr/v4/transition/from-v3/index.html @@ -46,7 +46,7 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    The second argument is the new SDT type

    1
    import { commandModule, CommandType } from '@sern/handler'
    2
    -
    3
    export default commandModule({
    4
    type: CommandType.Slash,
    5
    description: "My ping command",
    6
    execute: (ctx, sdt) => {
    7
    sdt.params // only exists if current command is not a component
    8
    sdt.deps // Dependencies
    9
    sdt.type // module type
    10
    }
    11
    })
    +
    3
    export default commandModule({
    4
    type: CommandType.Slash,
    5
    description: "My ping command",
    6
    execute: (ctx, sdt) => {
    7
    sdt.params // only exists if current command is a component (dynamic custom ids)
    8
    sdt.deps // Dependencies
    9
    sdt.type // module type
    10
    }
    11
    })

    It used to look like this:

    @@ -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 41cb71934..08c581f49 100644 --- a/v3/api/classes/context/index.html +++ b/v3/api/classes/context/index.html @@ -230,4 +230,4 @@ else, interaction.user

    Returns

    Context

    Source

    -

    src/core/structures/context.ts:129

    \ No newline at end of file +

    src/core/structures/context.ts:129

    \ No newline at end of file diff --git a/v3/api/enumerations/commandtype/index.html b/v3/api/enumerations/commandtype/index.html index 6670c05af..83907fbda 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 9fd4a5ded..3b0c969a7 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 ffc5e880f..9901a9e63 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;

    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/v3/api/enumerations/plugintype/index.html b/v3/api/enumerations/plugintype/index.html index 2b5e86b09..c26962d8d 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 eba24260a..4d705e0e4 100644 --- a/v3/api/functions/commandcontrolplugin/index.html +++ b/v3/api/functions/commandcontrolplugin/index.html @@ -53,4 +53,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Since

    2.5.0

    Source

    -

    src/core/plugin.ts:28

    \ No newline at end of file +

    src/core/plugin.ts:28

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

    Since

    2.5.0

    Source

    -

    src/core/plugin.ts:20

    \ No newline at end of file +

    src/core/plugin.ts:20

    \ No newline at end of file diff --git a/v3/api/functions/commandmodule/index.html b/v3/api/functions/commandmodule/index.html index 092189b18..dd8b4e2ba 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:16

    \ No newline at end of file +

    src/core/modules.ts:16

    \ No newline at end of file diff --git a/v3/api/functions/discordevent/index.html b/v3/api/functions/discordevent/index.html index 2e697dd2a..2615531c1 100644 --- a/v3/api/functions/discordevent/index.html +++ b/v3/api/functions/discordevent/index.html @@ -57,4 +57,4 @@ where typings can be very bad.

    Returns

    Module

    Source

    -

    src/core/modules.ts:42

    \ No newline at end of file +

    src/core/modules.ts:42

    \ No newline at end of file diff --git a/v3/api/functions/eventinitplugin/index.html b/v3/api/functions/eventinitplugin/index.html index 90381decb..d13694944 100644 --- a/v3/api/functions/eventinitplugin/index.html +++ b/v3/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:14

    \ No newline at end of file +

    src/core/plugin.ts:14

    \ No newline at end of file diff --git a/v3/api/functions/eventmodule/index.html b/v3/api/functions/eventmodule/index.html index 5d1df608b..9472864f3 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:29

    \ No newline at end of file +

    src/core/modules.ts:29

    \ No newline at end of file diff --git a/v3/api/functions/makedependencies/index.html b/v3/api/functions/makedependencies/index.html index 0373278aa..9aa20982d 100644 --- a/v3/api/functions/makedependencies/index.html +++ b/v3/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/v3/api/functions/makeplugin/index.html b/v3/api/functions/makeplugin/index.html index 15ee917a0..a031ff62a 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/plugin.ts:5

    \ No newline at end of file +

    src/core/plugin.ts:5

    \ No newline at end of file diff --git a/v3/api/functions/service/index.html b/v3/api/functions/service/index.html index 59c175d0d..def4c5c51 100644 --- a/v3/api/functions/service/index.html +++ b/v3/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/v3/api/functions/services/index.html b/v3/api/functions/services/index.html index 9399f9f4d..ee3d92e89 100644 --- a/v3/api/functions/services/index.html +++ b/v3/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/v3/api/functions/single/index.html b/v3/api/functions/single/index.html index 1aeff9d45..e23691b79 100644 --- a/v3/api/functions/single/index.html +++ b/v3/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/v3/api/functions/transient/index.html b/v3/api/functions/transient/index.html index f4786792c..9d62a3e89 100644 --- a/v3/api/functions/transient/index.html +++ b/v3/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/v3/api/interfaces/bothcommand/index.html b/v3/api/interfaces/bothcommand/index.html index 5711d59f0..fe58fc580 100644 --- a/v3/api/interfaces/bothcommand/index.html +++ b/v3/api/interfaces/bothcommand/index.html @@ -136,4 +136,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.type

    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/interfaces/buttoncommand/index.html b/v3/api/interfaces/buttoncommand/index.html index a0cf28016..c1d2c21fe 100644 --- a/v3/api/interfaces/buttoncommand/index.html +++ b/v3/api/interfaces/buttoncommand/index.html @@ -129,4 +129,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/channelselectcommand/index.html b/v3/api/interfaces/channelselectcommand/index.html index 989f04fbf..ad04e2479 100644 --- a/v3/api/interfaces/channelselectcommand/index.html +++ b/v3/api/interfaces/channelselectcommand/index.html @@ -129,4 +129,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/commandmoduledefs/index.html b/v3/api/interfaces/commandmoduledefs/index.html index 7224f5de0..17ca437da 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:159

    \ No newline at end of file +

    src/types/core-modules.ts:159

    \ No newline at end of file diff --git a/v3/api/interfaces/contextmenumsg/index.html b/v3/api/interfaces/contextmenumsg/index.html index 63e5aa205..ce5851281 100644 --- a/v3/api/interfaces/contextmenumsg/index.html +++ b/v3/api/interfaces/contextmenumsg/index.html @@ -129,4 +129,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/contextmenuuser/index.html b/v3/api/interfaces/contextmenuuser/index.html index a49ae456c..f58ae5c5c 100644 --- a/v3/api/interfaces/contextmenuuser/index.html +++ b/v3/api/interfaces/contextmenuuser/index.html @@ -129,4 +129,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/controlplugin/index.html b/v3/api/interfaces/controlplugin/index.html index 295b46265..8e7a6ef98 100644 --- a/v3/api/interfaces/controlplugin/index.html +++ b/v3/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:51

    \ No newline at end of file +

    src/types/core-plugin.ts:51

    \ No newline at end of file diff --git a/v3/api/interfaces/coredependencies/index.html b/v3/api/interfaces/coredependencies/index.html index 238a8fe4c..ed0f9359f 100644 --- a/v3/api/interfaces/coredependencies/index.html +++ b/v3/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/v3/api/interfaces/discordeventcommand/index.html b/v3/api/interfaces/discordeventcommand/index.html index 171a8aa92..e7cc942b1 100644 --- a/v3/api/interfaces/discordeventcommand/index.html +++ b/v3/api/interfaces/discordeventcommand/index.html @@ -130,4 +130,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.execute

    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/disposable/index.html b/v3/api/interfaces/disposable/index.html index 5fcea16e2..9e513abe2 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/interfaces.ts:17

    \ No newline at end of file +

    src/core/interfaces.ts:17

    \ No newline at end of file diff --git a/v3/api/interfaces/emitter/index.html b/v3/api/interfaces/emitter/index.html index a79f17a7e..3350ab13f 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/interfaces.ts:23

    \ No newline at end of file +

    src/core/interfaces.ts:23

    \ No newline at end of file diff --git a/v3/api/interfaces/errorhandling/index.html b/v3/api/interfaces/errorhandling/index.html index 4f52fad7b..219aaba22 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/interfaces.ts:41

    \ No newline at end of file +

    src/core/interfaces.ts:41

    \ No newline at end of file diff --git a/v3/api/interfaces/eventmoduledefs/index.html b/v3/api/interfaces/eventmoduledefs/index.html index 5ab302920..2178e9e18 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;

    2: ExternalEventCommand

    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/externaleventcommand/index.html b/v3/api/interfaces/externaleventcommand/index.html index 89f38ce73..8622a55f5 100644 --- a/v3/api/interfaces/externaleventcommand/index.html +++ b/v3/api/interfaces/externaleventcommand/index.html @@ -135,4 +135,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.execute

    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/init/index.html b/v3/api/interfaces/init/index.html index 803c81bf8..615b31f54 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/interfaces.ts:9

    \ No newline at end of file +

    src/core/interfaces.ts:9

    \ No newline at end of file diff --git a/v3/api/interfaces/initplugin/index.html b/v3/api/interfaces/initplugin/index.html index e60ced6b6..c0469063f 100644 --- a/v3/api/interfaces/initplugin/index.html +++ b/v3/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:47

    \ No newline at end of file +

    src/types/core-plugin.ts:47

    \ No newline at end of file diff --git a/v3/api/interfaces/logging/index.html b/v3/api/interfaces/logging/index.html index 94d0236b2..64ddeab25 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/interfaces.ts:50

    \ No newline at end of file +

    src/core/interfaces.ts:50

    \ No newline at end of file diff --git a/v3/api/interfaces/mentionableselectcommand/index.html b/v3/api/interfaces/mentionableselectcommand/index.html index fffb234bd..01ebea601 100644 --- a/v3/api/interfaces/mentionableselectcommand/index.html +++ b/v3/api/interfaces/mentionableselectcommand/index.html @@ -129,4 +129,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/modalsubmitcommand/index.html b/v3/api/interfaces/modalsubmitcommand/index.html index b8c7fc1d0..379be6777 100644 --- a/v3/api/interfaces/modalsubmitcommand/index.html +++ b/v3/api/interfaces/modalsubmitcommand/index.html @@ -129,4 +129,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:104

    \ No newline at end of file +

    src/types/core-modules.ts:104

    \ No newline at end of file diff --git a/v3/api/interfaces/plugin/index.html b/v3/api/interfaces/plugin/index.html index 4cf6564b3..b2c0b6293 100644 --- a/v3/api/interfaces/plugin/index.html +++ b/v3/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:42

    \ No newline at end of file +

    src/types/core-plugin.ts:42

    \ No newline at end of file diff --git a/v3/api/interfaces/roleselectcommand/index.html b/v3/api/interfaces/roleselectcommand/index.html index 6c0eac170..97b0a15b8 100644 --- a/v3/api/interfaces/roleselectcommand/index.html +++ b/v3/api/interfaces/roleselectcommand/index.html @@ -129,4 +129,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/sernautocompletedata/index.html b/v3/api/interfaces/sernautocompletedata/index.html index 37f44819c..bba2573f2 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:179

    \ No newline at end of file +

    src/types/core-modules.ts:179

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

    Overrides

    Module.execute

    Source

    -

    src/types/core-modules.ts:52

    \ No newline at end of file +

    src/types/core-modules.ts:52

    \ No newline at end of file diff --git a/v3/api/interfaces/serneventsmapping/index.html b/v3/api/interfaces/serneventsmapping/index.html index 9b02907fd..25c44405d 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:14

    \ No newline at end of file +

    src/types/utility.ts:14

    \ No newline at end of file diff --git a/v3/api/interfaces/sernsubcommanddata/index.html b/v3/api/interfaces/sernsubcommanddata/index.html index 2d43e6721..6b38d6154 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:217

    \ No newline at end of file +

    src/types/core-modules.ts:217

    \ No newline at end of file diff --git a/v3/api/interfaces/sernsubcommandgroupdata/index.html b/v3/api/interfaces/sernsubcommandgroupdata/index.html index 173d2394c..dbc04bebc 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:222

    \ No newline at end of file +

    src/types/core-modules.ts:222

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

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:125

    \ No newline at end of file +

    src/types/core-modules.ts:125

    \ No newline at end of file diff --git a/v3/api/interfaces/stringselectcommand/index.html b/v3/api/interfaces/stringselectcommand/index.html index 802cc1b1d..90bc7bb1c 100644 --- a/v3/api/interfaces/stringselectcommand/index.html +++ b/v3/api/interfaces/stringselectcommand/index.html @@ -129,4 +129,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/textcommand/index.html b/v3/api/interfaces/textcommand/index.html index 9e35d0804..aa3881fa4 100644 --- a/v3/api/interfaces/textcommand/index.html +++ b/v3/api/interfaces/textcommand/index.html @@ -129,4 +129,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:120

    \ No newline at end of file +

    src/types/core-modules.ts:120

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

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:99

    \ No newline at end of file +

    src/types/core-modules.ts:99

    \ 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 9f5103d02..997b8a659 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:58

    \ No newline at end of file +

    src/core/presences.ts:58

    \ 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 7fd6e2e92..772a6c2d6 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:51

    \ No newline at end of file +

    src/core/presences.ts:51

    \ 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 fce44311f..55d3d682c 100644 --- a/v3/api/namespaces/sern/functions/init/index.html +++ b/v3/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:35

    \ No newline at end of file +

    src/sern.ts:35

    \ No newline at end of file diff --git a/v3/api/readme/index.html b/v3/api/readme/index.html index e3f52d20c..5dc46c090 100644 --- a/v3/api/readme/index.html +++ b/v3/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/v3/api/type-aliases/commandmodule/index.html b/v3/api/type-aliases/commandmodule/index.html index b293fdb37..6a98d982d 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:139

    \ No newline at end of file +

    src/types/core-modules.ts:139

    \ 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 d2dbcbd66..d9aa07575 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:138

    \ No newline at end of file +

    src/types/core-modules.ts:138

    \ 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 0759a7432..492cf1bd3 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/interfaces.ts:55

    \ No newline at end of file +

    src/core/interfaces.ts:55

    \ 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 fcd799617..224425b55 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:18

    \ No newline at end of file +

    src/types/utility.ts:18

    \ 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 909decc0f..f66841e75 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<Result<Record<string, unknown> | undefined, string | undefined>>

    Source

    -

    src/types/core-plugin.ts:35

    \ No newline at end of file +

    src/types/core-plugin.ts:35

    \ 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 f2cddca45..0c347bfcb 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:209

    \ No newline at end of file +

    src/types/core-modules.ts:209

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

    Returns

    Err<undefined | string>

    Source

    -

    src/core/plugin.ts:39

    \ No newline at end of file +

    src/core/plugin.ts:39

    \ No newline at end of file diff --git a/v3/cli/about/index.html b/v3/cli/about/index.html index d86e7b109..650add0fd 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 a13a6549e..de24c3dc4 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 da6327a75..036a7d509 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 2588c46ee..9ff49a54a 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 82ba7be60..9debd5f5f 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 1a74e82a2..7d7dd6374 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 ce1760a4d..44867bb9c 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 60d93eec5..9982bb573 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 83a3b5f71..741db62a4 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 0dd7f4d78..e3be6ae5b 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 f4fa81ed8..410ff46c7 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 0a98e5a26..123223f85 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 fb75a55e8..e8667d198 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 8745586cb..9c65e8904 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 65235e3ea..51f102d8a 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 bf85d3544..59d148412 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 dbf8382a5..a2dcd274c 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 3abd720bd..f62d7dcf7 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 9cd872407..fbed93ce2 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 ed3ab2dd1..eef1c3d6c 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 3f0731448..e6795bdb8 100644 --- a/v4/api/classes/context/index.html +++ b/v4/api/classes/context/index.html @@ -230,4 +230,4 @@ else, interaction.user

    Returns

    Context

    Source

    -

    src/core/structures/context.ts:129

    \ No newline at end of file +

    src/core/structures/context.ts:129

    \ No newline at end of file diff --git a/v4/api/enumerations/commandtype/index.html b/v4/api/enumerations/commandtype/index.html index 86ba0a8f7..af085e8b4 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 e795aa268..ad30fc100 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 60311f419..de08cc7e9 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 abee3aef6..bd19a787f 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 f8cce8de5..37d5d4506 100644 --- a/v4/api/functions/commandcontrolplugin/index.html +++ b/v4/api/functions/commandcontrolplugin/index.html @@ -53,4 +53,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Since

    2.5.0

    Source

    -

    src/core/plugin.ts:28

    \ No newline at end of file +

    src/core/plugin.ts:28

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

    Since

    2.5.0

    Source

    -

    src/core/plugin.ts:20

    \ No newline at end of file +

    src/core/plugin.ts:20

    \ No newline at end of file diff --git a/v4/api/functions/commandmodule/index.html b/v4/api/functions/commandmodule/index.html index 8d64aa6f7..4318bf4c5 100644 --- a/v4/api/functions/commandmodule/index.html +++ b/v4/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:16

    \ No newline at end of file +

    src/core/modules.ts:16

    \ No newline at end of file diff --git a/v4/api/functions/discordevent/index.html b/v4/api/functions/discordevent/index.html index c57a6a49c..9624a644f 100644 --- a/v4/api/functions/discordevent/index.html +++ b/v4/api/functions/discordevent/index.html @@ -57,4 +57,4 @@ where typings can be very bad.

    Returns

    Module

    Source

    -

    src/core/modules.ts:42

    \ No newline at end of file +

    src/core/modules.ts:42

    \ No newline at end of file diff --git a/v4/api/functions/eventinitplugin/index.html b/v4/api/functions/eventinitplugin/index.html index c90bc5b9d..a8b0da40a 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:14

    \ No newline at end of file +

    src/core/plugin.ts:14

    \ No newline at end of file diff --git a/v4/api/functions/eventmodule/index.html b/v4/api/functions/eventmodule/index.html index ca515e923..a192aa4b6 100644 --- a/v4/api/functions/eventmodule/index.html +++ b/v4/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:29

    \ No newline at end of file +

    src/core/modules.ts:29

    \ No newline at end of file diff --git a/v4/api/functions/makedependencies/index.html b/v4/api/functions/makedependencies/index.html index f375331c5..00bea4b4d 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 5156c0ac0..24f754561 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:5

    \ No newline at end of file +

    src/core/plugin.ts:5

    \ No newline at end of file diff --git a/v4/api/functions/service/index.html b/v4/api/functions/service/index.html index c79bb595d..a4f90cda3 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 2b2265f2a..939227ebb 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 5f4fb2060..f8681b8ee 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 4ffa23ca8..0b94fb2aa 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 d90e3746d..b92b8a438 100644 --- a/v4/api/interfaces/bothcommand/index.html +++ b/v4/api/interfaces/bothcommand/index.html @@ -136,4 +136,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.type

    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/v4/api/interfaces/buttoncommand/index.html b/v4/api/interfaces/buttoncommand/index.html index 20f113454..a04f6f9b0 100644 --- a/v4/api/interfaces/buttoncommand/index.html +++ b/v4/api/interfaces/buttoncommand/index.html @@ -129,4 +129,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/v4/api/interfaces/channelselectcommand/index.html b/v4/api/interfaces/channelselectcommand/index.html index dd3287a33..e028f91ed 100644 --- a/v4/api/interfaces/channelselectcommand/index.html +++ b/v4/api/interfaces/channelselectcommand/index.html @@ -129,4 +129,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/v4/api/interfaces/commandmoduledefs/index.html b/v4/api/interfaces/commandmoduledefs/index.html index 50d5fa512..06a46e9f1 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:159

    \ No newline at end of file +

    src/types/core-modules.ts:159

    \ No newline at end of file diff --git a/v4/api/interfaces/contextmenumsg/index.html b/v4/api/interfaces/contextmenumsg/index.html index eafd4db96..25259ad4e 100644 --- a/v4/api/interfaces/contextmenumsg/index.html +++ b/v4/api/interfaces/contextmenumsg/index.html @@ -129,4 +129,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/v4/api/interfaces/contextmenuuser/index.html b/v4/api/interfaces/contextmenuuser/index.html index 4e831d8b6..f9b382c60 100644 --- a/v4/api/interfaces/contextmenuuser/index.html +++ b/v4/api/interfaces/contextmenuuser/index.html @@ -129,4 +129,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/v4/api/interfaces/controlplugin/index.html b/v4/api/interfaces/controlplugin/index.html index 5edf82e3b..f8e1ca4eb 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:51

    \ No newline at end of file +

    src/types/core-plugin.ts:51

    \ No newline at end of file diff --git a/v4/api/interfaces/coredependencies/index.html b/v4/api/interfaces/coredependencies/index.html index 8bd5e074e..9f1129ef3 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 06e647017..fca783bfc 100644 --- a/v4/api/interfaces/discordeventcommand/index.html +++ b/v4/api/interfaces/discordeventcommand/index.html @@ -130,4 +130,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.execute

    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/v4/api/interfaces/disposable/index.html b/v4/api/interfaces/disposable/index.html index 8f2de22b6..0be952064 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 ed298d178..214e9eb04 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 e05c0d585..dbde632ef 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 2b6c7758c..45af28449 100644 --- a/v4/api/interfaces/eventmoduledefs/index.html +++ b/v4/api/interfaces/eventmoduledefs/index.html @@ -61,4 +61,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    2: ExternalEventCommand

    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/v4/api/interfaces/externaleventcommand/index.html b/v4/api/interfaces/externaleventcommand/index.html index 7c7443a4b..91afc1f23 100644 --- a/v4/api/interfaces/externaleventcommand/index.html +++ b/v4/api/interfaces/externaleventcommand/index.html @@ -135,4 +135,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.execute

    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/v4/api/interfaces/init/index.html b/v4/api/interfaces/init/index.html index 9192c5c05..412091186 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 34510a565..4765c3840 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:47

    \ No newline at end of file +

    src/types/core-plugin.ts:47

    \ No newline at end of file diff --git a/v4/api/interfaces/logging/index.html b/v4/api/interfaces/logging/index.html index f1eeaecd7..b25ae38ca 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 dcff3f358..d8393a9e0 100644 --- a/v4/api/interfaces/mentionableselectcommand/index.html +++ b/v4/api/interfaces/mentionableselectcommand/index.html @@ -129,4 +129,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/v4/api/interfaces/modalsubmitcommand/index.html b/v4/api/interfaces/modalsubmitcommand/index.html index 8a10cfa8f..9a3345c58 100644 --- a/v4/api/interfaces/modalsubmitcommand/index.html +++ b/v4/api/interfaces/modalsubmitcommand/index.html @@ -129,4 +129,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:104

    \ No newline at end of file +

    src/types/core-modules.ts:104

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

    Returns

    any

    Source

    -

    src/types/core-modules.ts:45

    \ No newline at end of file +

    src/types/core-modules.ts:45

    \ No newline at end of file diff --git a/v4/api/interfaces/plugin/index.html b/v4/api/interfaces/plugin/index.html index c591d9080..2c594353c 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:42

    \ No newline at end of file +

    src/types/core-plugin.ts:42

    \ No newline at end of file diff --git a/v4/api/interfaces/roleselectcommand/index.html b/v4/api/interfaces/roleselectcommand/index.html index 942955146..344553ebf 100644 --- a/v4/api/interfaces/roleselectcommand/index.html +++ b/v4/api/interfaces/roleselectcommand/index.html @@ -129,4 +129,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/v4/api/interfaces/sernautocompletedata/index.html b/v4/api/interfaces/sernautocompletedata/index.html index 18963e28c..dcf708a60 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:179

    \ No newline at end of file +

    src/types/core-modules.ts:179

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

    Overrides

    Module.execute

    Source

    -

    src/types/core-modules.ts:52

    \ No newline at end of file +

    src/types/core-modules.ts:52

    \ No newline at end of file diff --git a/v4/api/interfaces/serneventsmapping/index.html b/v4/api/interfaces/serneventsmapping/index.html index 89ef06579..97d4af29d 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:14

    \ No newline at end of file +

    src/types/utility.ts:14

    \ No newline at end of file diff --git a/v4/api/interfaces/sernsubcommanddata/index.html b/v4/api/interfaces/sernsubcommanddata/index.html index 969c89c37..086c334d7 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:217

    \ No newline at end of file +

    src/types/core-modules.ts:217

    \ No newline at end of file diff --git a/v4/api/interfaces/sernsubcommandgroupdata/index.html b/v4/api/interfaces/sernsubcommandgroupdata/index.html index 57a7aa217..00606dcb6 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:222

    \ No newline at end of file +

    src/types/core-modules.ts:222

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

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:125

    \ No newline at end of file +

    src/types/core-modules.ts:125

    \ No newline at end of file diff --git a/v4/api/interfaces/stringselectcommand/index.html b/v4/api/interfaces/stringselectcommand/index.html index 4f1aa07bf..5ec879492 100644 --- a/v4/api/interfaces/stringselectcommand/index.html +++ b/v4/api/interfaces/stringselectcommand/index.html @@ -129,4 +129,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/v4/api/interfaces/textcommand/index.html b/v4/api/interfaces/textcommand/index.html index 4c4b76b1f..0a7c1e40c 100644 --- a/v4/api/interfaces/textcommand/index.html +++ b/v4/api/interfaces/textcommand/index.html @@ -129,4 +129,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:120

    \ No newline at end of file +

    src/types/core-modules.ts:120

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

    Overrides

    Module.type

    Source

    -

    src/types/core-modules.ts:99

    \ No newline at end of file +

    src/types/core-modules.ts:99

    \ 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 e6896b355..2ce5a19ec 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:35

    \ No newline at end of file +

    src/sern.ts:35

    \ No newline at end of file diff --git a/v4/api/readme/index.html b/v4/api/readme/index.html index b94e2cd57..a1ae4224a 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 e59a4ba70..3549e720d 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:54

    \ No newline at end of file +

    src/types/core-plugin.ts:54

    \ 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 2a6882849..65c7c45dd 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:139

    \ No newline at end of file +

    src/types/core-modules.ts:139

    \ 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 5dddd90cd..4f97c23ec 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:45

    \ No newline at end of file +

    src/core/plugin.ts:45

    \ 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 e03b81378..985708fb6 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:138

    \ No newline at end of file +

    src/types/core-modules.ts:138

    \ 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 8010720a7..4fffec79d 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 43aa0c8a1..8f7343530 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:18

    \ No newline at end of file +

    src/types/utility.ts:18

    \ 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 2ff50dbc5..df905f362 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:35

    \ No newline at end of file +

    src/types/core-plugin.ts:35

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

    type: CommandType

    Source

    -

    src/types/core-modules.ts:25

    \ No newline at end of file +

    src/types/core-modules.ts:25

    \ 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 28e829fdc..a4934360e 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:209

    \ No newline at end of file +

    src/types/core-modules.ts:209

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

    Returns

    Err<undefined | string>

    Source

    -

    src/core/plugin.ts:39

    \ No newline at end of file +

    src/core/plugin.ts:39

    \ No newline at end of file diff --git a/v4/api/variables/presence/index.html b/v4/api/variables/presence/index.html index 384aa5a46..1aa5fe955 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:10

    \ No newline at end of file +

    src/core/presences.ts:10

    \ No newline at end of file diff --git a/v4/cli/about/index.html b/v4/cli/about/index.html index 4595f90ba..bd9a802eb 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 e44fe17b5..c470190f6 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 e6e211dba..f208ec4fd 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 6de311b9a..ed24b3ac6 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 4875d503b..79d2cf94b 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 30922a381..23ed92190 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 557b39679..9ef684afb 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 240a44453..5e290d68c 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 9eab1648a..162730dbe 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/getting-started/index.html b/v4/reference/getting-started/index.html index 77df358d4..82240411e 100644 --- a/v4/reference/getting-started/index.html +++ b/v4/reference/getting-started/index.html @@ -43,4 +43,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem; StarlightThemeProvider.updatePickers();

    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 +

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

    \ No newline at end of file diff --git a/v4/reference/modules/index.html b/v4/reference/modules/index.html index 3372b64ed..363e4fa0d 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 4607e1a4f..c771ef8f6 100644 --- a/v4/reference/plugins/index.html +++ b/v4/reference/plugins/index.html @@ -108,4 +108,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 45ee35109..de4a226af 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 f5465882a..fe8e66e4f 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 7f0085b44..f8dbc875c 100644 --- a/v4/reference/tasks/index.html +++ b/v4/reference/tasks/index.html @@ -46,4 +46,4 @@ If you haven’t already, add the tasks directory to you
    1
    export const tasks = "./dist/tasks"

    Defines a task that runs every minute.

    ./src/tasks/every-minute.js
    1
    import { scheduledTask } from "@sern/handler";
    2
    -
    3
    export default scheduledTask({
    4
    trigger: "* * * * *",
    5
    execute: (context) => {
    6
    console.log("cron cron")
    7
    }
    8
    })
    \ No newline at end of file +
    3
    export default scheduledTask({
    4
    trigger: "* * * * *",
    5
    execute: (context) => {
    6
    console.log("cron cron")
    7
    }
    8
    })
    \ No newline at end of file diff --git a/v4/snippets/command/index.html b/v4/snippets/command/index.html index 0101fceec..3f3c324c9 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 24eff6b2f..0b5667eb2 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 e79934c4c..6e0c644f0 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 8ace3ee05..53ffc613f 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 97596ddb5..74a771308 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 ccc0698c7..32f9247ab 100644 --- a/v4/tools/publisher/index.html +++ b/v4/tools/publisher/index.html @@ -72,4 +72,4 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;
    4
    export default commandModule( {
    5
    type: CommandType.Slash,
    6
    plugins: [
    7
    publishConfig({
    8
    integrationTypes: ['User'],
    9
    contexts: [1,2]
    10
    })
    11
    ],
    12
    description: `hello worl`,
    13
    execute: (ctx) => {
    14
    ctx.reply('pong')
    15
    }
    16
    })

    Example: command published in guild

    src/commands/ping.ts
    1
    import { commandModule, CommandType } from '@sern/handler'
    2
    import { publishConfig } from '@sern/publisher'
    3
    -
    4
    export default commandModule( {
    5
    type: CommandType.Slash,
    6
    plugins: [
    7
    publishConfig({
    8
    guildIds: ["889026545715400705"]
    9
    })
    10
    ],
    11
    description: `hello worl`,
    12
    execute: (ctx) => {
    13
    ctx.reply('pong')
    14
    }
    15
    })
    \ No newline at end of file +
    4
    export default commandModule( {
    5
    type: CommandType.Slash,
    6
    plugins: [
    7
    publishConfig({
    8
    guildIds: ["889026545715400705"]
    9
    })
    10
    ],
    11
    description: `hello worl`,
    12
    execute: (ctx) => {
    13
    ctx.reply('pong')
    14
    }
    15
    })
    \ No newline at end of file diff --git a/v4/transition/from-v3/index.html b/v4/transition/from-v3/index.html index c73a127a9..b8ae7d473 100644 --- a/v4/transition/from-v3/index.html +++ b/v4/transition/from-v3/index.html @@ -46,7 +46,7 @@ starlight-file-tree:where(.astro-p67cqifm){--x-space: 1.5rem;--y-space: .125rem;

    The second argument is the new SDT type

    1
    import { commandModule, CommandType } from '@sern/handler'
    2
    -
    3
    export default commandModule({
    4
    type: CommandType.Slash,
    5
    description: "My ping command",
    6
    execute: (ctx, sdt) => {
    7
    sdt.params // only exists if current command is not a component
    8
    sdt.deps // Dependencies
    9
    sdt.type // module type
    10
    }
    11
    })
    +
    3
    export default commandModule({
    4
    type: CommandType.Slash,
    5
    description: "My ping command",
    6
    execute: (ctx, sdt) => {
    7
    sdt.params // only exists if current command is a component (dynamic custom ids)
    8
    sdt.deps // Dependencies
    9
    sdt.type // module type
    10
    }
    11
    })

    It used to look like this:

    @@ -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