diff --git a/blog/1.2.0/index.html b/blog/1.2.0/index.html index a8e1a8479..5926e4292 100644 --- a/blog/1.2.0/index.html +++ b/blog/1.2.0/index.html @@ -81,4 +81,4 @@

Dependencies Update

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 bf48103ed..dda915abd 100644 --- a/blog/2.0.0/index.html +++ b/blog/2.0.0/index.html @@ -102,4 +102,4 @@

Breaking Changes

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 f4190ac60..e42270a3a 100644 --- a/blog/2.5.0/index.html +++ b/blog/2.5.0/index.html @@ -74,4 +74,4 @@

Reason

-

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 f72aa7e52..a13dc17d8 100644 --- a/blog/3.0.0/index.html +++ b/blog/3.0.0/index.html @@ -160,4 +160,4 @@

Deprecations

  • 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 ad779d202..298cd5d94 100644 --- a/blog/new-logo/index.html +++ b/blog/new-logo/index.html @@ -56,4 +56,4 @@

    Anyways, here it is:

    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 9ced3a6d8..cb23011cf 100644 --- a/blog/railway-deploy/index.html +++ b/blog/railway-deploy/index.html @@ -51,4 +51,4 @@

    Railway Setup

    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 ea6e3b8d0..0974d1d8e 100644 --- a/es/blog/1.2.0/index.html +++ b/es/blog/1.2.0/index.html @@ -83,4 +83,4 @@

    Dependencies Update

    \ 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 1ca5d647f..f4fe3f68b 100644 --- a/es/blog/2.0.0/index.html +++ b/es/blog/2.0.0/index.html @@ -104,4 +104,4 @@

    Breaking Changes

    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 b7a54444a..14ae2aee3 100644 --- a/es/blog/2.5.0/index.html +++ b/es/blog/2.5.0/index.html @@ -76,4 +76,4 @@

    Reason

    -

    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 6fdb5250b..1f9914dfe 100644 --- a/es/blog/3.0.0/index.html +++ b/es/blog/3.0.0/index.html @@ -162,4 +162,4 @@

    Deprecations

  • 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 05cef3af6..49415446d 100644 --- a/es/blog/new-logo/index.html +++ b/es/blog/new-logo/index.html @@ -58,4 +58,4 @@

    Anyways, here it is:

    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 3e4219d97..e37254407 100644 --- a/es/blog/railway-deploy/index.html +++ b/es/blog/railway-deploy/index.html @@ -53,4 +53,4 @@

    Railway Setup

    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 a0ec103c6..208b07848 100644 --- a/es/index.html +++ b/es/index.html @@ -38,6 +38,6 @@ 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

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

    +
    Vinci

    Vinci

    The discord bot for Mara Turing

    Discoin

    Discoin

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

    Albion Guide

    Albion Guide

    Gets info about The First Descendant Game.

    sern Community

    sern Community

    The bot used to manage sern Community

    man-nomic

    man-nomic

    Displays LLM model information

    Bask

    Bask

    A discord music bot

    Features

    -

    Modular

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

    Concise

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

    Familiar

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

    \ No newline at end of file +

    Modular

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

    Concise

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

    Familiar

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

    \ No newline at end of file diff --git a/es/v3/api/classes/context/index.html b/es/v3/api/classes/context/index.html index 2795c6de3..833071057 100644 --- a/es/v3/api/classes/context/index.html +++ b/es/v3/api/classes/context/index.html @@ -230,4 +230,4 @@

    Parameters

    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 ba3e346c3..d824cab39 100644 --- a/es/v3/api/enumerations/commandtype/index.html +++ b/es/v3/api/enumerations/commandtype/index.html @@ -129,4 +129,4 @@

    UserSelect

    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 12c416bff..fdd0822ce 100644 --- a/es/v3/api/enumerations/eventtype/index.html +++ b/es/v3/api/enumerations/eventtype/index.html @@ -68,4 +68,4 @@

    Sern

    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 21b4f1a2b..59671b41a 100644 --- a/es/v3/api/enumerations/payloadtype/index.html +++ b/es/v3/api/enumerations/payloadtype/index.html @@ -64,4 +64,4 @@

    Warning

    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 481831a9d..bcd4bf413 100644 --- a/es/v3/api/enumerations/plugintype/index.html +++ b/es/v3/api/enumerations/plugintype/index.html @@ -59,4 +59,4 @@

    Init

    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 197fc4ce5..8d1201cd1 100644 --- a/es/v3/api/functions/commandcontrolplugin/index.html +++ b/es/v3/api/functions/commandcontrolplugin/index.html @@ -53,4 +53,4 @@

    Returns

    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 0bfa42acf..bd5f642f7 100644 --- a/es/v3/api/functions/commandinitplugin/index.html +++ b/es/v3/api/functions/commandinitplugin/index.html @@ -53,4 +53,4 @@

    Returns

    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 b2e1339c3..2b144ec9c 100644 --- a/es/v3/api/functions/commandmodule/index.html +++ b/es/v3/api/functions/commandmodule/index.html @@ -51,4 +51,4 @@

    Returns

    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 ac16f0351..b4392dda5 100644 --- a/es/v3/api/functions/discordevent/index.html +++ b/es/v3/api/functions/discordevent/index.html @@ -57,4 +57,4 @@

    Parameters

    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 363052710..18683fb39 100644 --- a/es/v3/api/functions/eventinitplugin/index.html +++ b/es/v3/api/functions/eventinitplugin/index.html @@ -51,4 +51,4 @@

    Returns

    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 a99d2d345..4d85dd567 100644 --- a/es/v3/api/functions/eventmodule/index.html +++ b/es/v3/api/functions/eventmodule/index.html @@ -52,4 +52,4 @@

    Since

    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 4c457f54e..61fa2ff4f 100644 --- a/es/v3/api/functions/makedependencies/index.html +++ b/es/v3/api/functions/makedependencies/index.html @@ -53,4 +53,4 @@

    Returns

    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 8f2f47933..57b333354 100644 --- a/es/v3/api/functions/makeplugin/index.html +++ b/es/v3/api/functions/makeplugin/index.html @@ -52,4 +52,4 @@

    Parameters

    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 1420ebe85..1109674f8 100644 --- a/es/v3/api/functions/service/index.html +++ b/es/v3/api/functions/service/index.html @@ -62,4 +62,4 @@

    Example

    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 8243144f7..d38bd9cb2 100644 --- a/es/v3/api/functions/services/index.html +++ b/es/v3/api/functions/services/index.html @@ -57,4 +57,4 @@

    Since

    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 9af85707d..7eaaeaf45 100644 --- a/es/v3/api/functions/single/index.html +++ b/es/v3/api/functions/single/index.html @@ -52,4 +52,4 @@

    Parameters

    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 d77f9bbe3..320cab7ef 100644 --- a/es/v3/api/functions/transient/index.html +++ b/es/v3/api/functions/transient/index.html @@ -55,4 +55,4 @@

    Since

    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 c8d8feec4..eec1e8723 100644 --- a/es/v3/api/interfaces/bothcommand/index.html +++ b/es/v3/api/interfaces/bothcommand/index.html @@ -136,4 +136,4 @@

    type

    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 2263ecd33..d55c499c8 100644 --- a/es/v3/api/interfaces/buttoncommand/index.html +++ b/es/v3/api/interfaces/buttoncommand/index.html @@ -129,4 +129,4 @@

    type

    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 93bd1449b..9a50a43b3 100644 --- a/es/v3/api/interfaces/channelselectcommand/index.html +++ b/es/v3/api/interfaces/channelselectcommand/index.html @@ -129,4 +129,4 @@

    type

    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 98a25ff3c..6ccf8a326 100644 --- a/es/v3/api/interfaces/commandmoduledefs/index.html +++ b/es/v3/api/interfaces/commandmoduledefs/index.html @@ -124,4 +124,4 @@

    8

    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 e6c71ef2f..da89c788d 100644 --- a/es/v3/api/interfaces/contextmenumsg/index.html +++ b/es/v3/api/interfaces/contextmenumsg/index.html @@ -129,4 +129,4 @@

    type

    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 851487161..afafc64bc 100644 --- a/es/v3/api/interfaces/contextmenuuser/index.html +++ b/es/v3/api/interfaces/contextmenuuser/index.html @@ -129,4 +129,4 @@

    type

    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 dfd23789a..da09c022e 100644 --- a/es/v3/api/interfaces/controlplugin/index.html +++ b/es/v3/api/interfaces/controlplugin/index.html @@ -68,4 +68,4 @@

    type

    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 bc2ceec34..79ea643ee 100644 --- a/es/v3/api/interfaces/coredependencies/index.html +++ b/es/v3/api/interfaces/coredependencies/index.html @@ -90,4 +90,4 @@

    @sern/scheduler

    @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 6c0be6165..7bb965670 100644 --- a/es/v3/api/interfaces/discordeventcommand/index.html +++ b/es/v3/api/interfaces/discordeventcommand/index.html @@ -130,4 +130,4 @@

    Returns

    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 8ae0df5ff..c538160d2 100644 --- a/es/v3/api/interfaces/disposable/index.html +++ b/es/v3/api/interfaces/disposable/index.html @@ -51,4 +51,4 @@

    dispose()

    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 899be7dca..8b288d602 100644 --- a/es/v3/api/interfaces/emitter/index.html +++ b/es/v3/api/interfaces/emitter/index.html @@ -76,4 +76,4 @@

    Parameters

    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 49a68c516..8934f128a 100644 --- a/es/v3/api/interfaces/errorhandling/index.html +++ b/es/v3/api/interfaces/errorhandling/index.html @@ -66,4 +66,4 @@

    Parameters

    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 f5b1f57ca..a510a2a2a 100644 --- a/es/v3/api/interfaces/eventmoduledefs/index.html +++ b/es/v3/api/interfaces/eventmoduledefs/index.html @@ -61,4 +61,4 @@

    2

    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 7329d6d81..6270aee34 100644 --- a/es/v3/api/interfaces/externaleventcommand/index.html +++ b/es/v3/api/interfaces/externaleventcommand/index.html @@ -135,4 +135,4 @@

    Returns

    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 43e8597b5..06006eab9 100644 --- a/es/v3/api/interfaces/init/index.html +++ b/es/v3/api/interfaces/init/index.html @@ -51,4 +51,4 @@

    init()

    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 a6cdf99e2..0221827ee 100644 --- a/es/v3/api/interfaces/initplugin/index.html +++ b/es/v3/api/interfaces/initplugin/index.html @@ -68,4 +68,4 @@

    type

    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 47baf81ed..2b3c1e8b3 100644 --- a/es/v3/api/interfaces/logging/index.html +++ b/es/v3/api/interfaces/logging/index.html @@ -88,4 +88,4 @@

    Parameters

    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 489db29f3..602aa3461 100644 --- a/es/v3/api/interfaces/mentionableselectcommand/index.html +++ b/es/v3/api/interfaces/mentionableselectcommand/index.html @@ -129,4 +129,4 @@

    type

    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 2e62e7df8..331710d1e 100644 --- a/es/v3/api/interfaces/modalsubmitcommand/index.html +++ b/es/v3/api/interfaces/modalsubmitcommand/index.html @@ -129,4 +129,4 @@

    type

    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 a5628fb71..8b9fa06be 100644 --- a/es/v3/api/interfaces/plugin/index.html +++ b/es/v3/api/interfaces/plugin/index.html @@ -65,4 +65,4 @@

    type

    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 65feb4ebd..eadec1dca 100644 --- a/es/v3/api/interfaces/roleselectcommand/index.html +++ b/es/v3/api/interfaces/roleselectcommand/index.html @@ -129,4 +129,4 @@

    type

    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 6da1a2f9a..5368477b9 100644 --- a/es/v3/api/interfaces/sernautocompletedata/index.html +++ b/es/v3/api/interfaces/sernautocompletedata/index.html @@ -110,4 +110,4 @@

    type

    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 68a1437af..087a9f39b 100644 --- a/es/v3/api/interfaces/serneventcommand/index.html +++ b/es/v3/api/interfaces/serneventcommand/index.html @@ -130,4 +130,4 @@

    Returns

    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 d65ad4ecd..70a8676e2 100644 --- a/es/v3/api/interfaces/serneventsmapping/index.html +++ b/es/v3/api/interfaces/serneventsmapping/index.html @@ -75,4 +75,4 @@

    warning

    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 78e1bec15..7ef55821e 100644 --- a/es/v3/api/interfaces/sernsubcommanddata/index.html +++ b/es/v3/api/interfaces/sernsubcommanddata/index.html @@ -105,4 +105,4 @@

    type

    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 631f567f6..70ec846b3 100644 --- a/es/v3/api/interfaces/sernsubcommandgroupdata/index.html +++ b/es/v3/api/interfaces/sernsubcommandgroupdata/index.html @@ -112,4 +112,4 @@

    type

    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 dfdcb06d7..dcad7c47e 100644 --- a/es/v3/api/interfaces/slashcommand/index.html +++ b/es/v3/api/interfaces/slashcommand/index.html @@ -136,4 +136,4 @@

    type

    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 2d0ca8c59..07c49a6a5 100644 --- a/es/v3/api/interfaces/stringselectcommand/index.html +++ b/es/v3/api/interfaces/stringselectcommand/index.html @@ -129,4 +129,4 @@

    type

    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 3a308242c..9ef8d7006 100644 --- a/es/v3/api/interfaces/textcommand/index.html +++ b/es/v3/api/interfaces/textcommand/index.html @@ -129,4 +129,4 @@

    type

    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 f4ff8934a..ee2fb16c5 100644 --- a/es/v3/api/interfaces/userselectcommand/index.html +++ b/es/v3/api/interfaces/userselectcommand/index.html @@ -129,4 +129,4 @@

    type

    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 682cad0e1..86e2b5ce5 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 @@

    status?

    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 f58b4a5a5..6216f7af5 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 @@

    inject?

    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 fbe04cf69..7055094e2 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 @@

    Since

    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 591bef5de..4a06f3e6d 100644 --- a/es/v3/api/readme/index.html +++ b/es/v3/api/readme/index.html @@ -125,4 +125,4 @@

    Functions

  • 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 d313fcf5b..773c8ef36 100644 --- a/es/v3/api/type-aliases/commandmodule/index.html +++ b/es/v3/api/type-aliases/commandmodule/index.html @@ -45,4 +45,4 @@

    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 6a029f968..ec118dbe9 100644 --- a/es/v3/api/type-aliases/eventmodule/index.html +++ b/es/v3/api/type-aliases/eventmodule/index.html @@ -45,4 +45,4 @@

    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 9dc45947f..b7beb8ce1 100644 --- a/es/v3/api/type-aliases/logpayload/index.html +++ b/es/v3/api/type-aliases/logpayload/index.html @@ -52,4 +52,4 @@

    message

    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 3d853f273..7f90b0ee4 100644 --- a/es/v3/api/type-aliases/payload/index.html +++ b/es/v3/api/type-aliases/payload/index.html @@ -45,4 +45,4 @@

    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 4f23ea2fd..9b7313806 100644 --- a/es/v3/api/type-aliases/pluginresult/index.html +++ b/es/v3/api/type-aliases/pluginresult/index.html @@ -45,4 +45,4 @@

    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 1f4ed9f9f..7a224227c 100644 --- a/es/v3/api/type-aliases/sernoptionsdata/index.html +++ b/es/v3/api/type-aliases/sernoptionsdata/index.html @@ -46,4 +46,4 @@

    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 55abeba77..7a95f2d20 100644 --- a/es/v3/api/variables/controller/index.html +++ b/es/v3/api/variables/controller/index.html @@ -65,4 +65,4 @@

    Parameters

    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 0832811ef..7ec48e95d 100644 --- a/es/v3/cli/about/index.html +++ b/es/v3/cli/about/index.html @@ -50,4 +50,4 @@
    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 e80a630c7..adbd37f8e 100644 --- a/es/v3/cli/build/index.html +++ b/es/v3/cli/build/index.html @@ -113,4 +113,4 @@

    Constants

    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 7bca1e323..0f4168890 100644 --- a/es/v3/cli/clear/index.html +++ b/es/v3/cli/clear/index.html @@ -55,4 +55,4 @@

    Notes

    \ 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 a38008eaa..9508d4238 100644 --- a/es/v3/cli/extra/index.html +++ b/es/v3/cli/extra/index.html @@ -48,4 +48,4 @@

    Introduction

    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 0ac1c9088..df3ab327a 100644 --- a/es/v3/cli/publish/index.html +++ b/es/v3/cli/publish/index.html @@ -88,4 +88,4 @@

    Command

    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 e95145cc7..7543e48a9 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 @@
  • 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 63897e5d4..9ac05bbb7 100644 --- a/es/v3/guide/getting-started/preparing/index.html +++ b/es/v3/guide/getting-started/preparing/index.html @@ -44,4 +44,4 @@

    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 789ace1ee..511dc34fa 100644 --- a/es/v3/guide/walkthrough/autocomplete/index.html +++ b/es/v3/guide/walkthrough/autocomplete/index.html @@ -51,4 +51,4 @@

    Using Focus

    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 4b40fe189..ca9949ff3 100644 --- a/es/v3/guide/walkthrough/cli/index.html +++ b/es/v3/guide/walkthrough/cli/index.html @@ -56,4 +56,4 @@

    Adding Plugins

    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 e20e64319..215bbca01 100644 --- a/es/v3/guide/walkthrough/conclusion/index.html +++ b/es/v3/guide/walkthrough/conclusion/index.html @@ -44,4 +44,4 @@

    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 373c73af1..1c9282f10 100644 --- a/es/v3/guide/walkthrough/dependency-injection/index.html +++ b/es/v3/guide/walkthrough/dependency-injection/index.html @@ -87,4 +87,4 @@

    Init

  • 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 7ac589261..0874246e9 100644 --- a/es/v3/guide/walkthrough/first-command/index.html +++ b/es/v3/guide/walkthrough/first-command/index.html @@ -71,4 +71,4 @@

    Context Class

  • 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 62dbda00c..1856341e2 100644 --- a/es/v3/guide/walkthrough/first-event/index.html +++ b/es/v3/guide/walkthrough/first-event/index.html @@ -53,4 +53,4 @@

    External Events

    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 c548a70bc..ff1e2c2df 100644 --- a/es/v3/guide/walkthrough/goal/index.html +++ b/es/v3/guide/walkthrough/goal/index.html @@ -54,4 +54,4 @@

    Why sern?

    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 6935b3e38..4852722aa 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 @@

    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 5a0285b29..30443a5c5 100644 --- a/es/v3/guide/walkthrough/new-project/index.html +++ b/es/v3/guide/walkthrough/new-project/index.html @@ -43,4 +43,4 @@ 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 359d5286e..08e3ef513 100644 --- a/es/v3/guide/walkthrough/plugins/index.html +++ b/es/v3/guide/walkthrough/plugins/index.html @@ -81,4 +81,4 @@

    Can you predict the behavi
  • 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 440d53022..3ff30bae4 100644 --- a/es/v3/guide/walkthrough/sern-emitter/index.html +++ b/es/v3/guide/walkthrough/sern-emitter/index.html @@ -51,4 +51,4 @@
  • 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 c32af6c02..c5e5d2054 100644 --- a/es/v3/guide/walkthrough/services/index.html +++ b/es/v3/guide/walkthrough/services/index.html @@ -83,4 +83,4 @@

    \ 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 8971ae19d..e68cb8345 100644 --- a/es/v3/guide/walkthrough/transition/index.html +++ b/es/v3/guide/walkthrough/transition/index.html @@ -47,4 +47,4 @@

    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 49a844231..f39a944ed 100644 --- a/es/v4/api/classes/context/index.html +++ b/es/v4/api/classes/context/index.html @@ -230,4 +230,4 @@

    Parameters

    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 5f05e32dc..2da40c8ed 100644 --- a/es/v4/api/enumerations/commandtype/index.html +++ b/es/v4/api/enumerations/commandtype/index.html @@ -129,4 +129,4 @@

    UserSelect

    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 6b942d94c..dcc956b73 100644 --- a/es/v4/api/enumerations/eventtype/index.html +++ b/es/v4/api/enumerations/eventtype/index.html @@ -68,4 +68,4 @@

    Sern

    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 d3d0782a4..769d2f07e 100644 --- a/es/v4/api/enumerations/payloadtype/index.html +++ b/es/v4/api/enumerations/payloadtype/index.html @@ -64,4 +64,4 @@

    Warning

    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 6993745f2..9b0c3d350 100644 --- a/es/v4/api/enumerations/plugintype/index.html +++ b/es/v4/api/enumerations/plugintype/index.html @@ -59,4 +59,4 @@

    Init

    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 04de0e451..01ddc5b92 100644 --- a/es/v4/api/functions/commandcontrolplugin/index.html +++ b/es/v4/api/functions/commandcontrolplugin/index.html @@ -53,4 +53,4 @@

    Returns

    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 717f051c7..17dd87595 100644 --- a/es/v4/api/functions/commandinitplugin/index.html +++ b/es/v4/api/functions/commandinitplugin/index.html @@ -53,4 +53,4 @@

    Returns

    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 70256c060..7289e2167 100644 --- a/es/v4/api/functions/commandmodule/index.html +++ b/es/v4/api/functions/commandmodule/index.html @@ -51,4 +51,4 @@

    Returns

    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 e20c5cba8..dc4e22cc1 100644 --- a/es/v4/api/functions/discordevent/index.html +++ b/es/v4/api/functions/discordevent/index.html @@ -57,4 +57,4 @@

    Parameters

    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 14afa0f79..f3bb2d7f2 100644 --- a/es/v4/api/functions/eventinitplugin/index.html +++ b/es/v4/api/functions/eventinitplugin/index.html @@ -51,4 +51,4 @@

    Returns

    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 13b1fd970..5c3c183cd 100644 --- a/es/v4/api/functions/eventmodule/index.html +++ b/es/v4/api/functions/eventmodule/index.html @@ -52,4 +52,4 @@

    Since

    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 1a7870b97..ee7263c6e 100644 --- a/es/v4/api/functions/makedependencies/index.html +++ b/es/v4/api/functions/makedependencies/index.html @@ -53,4 +53,4 @@

    Returns

    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 576eb4f1b..e65b7d30f 100644 --- a/es/v4/api/functions/makeplugin/index.html +++ b/es/v4/api/functions/makeplugin/index.html @@ -52,4 +52,4 @@

    Parameters

    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 30231190f..e99b19455 100644 --- a/es/v4/api/functions/service/index.html +++ b/es/v4/api/functions/service/index.html @@ -62,4 +62,4 @@

    Example

    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 a725e1840..3f4e092f8 100644 --- a/es/v4/api/functions/services/index.html +++ b/es/v4/api/functions/services/index.html @@ -57,4 +57,4 @@

    Since

    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 f962393de..9cbd49a2d 100644 --- a/es/v4/api/functions/single/index.html +++ b/es/v4/api/functions/single/index.html @@ -52,4 +52,4 @@

    Parameters

    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 070a8023f..2afb7479b 100644 --- a/es/v4/api/functions/transient/index.html +++ b/es/v4/api/functions/transient/index.html @@ -55,4 +55,4 @@

    Since

    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 40bd95441..68e5c7bdb 100644 --- a/es/v4/api/interfaces/bothcommand/index.html +++ b/es/v4/api/interfaces/bothcommand/index.html @@ -136,4 +136,4 @@

    type

    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 12bf7b175..66e7aaacf 100644 --- a/es/v4/api/interfaces/buttoncommand/index.html +++ b/es/v4/api/interfaces/buttoncommand/index.html @@ -129,4 +129,4 @@

    type

    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 a4f872937..abc213cab 100644 --- a/es/v4/api/interfaces/channelselectcommand/index.html +++ b/es/v4/api/interfaces/channelselectcommand/index.html @@ -129,4 +129,4 @@

    type

    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 834b062f8..31843403d 100644 --- a/es/v4/api/interfaces/commandmoduledefs/index.html +++ b/es/v4/api/interfaces/commandmoduledefs/index.html @@ -124,4 +124,4 @@

    8

    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 0bc7744e1..6841915dc 100644 --- a/es/v4/api/interfaces/contextmenumsg/index.html +++ b/es/v4/api/interfaces/contextmenumsg/index.html @@ -129,4 +129,4 @@

    type

    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 19a363a34..a48e81733 100644 --- a/es/v4/api/interfaces/contextmenuuser/index.html +++ b/es/v4/api/interfaces/contextmenuuser/index.html @@ -129,4 +129,4 @@

    type

    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 ccda248f3..f0c99a966 100644 --- a/es/v4/api/interfaces/controlplugin/index.html +++ b/es/v4/api/interfaces/controlplugin/index.html @@ -68,4 +68,4 @@

    type

    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 81f8ed5a9..55722377a 100644 --- a/es/v4/api/interfaces/coredependencies/index.html +++ b/es/v4/api/interfaces/coredependencies/index.html @@ -90,4 +90,4 @@

    @sern/scheduler

    @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 09bf17db5..69497fb02 100644 --- a/es/v4/api/interfaces/discordeventcommand/index.html +++ b/es/v4/api/interfaces/discordeventcommand/index.html @@ -130,4 +130,4 @@

    Returns

    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 3796a9c67..5a2cd9e6e 100644 --- a/es/v4/api/interfaces/disposable/index.html +++ b/es/v4/api/interfaces/disposable/index.html @@ -51,4 +51,4 @@

    dispose()

    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 83d368cb5..904e99432 100644 --- a/es/v4/api/interfaces/emitter/index.html +++ b/es/v4/api/interfaces/emitter/index.html @@ -76,4 +76,4 @@

    Parameters

    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 442225361..6a5ca1345 100644 --- a/es/v4/api/interfaces/errorhandling/index.html +++ b/es/v4/api/interfaces/errorhandling/index.html @@ -66,4 +66,4 @@

    Parameters

    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 1b1b61736..a05fc59fa 100644 --- a/es/v4/api/interfaces/eventmoduledefs/index.html +++ b/es/v4/api/interfaces/eventmoduledefs/index.html @@ -61,4 +61,4 @@

    2

    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 1f374c4e6..215941c82 100644 --- a/es/v4/api/interfaces/externaleventcommand/index.html +++ b/es/v4/api/interfaces/externaleventcommand/index.html @@ -135,4 +135,4 @@

    Returns

    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 63746b3eb..3d15d67fa 100644 --- a/es/v4/api/interfaces/init/index.html +++ b/es/v4/api/interfaces/init/index.html @@ -51,4 +51,4 @@

    init()

    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 33cdf3a63..4c92898d1 100644 --- a/es/v4/api/interfaces/initplugin/index.html +++ b/es/v4/api/interfaces/initplugin/index.html @@ -68,4 +68,4 @@

    type

    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 fa8ffba79..520edc759 100644 --- a/es/v4/api/interfaces/logging/index.html +++ b/es/v4/api/interfaces/logging/index.html @@ -88,4 +88,4 @@

    Parameters

    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 43e6b6a3d..d9a1d12ae 100644 --- a/es/v4/api/interfaces/mentionableselectcommand/index.html +++ b/es/v4/api/interfaces/mentionableselectcommand/index.html @@ -129,4 +129,4 @@

    type

    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 99f19ca6f..6ba5cc19d 100644 --- a/es/v4/api/interfaces/modalsubmitcommand/index.html +++ b/es/v4/api/interfaces/modalsubmitcommand/index.html @@ -129,4 +129,4 @@

    type

    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 db374d1b7..f3899a732 100644 --- a/es/v4/api/interfaces/module/index.html +++ b/es/v4/api/interfaces/module/index.html @@ -126,4 +126,4 @@

    Parameters

    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 5aa9a0968..380fc3e4f 100644 --- a/es/v4/api/interfaces/plugin/index.html +++ b/es/v4/api/interfaces/plugin/index.html @@ -65,4 +65,4 @@

    type

    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 46ac89069..ea3c9dac0 100644 --- a/es/v4/api/interfaces/roleselectcommand/index.html +++ b/es/v4/api/interfaces/roleselectcommand/index.html @@ -129,4 +129,4 @@

    type

    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 41c3b1cc1..1327ba785 100644 --- a/es/v4/api/interfaces/sernautocompletedata/index.html +++ b/es/v4/api/interfaces/sernautocompletedata/index.html @@ -110,4 +110,4 @@

    type

    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 095454819..b721b62dd 100644 --- a/es/v4/api/interfaces/serneventcommand/index.html +++ b/es/v4/api/interfaces/serneventcommand/index.html @@ -130,4 +130,4 @@

    Returns

    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 960ccbe54..e6aeeaac3 100644 --- a/es/v4/api/interfaces/serneventsmapping/index.html +++ b/es/v4/api/interfaces/serneventsmapping/index.html @@ -75,4 +75,4 @@

    warning

    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 9445aff4d..f30b0e72a 100644 --- a/es/v4/api/interfaces/sernsubcommanddata/index.html +++ b/es/v4/api/interfaces/sernsubcommanddata/index.html @@ -105,4 +105,4 @@

    type

    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 2585e9234..7e5060e61 100644 --- a/es/v4/api/interfaces/sernsubcommandgroupdata/index.html +++ b/es/v4/api/interfaces/sernsubcommandgroupdata/index.html @@ -112,4 +112,4 @@

    type

    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 7c4f36407..9e1f7a906 100644 --- a/es/v4/api/interfaces/slashcommand/index.html +++ b/es/v4/api/interfaces/slashcommand/index.html @@ -136,4 +136,4 @@

    type

    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 93a03cc78..169b795d2 100644 --- a/es/v4/api/interfaces/stringselectcommand/index.html +++ b/es/v4/api/interfaces/stringselectcommand/index.html @@ -129,4 +129,4 @@

    type

    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 6c359b581..b38f12666 100644 --- a/es/v4/api/interfaces/textcommand/index.html +++ b/es/v4/api/interfaces/textcommand/index.html @@ -129,4 +129,4 @@

    type

    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 a9341013c..83dfad3c2 100644 --- a/es/v4/api/interfaces/userselectcommand/index.html +++ b/es/v4/api/interfaces/userselectcommand/index.html @@ -129,4 +129,4 @@

    type

    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 44c2e8c17..9230eaaf4 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 @@

    Since

    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 9ea806f6f..ed4efcbbd 100644 --- a/es/v4/api/readme/index.html +++ b/es/v4/api/readme/index.html @@ -125,4 +125,4 @@

    Functions

  • 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 62d411578..396203765 100644 --- a/es/v4/api/type-aliases/anyplugin/index.html +++ b/es/v4/api/type-aliases/anyplugin/index.html @@ -45,4 +45,4 @@

    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 d1d96b5eb..80be60aea 100644 --- a/es/v4/api/type-aliases/commandmodule/index.html +++ b/es/v4/api/type-aliases/commandmodule/index.html @@ -45,4 +45,4 @@

    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 ee9d72452..eb4107155 100644 --- a/es/v4/api/type-aliases/controller/index.html +++ b/es/v4/api/type-aliases/controller/index.html @@ -45,4 +45,4 @@

    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 bb9ff7768..f737c139f 100644 --- a/es/v4/api/type-aliases/eventmodule/index.html +++ b/es/v4/api/type-aliases/eventmodule/index.html @@ -45,4 +45,4 @@

    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 217652e85..021710528 100644 --- a/es/v4/api/type-aliases/logpayload/index.html +++ b/es/v4/api/type-aliases/logpayload/index.html @@ -52,4 +52,4 @@

    message

    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 329eaa25b..e20d0b0b1 100644 --- a/es/v4/api/type-aliases/payload/index.html +++ b/es/v4/api/type-aliases/payload/index.html @@ -45,4 +45,4 @@

    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 1205506f7..c4a9f5e78 100644 --- a/es/v4/api/type-aliases/pluginresult/index.html +++ b/es/v4/api/type-aliases/pluginresult/index.html @@ -45,4 +45,4 @@

    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 426cb9658..b35a34e85 100644 --- a/es/v4/api/type-aliases/sdt/index.html +++ b/es/v4/api/type-aliases/sdt/index.html @@ -62,4 +62,4 @@

    type

    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 9a6fc6164..372687ee4 100644 --- a/es/v4/api/type-aliases/sernoptionsdata/index.html +++ b/es/v4/api/type-aliases/sernoptionsdata/index.html @@ -46,4 +46,4 @@

    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 c26f913cb..bd20e3932 100644 --- a/es/v4/api/variables/controller/index.html +++ b/es/v4/api/variables/controller/index.html @@ -65,4 +65,4 @@

    Parameters

    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 05482904f..8df4a3956 100644 --- a/es/v4/api/variables/presence/index.html +++ b/es/v4/api/variables/presence/index.html @@ -115,4 +115,4 @@
    status?

    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 73216c57e..ba716970f 100644 --- a/es/v4/cli/about/index.html +++ b/es/v4/cli/about/index.html @@ -50,4 +50,4 @@
    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 65bc60c07..9368b9b5f 100644 --- a/es/v4/cli/build/index.html +++ b/es/v4/cli/build/index.html @@ -113,4 +113,4 @@

    Constants

    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 d42dc354e..76a2cf34a 100644 --- a/es/v4/cli/clear/index.html +++ b/es/v4/cli/clear/index.html @@ -55,4 +55,4 @@

    Notes

    \ 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 45ab4a1fa..48485d7b8 100644 --- a/es/v4/cli/extra/index.html +++ b/es/v4/cli/extra/index.html @@ -48,4 +48,4 @@

    Introduction

    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 83c6ca97a..8219cb422 100644 --- a/es/v4/cli/publish/index.html +++ b/es/v4/cli/publish/index.html @@ -91,4 +91,4 @@

    Command

    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 d7ba79d97..686309a1b 100644 --- a/es/v4/reference/autocomplete/index.html +++ b/es/v4/reference/autocomplete/index.html @@ -51,4 +51,4 @@

    Using Focus

    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 6ecd5d693..4820dce86 100644 --- a/es/v4/reference/conclusion/index.html +++ b/es/v4/reference/conclusion/index.html @@ -44,4 +44,4 @@

    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 a69f786da..01f886344 100644 --- a/es/v4/reference/config/index.html +++ b/es/v4/reference/config/index.html @@ -65,4 +65,4 @@

    defaultPrefix

    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 808060cf3..364593ded 100644 --- a/es/v4/reference/dependencies/index.html +++ b/es/v4/reference/dependencies/index.html @@ -115,4 +115,4 @@

    When to use Dependency injection

    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 6d11f5b96..1325dbab3 100644 --- a/es/v4/reference/getting-started/index.html +++ b/es/v4/reference/getting-started/index.html @@ -44,4 +44,4 @@

    Getting Started

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

    Terminal window
    npm create @sern/bot

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

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

    -
    \ No newline at end of file + \ No newline at end of file diff --git a/es/v4/reference/modules/index.html b/es/v4/reference/modules/index.html index 830ddbf14..09e42031d 100644 --- a/es/v4/reference/modules/index.html +++ b/es/v4/reference/modules/index.html @@ -84,4 +84,4 @@

    Event Modules

    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 8e4e1ffcc..ab6c48487 100644 --- a/es/v4/reference/plugins/index.html +++ b/es/v4/reference/plugins/index.html @@ -108,4 +108,4 @@

    Dependencies

    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 721a1e123..36c636c01 100644 --- a/es/v4/reference/presence/index.html +++ b/es/v4/reference/presence/index.html @@ -57,4 +57,4 @@

    Repeated

    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 a13e49212..bed757eb4 100644 --- a/es/v4/reference/project-layout/index.html +++ b/es/v4/reference/project-layout/index.html @@ -44,4 +44,4 @@

    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 a96f00367..0979ab8c2 100644 --- a/es/v4/reference/tasks/index.html +++ b/es/v4/reference/tasks/index.html @@ -49,4 +49,4 @@
    3
    export default scheduledTask({
    4
    trigger: "* * * * *",
    5
    execute: (context) => {
    6
    console.log("cron cron")
    7
    }
    8
    })

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

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

    \ No newline at end of file diff --git a/es/v4/snippets/command/index.html b/es/v4/snippets/command/index.html index ad6ffaa94..a7586250a 100644 --- a/es/v4/snippets/command/index.html +++ b/es/v4/snippets/command/index.html @@ -42,4 +42,4 @@

    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 9dba3889b..a582e679d 100644 --- a/es/v4/snippets/event/index.html +++ b/es/v4/snippets/event/index.html @@ -43,4 +43,4 @@ 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 8654e7137..1cf558d22 100644 --- a/es/v4/snippets/plugin/index.html +++ b/es/v4/snippets/plugin/index.html @@ -42,4 +42,4 @@

    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 82bf38e39..66e42a4ba 100644 --- a/es/v4/snippets/presence/index.html +++ b/es/v4/snippets/presence/index.html @@ -43,4 +43,4 @@ 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 63ebddcad..cc731d62a 100644 --- a/es/v4/tools/localizer/index.html +++ b/es/v4/tools/localizer/index.html @@ -58,4 +58,4 @@

    Usage

    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 57adb8356..255b96f30 100644 --- a/es/v4/tools/publisher/index.html +++ b/es/v4/tools/publisher/index.html @@ -112,4 +112,4 @@

    Explanation of each property
  • Also able to use IntegrationContextType enum from @sern/publisher if you don’t want to use numbers.
  • - \ No newline at end of file + \ No newline at end of file diff --git a/es/v4/transition/from-v3/index.html b/es/v4/transition/from-v3/index.html index d770c9700..ced5effb6 100644 --- a/es/v4/transition/from-v3/index.html +++ b/es/v4/transition/from-v3/index.html @@ -71,4 +71,4 @@

    Singleton, Transient,

    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 df7f89f38..53753f450 100644 --- a/index.html +++ b/index.html @@ -38,6 +38,6 @@ 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

    -
    Albion Guide

    Albion Guide

    Gets info about The First Descendant Game.

    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

    Vinci

    Vinci

    The discord bot for Mara Turing

    +
    sern Community

    sern Community

    The bot used to manage sern Community

    Vinci

    Vinci

    The discord bot for Mara Turing

    Discoin

    Discoin

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

    Albion Guide

    Albion Guide

    Gets info about The First Descendant Game.

    man-nomic

    man-nomic

    Displays LLM model information

    Bask

    Bask

    A discord music bot

    Features

    -

    Modular

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

    Concise

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

    Familiar

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

    \ No newline at end of file +

    Modular

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

    Concise

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

    Familiar

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

    \ No newline at end of file diff --git a/pagefind/fragment/en_144ba38.pf_fragment b/pagefind/fragment/en_144ba38.pf_fragment new file mode 100644 index 000000000..7be235860 Binary files /dev/null and b/pagefind/fragment/en_144ba38.pf_fragment differ diff --git a/pagefind/fragment/en_1eb2ede.pf_fragment b/pagefind/fragment/en_1eb2ede.pf_fragment new file mode 100644 index 000000000..43833dc2e Binary files /dev/null and b/pagefind/fragment/en_1eb2ede.pf_fragment differ diff --git a/pagefind/fragment/en_23422a1.pf_fragment b/pagefind/fragment/en_23422a1.pf_fragment deleted file mode 100644 index f0689e82b..000000000 Binary files a/pagefind/fragment/en_23422a1.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/en_2a999fc.pf_fragment b/pagefind/fragment/en_2a999fc.pf_fragment deleted file mode 100644 index 9f9f523a0..000000000 Binary files a/pagefind/fragment/en_2a999fc.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/en_3c97438.pf_fragment b/pagefind/fragment/en_3c97438.pf_fragment new file mode 100644 index 000000000..bead5c665 Binary files /dev/null and b/pagefind/fragment/en_3c97438.pf_fragment differ diff --git a/pagefind/fragment/en_3f1fbc3.pf_fragment b/pagefind/fragment/en_3f1fbc3.pf_fragment deleted file mode 100644 index 3fd42516f..000000000 Binary files a/pagefind/fragment/en_3f1fbc3.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/en_9c5d70a.pf_fragment b/pagefind/fragment/en_4d1a4df.pf_fragment similarity index 87% rename from pagefind/fragment/en_9c5d70a.pf_fragment rename to pagefind/fragment/en_4d1a4df.pf_fragment index 38d15d24e..8058f6014 100644 Binary files a/pagefind/fragment/en_9c5d70a.pf_fragment and b/pagefind/fragment/en_4d1a4df.pf_fragment differ diff --git a/pagefind/fragment/en_507c415.pf_fragment b/pagefind/fragment/en_507c415.pf_fragment new file mode 100644 index 000000000..524dae766 Binary files /dev/null and b/pagefind/fragment/en_507c415.pf_fragment differ diff --git a/pagefind/fragment/en_60b63d8.pf_fragment b/pagefind/fragment/en_60b63d8.pf_fragment new file mode 100644 index 000000000..9c2f5c738 Binary files /dev/null and b/pagefind/fragment/en_60b63d8.pf_fragment differ diff --git a/pagefind/fragment/en_71edb1e.pf_fragment b/pagefind/fragment/en_71edb1e.pf_fragment deleted file mode 100644 index db9cff7ea..000000000 Binary files a/pagefind/fragment/en_71edb1e.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/en_779b80b.pf_fragment b/pagefind/fragment/en_779b80b.pf_fragment deleted file mode 100644 index 09c06541c..000000000 Binary files a/pagefind/fragment/en_779b80b.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/en_882ae66.pf_fragment b/pagefind/fragment/en_882ae66.pf_fragment new file mode 100644 index 000000000..d8bb260aa Binary files /dev/null and b/pagefind/fragment/en_882ae66.pf_fragment differ diff --git a/pagefind/fragment/en_9e771b3.pf_fragment b/pagefind/fragment/en_9e771b3.pf_fragment deleted file mode 100644 index 2a03191ae..000000000 Binary files a/pagefind/fragment/en_9e771b3.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/en_a1bde21.pf_fragment b/pagefind/fragment/en_a1bde21.pf_fragment new file mode 100644 index 000000000..bd69f423d Binary files /dev/null and b/pagefind/fragment/en_a1bde21.pf_fragment differ diff --git a/pagefind/fragment/en_b222a8b.pf_fragment b/pagefind/fragment/en_b222a8b.pf_fragment deleted file mode 100644 index 15b4bbc38..000000000 Binary files a/pagefind/fragment/en_b222a8b.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/en_c250293.pf_fragment b/pagefind/fragment/en_c250293.pf_fragment new file mode 100644 index 000000000..ab3731020 Binary files /dev/null and b/pagefind/fragment/en_c250293.pf_fragment differ diff --git a/pagefind/fragment/en_cb266c8.pf_fragment b/pagefind/fragment/en_cb266c8.pf_fragment new file mode 100644 index 000000000..4960b6d8e Binary files /dev/null and b/pagefind/fragment/en_cb266c8.pf_fragment differ diff --git a/pagefind/fragment/en_ceae6cc.pf_fragment b/pagefind/fragment/en_ceae6cc.pf_fragment new file mode 100644 index 000000000..8990d5051 Binary files /dev/null and b/pagefind/fragment/en_ceae6cc.pf_fragment differ diff --git a/pagefind/fragment/en_d218992.pf_fragment b/pagefind/fragment/en_d218992.pf_fragment deleted file mode 100644 index 2d94ee0ac..000000000 Binary files a/pagefind/fragment/en_d218992.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/en_d23267b.pf_fragment b/pagefind/fragment/en_d23267b.pf_fragment new file mode 100644 index 000000000..313eb8038 Binary files /dev/null and b/pagefind/fragment/en_d23267b.pf_fragment differ diff --git a/pagefind/fragment/en_d240116.pf_fragment b/pagefind/fragment/en_d240116.pf_fragment new file mode 100644 index 000000000..439fba230 Binary files /dev/null and b/pagefind/fragment/en_d240116.pf_fragment differ diff --git a/pagefind/fragment/en_d44cae4.pf_fragment b/pagefind/fragment/en_d44cae4.pf_fragment deleted file mode 100644 index a4f350015..000000000 Binary files a/pagefind/fragment/en_d44cae4.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/en_d9b54ec.pf_fragment b/pagefind/fragment/en_d9b54ec.pf_fragment deleted file mode 100644 index 811c82f2b..000000000 Binary files a/pagefind/fragment/en_d9b54ec.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/en_e37180d.pf_fragment b/pagefind/fragment/en_e37180d.pf_fragment deleted file mode 100644 index 2f325b8bf..000000000 Binary files a/pagefind/fragment/en_e37180d.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/en_678738f.pf_fragment b/pagefind/fragment/en_e4c5fb6.pf_fragment similarity index 88% rename from pagefind/fragment/en_678738f.pf_fragment rename to pagefind/fragment/en_e4c5fb6.pf_fragment index 8c74d022f..bf37f9ad0 100644 Binary files a/pagefind/fragment/en_678738f.pf_fragment and b/pagefind/fragment/en_e4c5fb6.pf_fragment differ diff --git a/pagefind/fragment/en_ed88e2a.pf_fragment b/pagefind/fragment/en_ed88e2a.pf_fragment deleted file mode 100644 index e7c4be8e8..000000000 Binary files a/pagefind/fragment/en_ed88e2a.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/en_f4d8b90.pf_fragment b/pagefind/fragment/en_f4d8b90.pf_fragment deleted file mode 100644 index 38bfb31b4..000000000 Binary files a/pagefind/fragment/en_f4d8b90.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/en_fe9e561.pf_fragment b/pagefind/fragment/en_fe9e561.pf_fragment new file mode 100644 index 000000000..c961279cd Binary files /dev/null and b/pagefind/fragment/en_fe9e561.pf_fragment differ diff --git a/pagefind/fragment/es_1349699.pf_fragment b/pagefind/fragment/es_1349699.pf_fragment new file mode 100644 index 000000000..8574477ab Binary files /dev/null and b/pagefind/fragment/es_1349699.pf_fragment differ diff --git a/pagefind/fragment/es_17f7286.pf_fragment b/pagefind/fragment/es_17f7286.pf_fragment new file mode 100644 index 000000000..23a3083e9 Binary files /dev/null and b/pagefind/fragment/es_17f7286.pf_fragment differ diff --git a/pagefind/fragment/es_1acc909.pf_fragment b/pagefind/fragment/es_1acc909.pf_fragment new file mode 100644 index 000000000..c2c96f66a Binary files /dev/null and b/pagefind/fragment/es_1acc909.pf_fragment differ diff --git a/pagefind/fragment/es_2ba6f4d.pf_fragment b/pagefind/fragment/es_2ba6f4d.pf_fragment new file mode 100644 index 000000000..b5c18394f Binary files /dev/null and b/pagefind/fragment/es_2ba6f4d.pf_fragment differ diff --git a/pagefind/fragment/es_2f93644.pf_fragment b/pagefind/fragment/es_2f93644.pf_fragment new file mode 100644 index 000000000..a8e8e561a Binary files /dev/null and b/pagefind/fragment/es_2f93644.pf_fragment differ diff --git a/pagefind/fragment/es_3a13a6b.pf_fragment b/pagefind/fragment/es_3a13a6b.pf_fragment deleted file mode 100644 index ea157f39a..000000000 Binary files a/pagefind/fragment/es_3a13a6b.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/es_2e18a7c.pf_fragment b/pagefind/fragment/es_56b8d4c.pf_fragment similarity index 87% rename from pagefind/fragment/es_2e18a7c.pf_fragment rename to pagefind/fragment/es_56b8d4c.pf_fragment index 6b7227cb3..06df562f7 100644 Binary files a/pagefind/fragment/es_2e18a7c.pf_fragment and b/pagefind/fragment/es_56b8d4c.pf_fragment differ diff --git a/pagefind/fragment/es_70f69e9.pf_fragment b/pagefind/fragment/es_70f69e9.pf_fragment deleted file mode 100644 index f94ddd548..000000000 Binary files a/pagefind/fragment/es_70f69e9.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/es_605c80d.pf_fragment b/pagefind/fragment/es_85a9718.pf_fragment similarity index 88% rename from pagefind/fragment/es_605c80d.pf_fragment rename to pagefind/fragment/es_85a9718.pf_fragment index 9bcabd96b..94df2655f 100644 Binary files a/pagefind/fragment/es_605c80d.pf_fragment and b/pagefind/fragment/es_85a9718.pf_fragment differ diff --git a/pagefind/fragment/es_8158a21.pf_fragment b/pagefind/fragment/es_907d789.pf_fragment similarity index 85% rename from pagefind/fragment/es_8158a21.pf_fragment rename to pagefind/fragment/es_907d789.pf_fragment index 455196947..aee8047d8 100644 Binary files a/pagefind/fragment/es_8158a21.pf_fragment and b/pagefind/fragment/es_907d789.pf_fragment differ diff --git a/pagefind/fragment/es_9fd46c3.pf_fragment b/pagefind/fragment/es_9fd46c3.pf_fragment new file mode 100644 index 000000000..d57f77e11 Binary files /dev/null and b/pagefind/fragment/es_9fd46c3.pf_fragment differ diff --git a/pagefind/fragment/es_aea647e.pf_fragment b/pagefind/fragment/es_aea647e.pf_fragment deleted file mode 100644 index 2e9509dae..000000000 Binary files a/pagefind/fragment/es_aea647e.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/es_c2e1958.pf_fragment b/pagefind/fragment/es_c2e1958.pf_fragment deleted file mode 100644 index 2d816eb13..000000000 Binary files a/pagefind/fragment/es_c2e1958.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/es_d969152.pf_fragment b/pagefind/fragment/es_d969152.pf_fragment deleted file mode 100644 index 8c5920fef..000000000 Binary files a/pagefind/fragment/es_d969152.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/es_f632ab2.pf_fragment b/pagefind/fragment/es_f632ab2.pf_fragment deleted file mode 100644 index 2b696807f..000000000 Binary files a/pagefind/fragment/es_f632ab2.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/tr_1e92986.pf_fragment b/pagefind/fragment/tr_1e92986.pf_fragment deleted file mode 100644 index 91ec0a6ea..000000000 Binary files a/pagefind/fragment/tr_1e92986.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/tr_262ca2b.pf_fragment b/pagefind/fragment/tr_262ca2b.pf_fragment new file mode 100644 index 000000000..ca9ad8066 Binary files /dev/null and b/pagefind/fragment/tr_262ca2b.pf_fragment differ diff --git a/pagefind/fragment/tr_26bfdc0.pf_fragment b/pagefind/fragment/tr_26bfdc0.pf_fragment deleted file mode 100644 index bb99aa3a8..000000000 Binary files a/pagefind/fragment/tr_26bfdc0.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/tr_2e9796d.pf_fragment b/pagefind/fragment/tr_2e9796d.pf_fragment new file mode 100644 index 000000000..04f8cf547 Binary files /dev/null and b/pagefind/fragment/tr_2e9796d.pf_fragment differ diff --git a/pagefind/fragment/tr_3d96946.pf_fragment b/pagefind/fragment/tr_37cd719.pf_fragment similarity index 86% rename from pagefind/fragment/tr_3d96946.pf_fragment rename to pagefind/fragment/tr_37cd719.pf_fragment index 056c3bb4f..944258581 100644 Binary files a/pagefind/fragment/tr_3d96946.pf_fragment and b/pagefind/fragment/tr_37cd719.pf_fragment differ diff --git a/pagefind/fragment/tr_39d4a6e.pf_fragment b/pagefind/fragment/tr_39d4a6e.pf_fragment new file mode 100644 index 000000000..a12a64e24 Binary files /dev/null and b/pagefind/fragment/tr_39d4a6e.pf_fragment differ diff --git a/pagefind/fragment/tr_40b1c7b.pf_fragment b/pagefind/fragment/tr_40b1c7b.pf_fragment deleted file mode 100644 index b024ecc2c..000000000 Binary files a/pagefind/fragment/tr_40b1c7b.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/tr_933e28d.pf_fragment b/pagefind/fragment/tr_933e28d.pf_fragment deleted file mode 100644 index 741c064e4..000000000 Binary files a/pagefind/fragment/tr_933e28d.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/tr_954643b.pf_fragment b/pagefind/fragment/tr_954643b.pf_fragment deleted file mode 100644 index 7555941e1..000000000 Binary files a/pagefind/fragment/tr_954643b.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/tr_ad132f4.pf_fragment b/pagefind/fragment/tr_ad132f4.pf_fragment new file mode 100644 index 000000000..2aa5d6243 Binary files /dev/null and b/pagefind/fragment/tr_ad132f4.pf_fragment differ diff --git a/pagefind/fragment/tr_ca6a555.pf_fragment b/pagefind/fragment/tr_ca6a555.pf_fragment deleted file mode 100644 index e76bd3c06..000000000 Binary files a/pagefind/fragment/tr_ca6a555.pf_fragment and /dev/null differ diff --git a/pagefind/fragment/tr_dfaeb4b.pf_fragment b/pagefind/fragment/tr_dfaeb4b.pf_fragment new file mode 100644 index 000000000..47a274adf Binary files /dev/null and b/pagefind/fragment/tr_dfaeb4b.pf_fragment differ diff --git a/pagefind/fragment/tr_e8869a1.pf_fragment b/pagefind/fragment/tr_e8869a1.pf_fragment new file mode 100644 index 000000000..5ce5cda4e Binary files /dev/null and b/pagefind/fragment/tr_e8869a1.pf_fragment differ diff --git a/pagefind/fragment/tr_54ee77f.pf_fragment b/pagefind/fragment/tr_ec8f45f.pf_fragment similarity index 86% rename from pagefind/fragment/tr_54ee77f.pf_fragment rename to pagefind/fragment/tr_ec8f45f.pf_fragment index 5b0ee082c..01e1580cd 100644 Binary files a/pagefind/fragment/tr_54ee77f.pf_fragment and b/pagefind/fragment/tr_ec8f45f.pf_fragment differ diff --git a/pagefind/fragment/tr_fc1c3bf.pf_fragment b/pagefind/fragment/tr_f2bee2a.pf_fragment similarity index 87% rename from pagefind/fragment/tr_fc1c3bf.pf_fragment rename to pagefind/fragment/tr_f2bee2a.pf_fragment index 5bce30bcb..988d2823f 100644 Binary files a/pagefind/fragment/tr_fc1c3bf.pf_fragment and b/pagefind/fragment/tr_f2bee2a.pf_fragment differ diff --git a/pagefind/index/en_2f4e6f8.pf_index b/pagefind/index/en_2f4e6f8.pf_index deleted file mode 100644 index bb87c0a2f..000000000 Binary files a/pagefind/index/en_2f4e6f8.pf_index and /dev/null differ diff --git a/pagefind/index/en_316a697.pf_index b/pagefind/index/en_316a697.pf_index new file mode 100644 index 000000000..4361966ae Binary files /dev/null and b/pagefind/index/en_316a697.pf_index differ diff --git a/pagefind/index/en_35ac856.pf_index b/pagefind/index/en_35ac856.pf_index new file mode 100644 index 000000000..dec2120b9 Binary files /dev/null and b/pagefind/index/en_35ac856.pf_index differ diff --git a/pagefind/index/en_66af31d.pf_index b/pagefind/index/en_66af31d.pf_index deleted file mode 100644 index ce8fd9564..000000000 Binary files a/pagefind/index/en_66af31d.pf_index and /dev/null differ diff --git a/pagefind/index/en_749da61.pf_index b/pagefind/index/en_749da61.pf_index new file mode 100644 index 000000000..d756d35ee Binary files /dev/null and b/pagefind/index/en_749da61.pf_index differ diff --git a/pagefind/index/en_c160bcc.pf_index b/pagefind/index/en_c160bcc.pf_index deleted file mode 100644 index 77cc6df78..000000000 Binary files a/pagefind/index/en_c160bcc.pf_index and /dev/null differ diff --git a/pagefind/index/es_111af42.pf_index b/pagefind/index/es_111af42.pf_index deleted file mode 100644 index 57c78559f..000000000 Binary files a/pagefind/index/es_111af42.pf_index and /dev/null differ diff --git a/pagefind/index/es_192cc54.pf_index b/pagefind/index/es_192cc54.pf_index deleted file mode 100644 index 98f635977..000000000 Binary files a/pagefind/index/es_192cc54.pf_index and /dev/null differ diff --git a/pagefind/index/es_9bff23d.pf_index b/pagefind/index/es_9bff23d.pf_index new file mode 100644 index 000000000..e77f7c051 Binary files /dev/null and b/pagefind/index/es_9bff23d.pf_index differ diff --git a/pagefind/index/es_be84a8c.pf_index b/pagefind/index/es_be84a8c.pf_index new file mode 100644 index 000000000..4f6fddc40 Binary files /dev/null and b/pagefind/index/es_be84a8c.pf_index differ diff --git a/pagefind/index/es_c710a16.pf_index b/pagefind/index/es_c710a16.pf_index deleted file mode 100644 index f1913a3e2..000000000 Binary files a/pagefind/index/es_c710a16.pf_index and /dev/null differ diff --git a/pagefind/index/es_d558fdf.pf_index b/pagefind/index/es_d558fdf.pf_index new file mode 100644 index 000000000..7a8fb725a Binary files /dev/null and b/pagefind/index/es_d558fdf.pf_index differ diff --git a/pagefind/index/tr_8936af6.pf_index b/pagefind/index/tr_8936af6.pf_index new file mode 100644 index 000000000..fc161ced9 Binary files /dev/null and b/pagefind/index/tr_8936af6.pf_index differ diff --git a/pagefind/index/tr_aa5d164.pf_index b/pagefind/index/tr_aa5d164.pf_index new file mode 100644 index 000000000..bfc9ed610 Binary files /dev/null and b/pagefind/index/tr_aa5d164.pf_index differ diff --git a/pagefind/index/tr_cd83598.pf_index b/pagefind/index/tr_cd83598.pf_index deleted file mode 100644 index cdcd9b389..000000000 Binary files a/pagefind/index/tr_cd83598.pf_index and /dev/null differ diff --git a/pagefind/index/tr_d3aa556.pf_index b/pagefind/index/tr_d3aa556.pf_index deleted file mode 100644 index d71f661cb..000000000 Binary files a/pagefind/index/tr_d3aa556.pf_index and /dev/null differ diff --git a/pagefind/index/tr_d64c3a4.pf_index b/pagefind/index/tr_d64c3a4.pf_index deleted file mode 100644 index dc4f32586..000000000 Binary files a/pagefind/index/tr_d64c3a4.pf_index and /dev/null differ diff --git a/pagefind/index/tr_fdd19aa.pf_index b/pagefind/index/tr_fdd19aa.pf_index new file mode 100644 index 000000000..06f82d8ca Binary files /dev/null and b/pagefind/index/tr_fdd19aa.pf_index differ diff --git a/pagefind/pagefind-entry.json b/pagefind/pagefind-entry.json index e4bd7a5aa..c7485c86d 100644 --- a/pagefind/pagefind-entry.json +++ b/pagefind/pagefind-entry.json @@ -1 +1 @@ -{"version":"1.1.0","languages":{"tr":{"hash":"tr_a6f89b50f1","wasm":"tr","page_count":181},"en":{"hash":"en_01468adaa7","wasm":"en","page_count":183},"es":{"hash":"es_4e5cee2c57","wasm":"es","page_count":181}}} \ No newline at end of file +{"version":"1.1.0","languages":{"es":{"hash":"es_8a149e20e0","wasm":"es","page_count":181},"en":{"hash":"en_86e6a0b45d","wasm":"en","page_count":183},"tr":{"hash":"tr_dae18e3e7a","wasm":"tr","page_count":181}}} \ No newline at end of file diff --git a/pagefind/pagefind.en_01468adaa7.pf_meta b/pagefind/pagefind.en_01468adaa7.pf_meta deleted file mode 100644 index 9583dae11..000000000 Binary files a/pagefind/pagefind.en_01468adaa7.pf_meta and /dev/null differ diff --git a/pagefind/pagefind.en_86e6a0b45d.pf_meta b/pagefind/pagefind.en_86e6a0b45d.pf_meta new file mode 100644 index 000000000..7afbdeecf Binary files /dev/null and b/pagefind/pagefind.en_86e6a0b45d.pf_meta differ diff --git a/pagefind/pagefind.es_4e5cee2c57.pf_meta b/pagefind/pagefind.es_4e5cee2c57.pf_meta deleted file mode 100644 index 82a6ce44e..000000000 Binary files a/pagefind/pagefind.es_4e5cee2c57.pf_meta and /dev/null differ diff --git a/pagefind/pagefind.es_8a149e20e0.pf_meta b/pagefind/pagefind.es_8a149e20e0.pf_meta new file mode 100644 index 000000000..6bc52c178 Binary files /dev/null and b/pagefind/pagefind.es_8a149e20e0.pf_meta differ diff --git a/pagefind/pagefind.tr_a6f89b50f1.pf_meta b/pagefind/pagefind.tr_a6f89b50f1.pf_meta deleted file mode 100644 index 479112b3c..000000000 Binary files a/pagefind/pagefind.tr_a6f89b50f1.pf_meta and /dev/null differ diff --git a/pagefind/pagefind.tr_dae18e3e7a.pf_meta b/pagefind/pagefind.tr_dae18e3e7a.pf_meta new file mode 100644 index 000000000..bb33f9e29 Binary files /dev/null and b/pagefind/pagefind.tr_dae18e3e7a.pf_meta differ diff --git a/plugins/index.html b/plugins/index.html index 48ef2762b..2ead3b6ab 100644 --- a/plugins/index.html +++ b/plugins/index.html @@ -38,21 +38,23 @@ 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. +An extra function cooldown2 is exported if you want your cooldown to be local to the command.

    \ 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 90dfd274b..c88afba4e 100644 --- a/tr/blog/1.2.0/index.html +++ b/tr/blog/1.2.0/index.html @@ -83,4 +83,4 @@

    Dependencies Update

    \ 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 6365d5ce7..f8b2f3b3e 100644 --- a/tr/blog/2.0.0/index.html +++ b/tr/blog/2.0.0/index.html @@ -104,4 +104,4 @@

    Breaking Changes

    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 a928cd6fd..7c8abbc60 100644 --- a/tr/blog/2.5.0/index.html +++ b/tr/blog/2.5.0/index.html @@ -76,4 +76,4 @@

    Reason

    -

    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 db82d4c1b..034c76266 100644 --- a/tr/blog/3.0.0/index.html +++ b/tr/blog/3.0.0/index.html @@ -162,4 +162,4 @@

    Deprecations

  • 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 f679fa51d..e1506d5c3 100644 --- a/tr/blog/new-logo/index.html +++ b/tr/blog/new-logo/index.html @@ -58,4 +58,4 @@

    Anyways, here it is:

    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 11373a599..61c0f86fd 100644 --- a/tr/blog/railway-deploy/index.html +++ b/tr/blog/railway-deploy/index.html @@ -53,4 +53,4 @@

    Railway Setup

    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 a2f949bc4..edc6e6253 100644 --- a/tr/index.html +++ b/tr/index.html @@ -38,6 +38,6 @@ İç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

    -
    man-nomic

    man-nomic

    Displays LLM model information

    Vinci

    Vinci

    The discord bot for Mara Turing

    Albion Guide

    Albion Guide

    Gets info about The First Descendant Game.

    sern Community

    sern Community

    The bot used to manage sern Community

    Bask

    Bask

    A discord music bot

    +
    Discoin

    Discoin

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

    Albion Guide

    Albion Guide

    Gets info about The First Descendant Game.

    Bask

    Bask

    A discord music bot

    sern Community

    sern Community

    The bot used to manage sern Community

    Vinci

    Vinci

    The discord bot for Mara Turing

    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 819962065..8458061af 100644 --- a/tr/v3/api/classes/context/index.html +++ b/tr/v3/api/classes/context/index.html @@ -230,4 +230,4 @@

    Parameters

    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 521b5f802..96d233e13 100644 --- a/tr/v3/api/enumerations/commandtype/index.html +++ b/tr/v3/api/enumerations/commandtype/index.html @@ -129,4 +129,4 @@

    UserSelect

    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 dcfcab5d7..4358c1ab0 100644 --- a/tr/v3/api/enumerations/eventtype/index.html +++ b/tr/v3/api/enumerations/eventtype/index.html @@ -68,4 +68,4 @@

    Sern

    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 695b063ed..ba4505439 100644 --- a/tr/v3/api/enumerations/payloadtype/index.html +++ b/tr/v3/api/enumerations/payloadtype/index.html @@ -64,4 +64,4 @@

    Warning

    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 a1a603131..177f6061f 100644 --- a/tr/v3/api/enumerations/plugintype/index.html +++ b/tr/v3/api/enumerations/plugintype/index.html @@ -59,4 +59,4 @@

    Init

    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 92230c720..caec7aa35 100644 --- a/tr/v3/api/functions/commandcontrolplugin/index.html +++ b/tr/v3/api/functions/commandcontrolplugin/index.html @@ -53,4 +53,4 @@

    Returns

    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 b213f3c5a..d9e203e48 100644 --- a/tr/v3/api/functions/commandinitplugin/index.html +++ b/tr/v3/api/functions/commandinitplugin/index.html @@ -53,4 +53,4 @@

    Returns

    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 d00b720b6..bfabd990c 100644 --- a/tr/v3/api/functions/commandmodule/index.html +++ b/tr/v3/api/functions/commandmodule/index.html @@ -51,4 +51,4 @@

    Returns

    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 fb4a8b600..cdc017fd7 100644 --- a/tr/v3/api/functions/discordevent/index.html +++ b/tr/v3/api/functions/discordevent/index.html @@ -57,4 +57,4 @@

    Parameters

    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 2eca388cc..896f26e88 100644 --- a/tr/v3/api/functions/eventinitplugin/index.html +++ b/tr/v3/api/functions/eventinitplugin/index.html @@ -51,4 +51,4 @@

    Returns

    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 c88646120..000a81270 100644 --- a/tr/v3/api/functions/eventmodule/index.html +++ b/tr/v3/api/functions/eventmodule/index.html @@ -52,4 +52,4 @@

    Since

    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 6db13ec12..4806f237f 100644 --- a/tr/v3/api/functions/makedependencies/index.html +++ b/tr/v3/api/functions/makedependencies/index.html @@ -53,4 +53,4 @@

    Returns

    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 5706fa02f..b86f95d2e 100644 --- a/tr/v3/api/functions/makeplugin/index.html +++ b/tr/v3/api/functions/makeplugin/index.html @@ -52,4 +52,4 @@

    Parameters

    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 c736b4bca..f3ed08a09 100644 --- a/tr/v3/api/functions/service/index.html +++ b/tr/v3/api/functions/service/index.html @@ -62,4 +62,4 @@

    Example

    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 634a8ac02..fde49a153 100644 --- a/tr/v3/api/functions/services/index.html +++ b/tr/v3/api/functions/services/index.html @@ -57,4 +57,4 @@

    Since

    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 a02c0fcdd..99cd6b9ef 100644 --- a/tr/v3/api/functions/single/index.html +++ b/tr/v3/api/functions/single/index.html @@ -52,4 +52,4 @@

    Parameters

    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 34fd00851..f6da49c50 100644 --- a/tr/v3/api/functions/transient/index.html +++ b/tr/v3/api/functions/transient/index.html @@ -55,4 +55,4 @@

    Since

    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 aff59deae..bbda00a10 100644 --- a/tr/v3/api/interfaces/bothcommand/index.html +++ b/tr/v3/api/interfaces/bothcommand/index.html @@ -136,4 +136,4 @@

    type

    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 b39560a42..316029fb0 100644 --- a/tr/v3/api/interfaces/buttoncommand/index.html +++ b/tr/v3/api/interfaces/buttoncommand/index.html @@ -129,4 +129,4 @@

    type

    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 fc41c0604..f612a6ff5 100644 --- a/tr/v3/api/interfaces/channelselectcommand/index.html +++ b/tr/v3/api/interfaces/channelselectcommand/index.html @@ -129,4 +129,4 @@

    type

    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 8e226e974..8d5443b95 100644 --- a/tr/v3/api/interfaces/commandmoduledefs/index.html +++ b/tr/v3/api/interfaces/commandmoduledefs/index.html @@ -124,4 +124,4 @@

    8

    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 9d2f25991..957ed49b0 100644 --- a/tr/v3/api/interfaces/contextmenumsg/index.html +++ b/tr/v3/api/interfaces/contextmenumsg/index.html @@ -129,4 +129,4 @@

    type

    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 232d9e76e..0921d7b85 100644 --- a/tr/v3/api/interfaces/contextmenuuser/index.html +++ b/tr/v3/api/interfaces/contextmenuuser/index.html @@ -129,4 +129,4 @@

    type

    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 c11a20a48..8c56a7458 100644 --- a/tr/v3/api/interfaces/controlplugin/index.html +++ b/tr/v3/api/interfaces/controlplugin/index.html @@ -68,4 +68,4 @@

    type

    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 e4264dc74..dce545d6f 100644 --- a/tr/v3/api/interfaces/coredependencies/index.html +++ b/tr/v3/api/interfaces/coredependencies/index.html @@ -90,4 +90,4 @@

    @sern/scheduler

    @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 49b03c62e..d725ddb5e 100644 --- a/tr/v3/api/interfaces/discordeventcommand/index.html +++ b/tr/v3/api/interfaces/discordeventcommand/index.html @@ -130,4 +130,4 @@

    Returns

    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 ecd38db34..fbe8a931d 100644 --- a/tr/v3/api/interfaces/disposable/index.html +++ b/tr/v3/api/interfaces/disposable/index.html @@ -51,4 +51,4 @@

    dispose()

    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 8eb1ef167..3679b0387 100644 --- a/tr/v3/api/interfaces/emitter/index.html +++ b/tr/v3/api/interfaces/emitter/index.html @@ -76,4 +76,4 @@

    Parameters

    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 7bb076db4..505dfc318 100644 --- a/tr/v3/api/interfaces/errorhandling/index.html +++ b/tr/v3/api/interfaces/errorhandling/index.html @@ -66,4 +66,4 @@

    Parameters

    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 5e607c851..ef5881a3c 100644 --- a/tr/v3/api/interfaces/eventmoduledefs/index.html +++ b/tr/v3/api/interfaces/eventmoduledefs/index.html @@ -61,4 +61,4 @@

    2

    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 1463aa4c8..be42918bd 100644 --- a/tr/v3/api/interfaces/externaleventcommand/index.html +++ b/tr/v3/api/interfaces/externaleventcommand/index.html @@ -135,4 +135,4 @@

    Returns

    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 154e5d289..ddfb46fc0 100644 --- a/tr/v3/api/interfaces/init/index.html +++ b/tr/v3/api/interfaces/init/index.html @@ -51,4 +51,4 @@

    init()

    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 0c92f6333..fc6f0cde7 100644 --- a/tr/v3/api/interfaces/initplugin/index.html +++ b/tr/v3/api/interfaces/initplugin/index.html @@ -68,4 +68,4 @@

    type

    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 dfeb0b3f8..1b59e2f5c 100644 --- a/tr/v3/api/interfaces/logging/index.html +++ b/tr/v3/api/interfaces/logging/index.html @@ -88,4 +88,4 @@

    Parameters

    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 605dd0256..523db0a1c 100644 --- a/tr/v3/api/interfaces/mentionableselectcommand/index.html +++ b/tr/v3/api/interfaces/mentionableselectcommand/index.html @@ -129,4 +129,4 @@

    type

    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 9ed859b0d..b560e7c2e 100644 --- a/tr/v3/api/interfaces/modalsubmitcommand/index.html +++ b/tr/v3/api/interfaces/modalsubmitcommand/index.html @@ -129,4 +129,4 @@

    type

    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 6b8b7c090..f084eb0df 100644 --- a/tr/v3/api/interfaces/plugin/index.html +++ b/tr/v3/api/interfaces/plugin/index.html @@ -65,4 +65,4 @@

    type

    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 567af4065..fc15f100e 100644 --- a/tr/v3/api/interfaces/roleselectcommand/index.html +++ b/tr/v3/api/interfaces/roleselectcommand/index.html @@ -129,4 +129,4 @@

    type

    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 5a21af6b8..40035001e 100644 --- a/tr/v3/api/interfaces/sernautocompletedata/index.html +++ b/tr/v3/api/interfaces/sernautocompletedata/index.html @@ -110,4 +110,4 @@

    type

    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 97efd730b..4bf8534a7 100644 --- a/tr/v3/api/interfaces/serneventcommand/index.html +++ b/tr/v3/api/interfaces/serneventcommand/index.html @@ -130,4 +130,4 @@

    Returns

    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 c14b6e60f..15af8898a 100644 --- a/tr/v3/api/interfaces/serneventsmapping/index.html +++ b/tr/v3/api/interfaces/serneventsmapping/index.html @@ -75,4 +75,4 @@

    warning

    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 4b15a878b..4b3e5bc8a 100644 --- a/tr/v3/api/interfaces/sernsubcommanddata/index.html +++ b/tr/v3/api/interfaces/sernsubcommanddata/index.html @@ -105,4 +105,4 @@

    type

    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 daa9c68e2..b3ea388ac 100644 --- a/tr/v3/api/interfaces/sernsubcommandgroupdata/index.html +++ b/tr/v3/api/interfaces/sernsubcommandgroupdata/index.html @@ -112,4 +112,4 @@

    type

    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 c0004b073..b168c8a85 100644 --- a/tr/v3/api/interfaces/slashcommand/index.html +++ b/tr/v3/api/interfaces/slashcommand/index.html @@ -136,4 +136,4 @@

    type

    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 6ee880c58..6249fed41 100644 --- a/tr/v3/api/interfaces/stringselectcommand/index.html +++ b/tr/v3/api/interfaces/stringselectcommand/index.html @@ -129,4 +129,4 @@

    type

    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 d0aef98fd..bfdc38066 100644 --- a/tr/v3/api/interfaces/textcommand/index.html +++ b/tr/v3/api/interfaces/textcommand/index.html @@ -129,4 +129,4 @@

    type

    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 c16773524..3e8e3161f 100644 --- a/tr/v3/api/interfaces/userselectcommand/index.html +++ b/tr/v3/api/interfaces/userselectcommand/index.html @@ -129,4 +129,4 @@

    type

    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 c00afea6c..27853349c 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 @@

    status?

    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 816f9b460..c3b0bb214 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 @@

    inject?

    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 0e0c3d084..da6790910 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 @@

    Since

    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 51b89254f..0cbc63bf0 100644 --- a/tr/v3/api/readme/index.html +++ b/tr/v3/api/readme/index.html @@ -125,4 +125,4 @@

    Functions

  • 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 c91298cfd..8bfd5c863 100644 --- a/tr/v3/api/type-aliases/commandmodule/index.html +++ b/tr/v3/api/type-aliases/commandmodule/index.html @@ -45,4 +45,4 @@

    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 abfed7007..c4498ed00 100644 --- a/tr/v3/api/type-aliases/eventmodule/index.html +++ b/tr/v3/api/type-aliases/eventmodule/index.html @@ -45,4 +45,4 @@

    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 52252a910..a1c0ef94b 100644 --- a/tr/v3/api/type-aliases/logpayload/index.html +++ b/tr/v3/api/type-aliases/logpayload/index.html @@ -52,4 +52,4 @@

    message

    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 aa1bf739c..f9d92e593 100644 --- a/tr/v3/api/type-aliases/payload/index.html +++ b/tr/v3/api/type-aliases/payload/index.html @@ -45,4 +45,4 @@

    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 e7514c951..62d799b15 100644 --- a/tr/v3/api/type-aliases/pluginresult/index.html +++ b/tr/v3/api/type-aliases/pluginresult/index.html @@ -45,4 +45,4 @@

    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 879e40945..9b2a35827 100644 --- a/tr/v3/api/type-aliases/sernoptionsdata/index.html +++ b/tr/v3/api/type-aliases/sernoptionsdata/index.html @@ -46,4 +46,4 @@

    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 bab101d64..d66ae9ad3 100644 --- a/tr/v3/api/variables/controller/index.html +++ b/tr/v3/api/variables/controller/index.html @@ -65,4 +65,4 @@

    Parameters

    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 808cbbc4a..4beaa22b7 100644 --- a/tr/v3/cli/about/index.html +++ b/tr/v3/cli/about/index.html @@ -50,4 +50,4 @@
    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 17e8723b2..4b3f9dcda 100644 --- a/tr/v3/cli/build/index.html +++ b/tr/v3/cli/build/index.html @@ -113,4 +113,4 @@

    Constants

    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 7396273bb..d87e5c5bd 100644 --- a/tr/v3/cli/clear/index.html +++ b/tr/v3/cli/clear/index.html @@ -55,4 +55,4 @@

    Notes

    \ 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 7287b5e94..8cc605a86 100644 --- a/tr/v3/cli/extra/index.html +++ b/tr/v3/cli/extra/index.html @@ -48,4 +48,4 @@

    Introduction

    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 95980909e..dba6d391d 100644 --- a/tr/v3/cli/publish/index.html +++ b/tr/v3/cli/publish/index.html @@ -88,4 +88,4 @@

    Command

    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 200ec9aa2..ab3c8e51c 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 @@
  • 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 60f6a5b49..f8c24a3fb 100644 --- a/tr/v3/guide/getting-started/preparing/index.html +++ b/tr/v3/guide/getting-started/preparing/index.html @@ -44,4 +44,4 @@

    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 6016f981b..e537eb83b 100644 --- a/tr/v3/guide/walkthrough/autocomplete/index.html +++ b/tr/v3/guide/walkthrough/autocomplete/index.html @@ -51,4 +51,4 @@

    Using Focus

    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 f4989d3af..55f8ec796 100644 --- a/tr/v3/guide/walkthrough/cli/index.html +++ b/tr/v3/guide/walkthrough/cli/index.html @@ -56,4 +56,4 @@

    Adding Plugins

    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 ebb05ea54..9776b067e 100644 --- a/tr/v3/guide/walkthrough/conclusion/index.html +++ b/tr/v3/guide/walkthrough/conclusion/index.html @@ -44,4 +44,4 @@

    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 d1debfc9e..1371f45dc 100644 --- a/tr/v3/guide/walkthrough/dependency-injection/index.html +++ b/tr/v3/guide/walkthrough/dependency-injection/index.html @@ -87,4 +87,4 @@

    Init

  • 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 33c1e7bba..9471586db 100644 --- a/tr/v3/guide/walkthrough/first-command/index.html +++ b/tr/v3/guide/walkthrough/first-command/index.html @@ -71,4 +71,4 @@

    Context Class

  • 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 2d95c63a9..265095c24 100644 --- a/tr/v3/guide/walkthrough/first-event/index.html +++ b/tr/v3/guide/walkthrough/first-event/index.html @@ -53,4 +53,4 @@

    External Events

    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 92592fff6..7ba4fdfd2 100644 --- a/tr/v3/guide/walkthrough/goal/index.html +++ b/tr/v3/guide/walkthrough/goal/index.html @@ -54,4 +54,4 @@

    Why sern?

    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 56bfca6dd..4d384ecd6 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 @@

    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 05c2f0066..622c22592 100644 --- a/tr/v3/guide/walkthrough/new-project/index.html +++ b/tr/v3/guide/walkthrough/new-project/index.html @@ -43,4 +43,4 @@ 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 486b49621..d9b79f232 100644 --- a/tr/v3/guide/walkthrough/plugins/index.html +++ b/tr/v3/guide/walkthrough/plugins/index.html @@ -81,4 +81,4 @@

    Can you predict the behavi
  • 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 4528daa19..7f4917c3f 100644 --- a/tr/v3/guide/walkthrough/sern-emitter/index.html +++ b/tr/v3/guide/walkthrough/sern-emitter/index.html @@ -51,4 +51,4 @@
  • 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 31f1ac251..bf6953ab0 100644 --- a/tr/v3/guide/walkthrough/services/index.html +++ b/tr/v3/guide/walkthrough/services/index.html @@ -83,4 +83,4 @@

    \ 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 144017a4e..ba4f6000d 100644 --- a/tr/v3/guide/walkthrough/transition/index.html +++ b/tr/v3/guide/walkthrough/transition/index.html @@ -47,4 +47,4 @@

    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 8f9f57905..3d0160c45 100644 --- a/tr/v4/api/classes/context/index.html +++ b/tr/v4/api/classes/context/index.html @@ -230,4 +230,4 @@

    Parameters

    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 bbb0b37cb..79bcd770a 100644 --- a/tr/v4/api/enumerations/commandtype/index.html +++ b/tr/v4/api/enumerations/commandtype/index.html @@ -129,4 +129,4 @@

    UserSelect

    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 878e947fe..37fa5da36 100644 --- a/tr/v4/api/enumerations/eventtype/index.html +++ b/tr/v4/api/enumerations/eventtype/index.html @@ -68,4 +68,4 @@

    Sern

    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 85b9ff4e5..98e5a4125 100644 --- a/tr/v4/api/enumerations/payloadtype/index.html +++ b/tr/v4/api/enumerations/payloadtype/index.html @@ -64,4 +64,4 @@

    Warning

    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 65e6e1783..030c7d650 100644 --- a/tr/v4/api/enumerations/plugintype/index.html +++ b/tr/v4/api/enumerations/plugintype/index.html @@ -59,4 +59,4 @@

    Init

    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 b94ca6019..883c8cc01 100644 --- a/tr/v4/api/functions/commandcontrolplugin/index.html +++ b/tr/v4/api/functions/commandcontrolplugin/index.html @@ -53,4 +53,4 @@

    Returns

    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 95b8f4dd3..4419e005e 100644 --- a/tr/v4/api/functions/commandinitplugin/index.html +++ b/tr/v4/api/functions/commandinitplugin/index.html @@ -53,4 +53,4 @@

    Returns

    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 0bbac3ad4..806130447 100644 --- a/tr/v4/api/functions/commandmodule/index.html +++ b/tr/v4/api/functions/commandmodule/index.html @@ -51,4 +51,4 @@

    Returns

    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 2cd430380..4712ebbde 100644 --- a/tr/v4/api/functions/discordevent/index.html +++ b/tr/v4/api/functions/discordevent/index.html @@ -57,4 +57,4 @@

    Parameters

    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 661b7422f..5d56169c5 100644 --- a/tr/v4/api/functions/eventinitplugin/index.html +++ b/tr/v4/api/functions/eventinitplugin/index.html @@ -51,4 +51,4 @@

    Returns

    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 303fcd074..c87242d17 100644 --- a/tr/v4/api/functions/eventmodule/index.html +++ b/tr/v4/api/functions/eventmodule/index.html @@ -52,4 +52,4 @@

    Since

    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 57671381b..fbbfc9cab 100644 --- a/tr/v4/api/functions/makedependencies/index.html +++ b/tr/v4/api/functions/makedependencies/index.html @@ -53,4 +53,4 @@

    Returns

    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 2831b2528..2b50fc377 100644 --- a/tr/v4/api/functions/makeplugin/index.html +++ b/tr/v4/api/functions/makeplugin/index.html @@ -52,4 +52,4 @@

    Parameters

    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 2e0e71ad9..cc87caba0 100644 --- a/tr/v4/api/functions/service/index.html +++ b/tr/v4/api/functions/service/index.html @@ -62,4 +62,4 @@

    Example

    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 d73cbeed2..857c45dc8 100644 --- a/tr/v4/api/functions/services/index.html +++ b/tr/v4/api/functions/services/index.html @@ -57,4 +57,4 @@

    Since

    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 fbcfc77e4..49679890e 100644 --- a/tr/v4/api/functions/single/index.html +++ b/tr/v4/api/functions/single/index.html @@ -52,4 +52,4 @@

    Parameters

    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 0389950b7..430fb83a2 100644 --- a/tr/v4/api/functions/transient/index.html +++ b/tr/v4/api/functions/transient/index.html @@ -55,4 +55,4 @@

    Since

    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 c27573641..3e9740be8 100644 --- a/tr/v4/api/interfaces/bothcommand/index.html +++ b/tr/v4/api/interfaces/bothcommand/index.html @@ -136,4 +136,4 @@

    type

    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 f57d3c3f2..0c057d968 100644 --- a/tr/v4/api/interfaces/buttoncommand/index.html +++ b/tr/v4/api/interfaces/buttoncommand/index.html @@ -129,4 +129,4 @@

    type

    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 74d515d49..bc2860fe0 100644 --- a/tr/v4/api/interfaces/channelselectcommand/index.html +++ b/tr/v4/api/interfaces/channelselectcommand/index.html @@ -129,4 +129,4 @@

    type

    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 4927a4f4c..1f311ee5b 100644 --- a/tr/v4/api/interfaces/commandmoduledefs/index.html +++ b/tr/v4/api/interfaces/commandmoduledefs/index.html @@ -124,4 +124,4 @@

    8

    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 a5eaf2e7f..3714bf6bf 100644 --- a/tr/v4/api/interfaces/contextmenumsg/index.html +++ b/tr/v4/api/interfaces/contextmenumsg/index.html @@ -129,4 +129,4 @@

    type

    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 f78854f0c..64a26509f 100644 --- a/tr/v4/api/interfaces/contextmenuuser/index.html +++ b/tr/v4/api/interfaces/contextmenuuser/index.html @@ -129,4 +129,4 @@

    type

    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 3c9ca1d05..1eef6aa91 100644 --- a/tr/v4/api/interfaces/controlplugin/index.html +++ b/tr/v4/api/interfaces/controlplugin/index.html @@ -68,4 +68,4 @@

    type

    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 3b8e9e7ce..36dc1b238 100644 --- a/tr/v4/api/interfaces/coredependencies/index.html +++ b/tr/v4/api/interfaces/coredependencies/index.html @@ -90,4 +90,4 @@

    @sern/scheduler

    @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 1ec8d1192..dd7913954 100644 --- a/tr/v4/api/interfaces/discordeventcommand/index.html +++ b/tr/v4/api/interfaces/discordeventcommand/index.html @@ -130,4 +130,4 @@

    Returns

    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 211b40d7b..0a321aa7b 100644 --- a/tr/v4/api/interfaces/disposable/index.html +++ b/tr/v4/api/interfaces/disposable/index.html @@ -51,4 +51,4 @@

    dispose()

    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 b81cc7959..6ee7069cd 100644 --- a/tr/v4/api/interfaces/emitter/index.html +++ b/tr/v4/api/interfaces/emitter/index.html @@ -76,4 +76,4 @@

    Parameters

    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 b0d23da6d..abd28b552 100644 --- a/tr/v4/api/interfaces/errorhandling/index.html +++ b/tr/v4/api/interfaces/errorhandling/index.html @@ -66,4 +66,4 @@

    Parameters

    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 1aee896c1..fb4795045 100644 --- a/tr/v4/api/interfaces/eventmoduledefs/index.html +++ b/tr/v4/api/interfaces/eventmoduledefs/index.html @@ -61,4 +61,4 @@

    2

    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 26bb3fdf1..a88f63074 100644 --- a/tr/v4/api/interfaces/externaleventcommand/index.html +++ b/tr/v4/api/interfaces/externaleventcommand/index.html @@ -135,4 +135,4 @@

    Returns

    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 e1d1945fc..849944cbf 100644 --- a/tr/v4/api/interfaces/init/index.html +++ b/tr/v4/api/interfaces/init/index.html @@ -51,4 +51,4 @@

    init()

    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 642a70529..abd6a68ee 100644 --- a/tr/v4/api/interfaces/initplugin/index.html +++ b/tr/v4/api/interfaces/initplugin/index.html @@ -68,4 +68,4 @@

    type

    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 e38a4d3fb..55124adea 100644 --- a/tr/v4/api/interfaces/logging/index.html +++ b/tr/v4/api/interfaces/logging/index.html @@ -88,4 +88,4 @@

    Parameters

    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 22b39067f..425f2f072 100644 --- a/tr/v4/api/interfaces/mentionableselectcommand/index.html +++ b/tr/v4/api/interfaces/mentionableselectcommand/index.html @@ -129,4 +129,4 @@

    type

    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 fadb67e3f..3bf8639a2 100644 --- a/tr/v4/api/interfaces/modalsubmitcommand/index.html +++ b/tr/v4/api/interfaces/modalsubmitcommand/index.html @@ -129,4 +129,4 @@

    type

    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 b9a8318ea..89cafe454 100644 --- a/tr/v4/api/interfaces/module/index.html +++ b/tr/v4/api/interfaces/module/index.html @@ -126,4 +126,4 @@

    Parameters

    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 f40add601..f24c4aaf9 100644 --- a/tr/v4/api/interfaces/plugin/index.html +++ b/tr/v4/api/interfaces/plugin/index.html @@ -65,4 +65,4 @@

    type

    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 4078358b0..478579e36 100644 --- a/tr/v4/api/interfaces/roleselectcommand/index.html +++ b/tr/v4/api/interfaces/roleselectcommand/index.html @@ -129,4 +129,4 @@

    type

    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 956503fa4..3ebbbe307 100644 --- a/tr/v4/api/interfaces/sernautocompletedata/index.html +++ b/tr/v4/api/interfaces/sernautocompletedata/index.html @@ -110,4 +110,4 @@

    type

    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 2f032825d..943ad6914 100644 --- a/tr/v4/api/interfaces/serneventcommand/index.html +++ b/tr/v4/api/interfaces/serneventcommand/index.html @@ -130,4 +130,4 @@

    Returns

    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 dd7c0d44a..711029fb9 100644 --- a/tr/v4/api/interfaces/serneventsmapping/index.html +++ b/tr/v4/api/interfaces/serneventsmapping/index.html @@ -75,4 +75,4 @@

    warning

    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 ffca9cb34..254666aa0 100644 --- a/tr/v4/api/interfaces/sernsubcommanddata/index.html +++ b/tr/v4/api/interfaces/sernsubcommanddata/index.html @@ -105,4 +105,4 @@

    type

    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 9331353fa..1ccd4bd9b 100644 --- a/tr/v4/api/interfaces/sernsubcommandgroupdata/index.html +++ b/tr/v4/api/interfaces/sernsubcommandgroupdata/index.html @@ -112,4 +112,4 @@

    type

    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 d402e0448..792c87ac3 100644 --- a/tr/v4/api/interfaces/slashcommand/index.html +++ b/tr/v4/api/interfaces/slashcommand/index.html @@ -136,4 +136,4 @@

    type

    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 154bd7abb..e4d6f37e5 100644 --- a/tr/v4/api/interfaces/stringselectcommand/index.html +++ b/tr/v4/api/interfaces/stringselectcommand/index.html @@ -129,4 +129,4 @@

    type

    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 c452ca06c..9964d0c2b 100644 --- a/tr/v4/api/interfaces/textcommand/index.html +++ b/tr/v4/api/interfaces/textcommand/index.html @@ -129,4 +129,4 @@

    type

    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 793e1da70..bb91fa64f 100644 --- a/tr/v4/api/interfaces/userselectcommand/index.html +++ b/tr/v4/api/interfaces/userselectcommand/index.html @@ -129,4 +129,4 @@

    type

    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 e83214ac0..ee0d07737 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 @@

    Since

    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 601371b4b..021f3a45f 100644 --- a/tr/v4/api/readme/index.html +++ b/tr/v4/api/readme/index.html @@ -125,4 +125,4 @@

    Functions

  • 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 7b3077b33..d2f24154a 100644 --- a/tr/v4/api/type-aliases/anyplugin/index.html +++ b/tr/v4/api/type-aliases/anyplugin/index.html @@ -45,4 +45,4 @@

    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 b75f442b0..37a4f063a 100644 --- a/tr/v4/api/type-aliases/commandmodule/index.html +++ b/tr/v4/api/type-aliases/commandmodule/index.html @@ -45,4 +45,4 @@

    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 28b5ad36d..85e3dcbf0 100644 --- a/tr/v4/api/type-aliases/controller/index.html +++ b/tr/v4/api/type-aliases/controller/index.html @@ -45,4 +45,4 @@

    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 d6d69962e..84e839785 100644 --- a/tr/v4/api/type-aliases/eventmodule/index.html +++ b/tr/v4/api/type-aliases/eventmodule/index.html @@ -45,4 +45,4 @@

    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 f8deca4b6..42ac4d7c0 100644 --- a/tr/v4/api/type-aliases/logpayload/index.html +++ b/tr/v4/api/type-aliases/logpayload/index.html @@ -52,4 +52,4 @@

    message

    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 829e1fbb3..ac6df859a 100644 --- a/tr/v4/api/type-aliases/payload/index.html +++ b/tr/v4/api/type-aliases/payload/index.html @@ -45,4 +45,4 @@

    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 98ab2d0b8..e87bdd2fd 100644 --- a/tr/v4/api/type-aliases/pluginresult/index.html +++ b/tr/v4/api/type-aliases/pluginresult/index.html @@ -45,4 +45,4 @@

    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 a4ee57e56..21d94a5a0 100644 --- a/tr/v4/api/type-aliases/sdt/index.html +++ b/tr/v4/api/type-aliases/sdt/index.html @@ -62,4 +62,4 @@

    type

    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 3546a1b62..d252bbe03 100644 --- a/tr/v4/api/type-aliases/sernoptionsdata/index.html +++ b/tr/v4/api/type-aliases/sernoptionsdata/index.html @@ -46,4 +46,4 @@

    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 16c6db8c5..1ef279c24 100644 --- a/tr/v4/api/variables/controller/index.html +++ b/tr/v4/api/variables/controller/index.html @@ -65,4 +65,4 @@

    Parameters

    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 f713e9b5b..71f79f103 100644 --- a/tr/v4/api/variables/presence/index.html +++ b/tr/v4/api/variables/presence/index.html @@ -115,4 +115,4 @@
    status?

    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 ce5a3bef6..d4f9253fa 100644 --- a/tr/v4/cli/about/index.html +++ b/tr/v4/cli/about/index.html @@ -50,4 +50,4 @@
    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 94232876e..7f937d5cc 100644 --- a/tr/v4/cli/build/index.html +++ b/tr/v4/cli/build/index.html @@ -113,4 +113,4 @@

    Constants

    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 9cff4a9cc..75f02e757 100644 --- a/tr/v4/cli/clear/index.html +++ b/tr/v4/cli/clear/index.html @@ -55,4 +55,4 @@

    Notes

    \ 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 622d2634b..80fd2e031 100644 --- a/tr/v4/cli/extra/index.html +++ b/tr/v4/cli/extra/index.html @@ -48,4 +48,4 @@

    Introduction

    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 11097249a..e9d922b09 100644 --- a/tr/v4/cli/publish/index.html +++ b/tr/v4/cli/publish/index.html @@ -91,4 +91,4 @@

    Command

    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 2f6ab52a8..ddad5b473 100644 --- a/tr/v4/reference/autocomplete/index.html +++ b/tr/v4/reference/autocomplete/index.html @@ -51,4 +51,4 @@

    Using Focus

    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 00a170f68..84672f12d 100644 --- a/tr/v4/reference/conclusion/index.html +++ b/tr/v4/reference/conclusion/index.html @@ -44,4 +44,4 @@

    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 501626b5a..269820468 100644 --- a/tr/v4/reference/config/index.html +++ b/tr/v4/reference/config/index.html @@ -65,4 +65,4 @@

    defaultPrefix

    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 97f7469aa..de705a8aa 100644 --- a/tr/v4/reference/dependencies/index.html +++ b/tr/v4/reference/dependencies/index.html @@ -115,4 +115,4 @@

    When to use Dependency injection

    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 fea5d9031..3d6c17ee5 100644 --- a/tr/v4/reference/getting-started/index.html +++ b/tr/v4/reference/getting-started/index.html @@ -44,4 +44,4 @@

    Getting Started

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

    Terminal window
    npm create @sern/bot

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

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

    -
    \ No newline at end of file + \ No newline at end of file diff --git a/tr/v4/reference/modules/index.html b/tr/v4/reference/modules/index.html index e7506ea5a..7c8e2a2bb 100644 --- a/tr/v4/reference/modules/index.html +++ b/tr/v4/reference/modules/index.html @@ -84,4 +84,4 @@

    Event Modules

    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 5ea7f4100..c8ba399f3 100644 --- a/tr/v4/reference/plugins/index.html +++ b/tr/v4/reference/plugins/index.html @@ -108,4 +108,4 @@

    Dependencies

    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 436a1aa00..9171f5b1f 100644 --- a/tr/v4/reference/presence/index.html +++ b/tr/v4/reference/presence/index.html @@ -57,4 +57,4 @@

    Repeated

    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 7d4a50a98..9d6c1a60b 100644 --- a/tr/v4/reference/project-layout/index.html +++ b/tr/v4/reference/project-layout/index.html @@ -44,4 +44,4 @@

    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 0923095f5..8204cb033 100644 --- a/tr/v4/reference/tasks/index.html +++ b/tr/v4/reference/tasks/index.html @@ -49,4 +49,4 @@
    3
    export default scheduledTask({
    4
    trigger: "* * * * *",
    5
    execute: (context) => {
    6
    console.log("cron cron")
    7
    }
    8
    })

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

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

    \ No newline at end of file diff --git a/tr/v4/snippets/command/index.html b/tr/v4/snippets/command/index.html index dc71468c9..2c894f2d5 100644 --- a/tr/v4/snippets/command/index.html +++ b/tr/v4/snippets/command/index.html @@ -42,4 +42,4 @@

    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 90bc7e98b..eeb22352b 100644 --- a/tr/v4/snippets/event/index.html +++ b/tr/v4/snippets/event/index.html @@ -43,4 +43,4 @@ 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 ed0aeb3b0..752cf53a7 100644 --- a/tr/v4/snippets/plugin/index.html +++ b/tr/v4/snippets/plugin/index.html @@ -42,4 +42,4 @@

    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 ceecc8ede..a77d8b4f6 100644 --- a/tr/v4/snippets/presence/index.html +++ b/tr/v4/snippets/presence/index.html @@ -43,4 +43,4 @@ 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 3723f18e9..182cedd2f 100644 --- a/tr/v4/tools/localizer/index.html +++ b/tr/v4/tools/localizer/index.html @@ -58,4 +58,4 @@

    Usage

    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 75a2a3c70..8aa96ab1d 100644 --- a/tr/v4/tools/publisher/index.html +++ b/tr/v4/tools/publisher/index.html @@ -112,4 +112,4 @@

    Explanation of each property
  • Also able to use IntegrationContextType enum from @sern/publisher if you don’t want to use numbers.
  • - \ No newline at end of file + \ No newline at end of file diff --git a/tr/v4/transition/from-v3/index.html b/tr/v4/transition/from-v3/index.html index b507d6ce9..4ae5c54f2 100644 --- a/tr/v4/transition/from-v3/index.html +++ b/tr/v4/transition/from-v3/index.html @@ -71,4 +71,4 @@

    Singleton, Transient,

    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 e20ee650f..417ff21ba 100644 --- a/v3/api/classes/context/index.html +++ b/v3/api/classes/context/index.html @@ -230,4 +230,4 @@

    Parameters

    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 d48f1624d..fec24d899 100644 --- a/v3/api/enumerations/commandtype/index.html +++ b/v3/api/enumerations/commandtype/index.html @@ -129,4 +129,4 @@

    UserSelect

    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 66adace9f..da9ad5c73 100644 --- a/v3/api/enumerations/eventtype/index.html +++ b/v3/api/enumerations/eventtype/index.html @@ -68,4 +68,4 @@

    Sern

    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 c4b53c686..22449e079 100644 --- a/v3/api/enumerations/payloadtype/index.html +++ b/v3/api/enumerations/payloadtype/index.html @@ -64,4 +64,4 @@

    Warning

    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 0023403ad..9937f9faa 100644 --- a/v3/api/enumerations/plugintype/index.html +++ b/v3/api/enumerations/plugintype/index.html @@ -59,4 +59,4 @@

    Init

    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 1a6778b9c..abf661548 100644 --- a/v3/api/functions/commandcontrolplugin/index.html +++ b/v3/api/functions/commandcontrolplugin/index.html @@ -53,4 +53,4 @@

    Returns

    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 2a215fae4..ac186fb2e 100644 --- a/v3/api/functions/commandinitplugin/index.html +++ b/v3/api/functions/commandinitplugin/index.html @@ -53,4 +53,4 @@

    Returns

    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 3f0343887..8d29995c1 100644 --- a/v3/api/functions/commandmodule/index.html +++ b/v3/api/functions/commandmodule/index.html @@ -51,4 +51,4 @@

    Returns

    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 eb081476c..1e6f2da8c 100644 --- a/v3/api/functions/discordevent/index.html +++ b/v3/api/functions/discordevent/index.html @@ -57,4 +57,4 @@

    Parameters

    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 876a909ec..36f4c0c86 100644 --- a/v3/api/functions/eventinitplugin/index.html +++ b/v3/api/functions/eventinitplugin/index.html @@ -51,4 +51,4 @@

    Returns

    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 3c9ce44a7..e1ac57b76 100644 --- a/v3/api/functions/eventmodule/index.html +++ b/v3/api/functions/eventmodule/index.html @@ -52,4 +52,4 @@

    Since

    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 da58ab075..d03ffdfee 100644 --- a/v3/api/functions/makedependencies/index.html +++ b/v3/api/functions/makedependencies/index.html @@ -53,4 +53,4 @@

    Returns

    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 25ca4113f..c372817b9 100644 --- a/v3/api/functions/makeplugin/index.html +++ b/v3/api/functions/makeplugin/index.html @@ -52,4 +52,4 @@

    Parameters

    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 ade824b49..2d56476e2 100644 --- a/v3/api/functions/service/index.html +++ b/v3/api/functions/service/index.html @@ -62,4 +62,4 @@

    Example

    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 e6ddcab8a..690fc8b44 100644 --- a/v3/api/functions/services/index.html +++ b/v3/api/functions/services/index.html @@ -57,4 +57,4 @@

    Since

    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 2e4465890..40dee0ba8 100644 --- a/v3/api/functions/single/index.html +++ b/v3/api/functions/single/index.html @@ -52,4 +52,4 @@

    Parameters

    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 2e0159417..6db005dfb 100644 --- a/v3/api/functions/transient/index.html +++ b/v3/api/functions/transient/index.html @@ -55,4 +55,4 @@

    Since

    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 a415af9ac..00d17d88b 100644 --- a/v3/api/interfaces/bothcommand/index.html +++ b/v3/api/interfaces/bothcommand/index.html @@ -136,4 +136,4 @@

    type

    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 d9fc01dee..d910971fd 100644 --- a/v3/api/interfaces/buttoncommand/index.html +++ b/v3/api/interfaces/buttoncommand/index.html @@ -129,4 +129,4 @@

    type

    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 b2ff3c5f7..407a530ff 100644 --- a/v3/api/interfaces/channelselectcommand/index.html +++ b/v3/api/interfaces/channelselectcommand/index.html @@ -129,4 +129,4 @@

    type

    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 02333c817..14cf15cf0 100644 --- a/v3/api/interfaces/commandmoduledefs/index.html +++ b/v3/api/interfaces/commandmoduledefs/index.html @@ -124,4 +124,4 @@

    8

    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 014ee17b3..bba855ca2 100644 --- a/v3/api/interfaces/contextmenumsg/index.html +++ b/v3/api/interfaces/contextmenumsg/index.html @@ -129,4 +129,4 @@

    type

    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 555a645c8..08d2888d7 100644 --- a/v3/api/interfaces/contextmenuuser/index.html +++ b/v3/api/interfaces/contextmenuuser/index.html @@ -129,4 +129,4 @@

    type

    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 665ee5ac6..de8117940 100644 --- a/v3/api/interfaces/controlplugin/index.html +++ b/v3/api/interfaces/controlplugin/index.html @@ -68,4 +68,4 @@

    type

    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 9891edb5b..7f7ef2e27 100644 --- a/v3/api/interfaces/coredependencies/index.html +++ b/v3/api/interfaces/coredependencies/index.html @@ -90,4 +90,4 @@

    @sern/scheduler

    @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 01f205b09..53e21d9ad 100644 --- a/v3/api/interfaces/discordeventcommand/index.html +++ b/v3/api/interfaces/discordeventcommand/index.html @@ -130,4 +130,4 @@

    Returns

    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 f26f3068f..2cc709580 100644 --- a/v3/api/interfaces/disposable/index.html +++ b/v3/api/interfaces/disposable/index.html @@ -51,4 +51,4 @@

    dispose()

    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 912859f03..96ae79193 100644 --- a/v3/api/interfaces/emitter/index.html +++ b/v3/api/interfaces/emitter/index.html @@ -76,4 +76,4 @@

    Parameters

    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 34e52ffee..3b23aa66d 100644 --- a/v3/api/interfaces/errorhandling/index.html +++ b/v3/api/interfaces/errorhandling/index.html @@ -66,4 +66,4 @@

    Parameters

    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 87852fa84..440b4fdb8 100644 --- a/v3/api/interfaces/eventmoduledefs/index.html +++ b/v3/api/interfaces/eventmoduledefs/index.html @@ -61,4 +61,4 @@

    2

    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 77a342bca..97b9a888e 100644 --- a/v3/api/interfaces/externaleventcommand/index.html +++ b/v3/api/interfaces/externaleventcommand/index.html @@ -135,4 +135,4 @@

    Returns

    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 6ec39f294..3a8042f7c 100644 --- a/v3/api/interfaces/init/index.html +++ b/v3/api/interfaces/init/index.html @@ -51,4 +51,4 @@

    init()

    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 70cc8c280..95343ccd4 100644 --- a/v3/api/interfaces/initplugin/index.html +++ b/v3/api/interfaces/initplugin/index.html @@ -68,4 +68,4 @@

    type

    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 fd3447f66..1e59ed09d 100644 --- a/v3/api/interfaces/logging/index.html +++ b/v3/api/interfaces/logging/index.html @@ -88,4 +88,4 @@

    Parameters

    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 2363f9e37..6baf945f4 100644 --- a/v3/api/interfaces/mentionableselectcommand/index.html +++ b/v3/api/interfaces/mentionableselectcommand/index.html @@ -129,4 +129,4 @@

    type

    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 7ff773607..2e236f3ff 100644 --- a/v3/api/interfaces/modalsubmitcommand/index.html +++ b/v3/api/interfaces/modalsubmitcommand/index.html @@ -129,4 +129,4 @@

    type

    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 b7ae5641c..790d01a5d 100644 --- a/v3/api/interfaces/plugin/index.html +++ b/v3/api/interfaces/plugin/index.html @@ -65,4 +65,4 @@

    type

    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 8269db359..52f4a808d 100644 --- a/v3/api/interfaces/roleselectcommand/index.html +++ b/v3/api/interfaces/roleselectcommand/index.html @@ -129,4 +129,4 @@

    type

    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 976a1f0ff..77fbddc6f 100644 --- a/v3/api/interfaces/sernautocompletedata/index.html +++ b/v3/api/interfaces/sernautocompletedata/index.html @@ -110,4 +110,4 @@

    type

    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 a27366d93..45401e441 100644 --- a/v3/api/interfaces/serneventcommand/index.html +++ b/v3/api/interfaces/serneventcommand/index.html @@ -130,4 +130,4 @@

    Returns

    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 e0aebd786..94eaa108c 100644 --- a/v3/api/interfaces/serneventsmapping/index.html +++ b/v3/api/interfaces/serneventsmapping/index.html @@ -75,4 +75,4 @@

    warning

    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 7cdd7e4e4..3236f50cd 100644 --- a/v3/api/interfaces/sernsubcommanddata/index.html +++ b/v3/api/interfaces/sernsubcommanddata/index.html @@ -105,4 +105,4 @@

    type

    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 aab50e697..0bc6a9892 100644 --- a/v3/api/interfaces/sernsubcommandgroupdata/index.html +++ b/v3/api/interfaces/sernsubcommandgroupdata/index.html @@ -112,4 +112,4 @@

    type

    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 e607f9c2c..634819a17 100644 --- a/v3/api/interfaces/slashcommand/index.html +++ b/v3/api/interfaces/slashcommand/index.html @@ -136,4 +136,4 @@

    type

    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 03f106798..d0ffb1206 100644 --- a/v3/api/interfaces/stringselectcommand/index.html +++ b/v3/api/interfaces/stringselectcommand/index.html @@ -129,4 +129,4 @@

    type

    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 2829ec79e..b225fd22e 100644 --- a/v3/api/interfaces/textcommand/index.html +++ b/v3/api/interfaces/textcommand/index.html @@ -129,4 +129,4 @@

    type

    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 68752aace..c011a1242 100644 --- a/v3/api/interfaces/userselectcommand/index.html +++ b/v3/api/interfaces/userselectcommand/index.html @@ -129,4 +129,4 @@

    type

    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 39c171b68..0a9c22d2c 100644 --- a/v3/api/namespaces/presence/interfaces/result/index.html +++ b/v3/api/namespaces/presence/interfaces/result/index.html @@ -86,4 +86,4 @@

    status?

    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 b6b6fa2e8..9d425f727 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 @@

    inject?

    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 01cd02a62..ba8c64bcc 100644 --- a/v3/api/namespaces/sern/functions/init/index.html +++ b/v3/api/namespaces/sern/functions/init/index.html @@ -55,4 +55,4 @@

    Since

    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 9730eefe8..8734817e5 100644 --- a/v3/api/readme/index.html +++ b/v3/api/readme/index.html @@ -125,4 +125,4 @@

    Functions

  • 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 7a6bda176..005747084 100644 --- a/v3/api/type-aliases/commandmodule/index.html +++ b/v3/api/type-aliases/commandmodule/index.html @@ -45,4 +45,4 @@

    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 32a525f46..21915fce8 100644 --- a/v3/api/type-aliases/eventmodule/index.html +++ b/v3/api/type-aliases/eventmodule/index.html @@ -45,4 +45,4 @@

    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 11a2d3b59..624082b22 100644 --- a/v3/api/type-aliases/logpayload/index.html +++ b/v3/api/type-aliases/logpayload/index.html @@ -52,4 +52,4 @@

    message

    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 05f34a964..b88e7374e 100644 --- a/v3/api/type-aliases/payload/index.html +++ b/v3/api/type-aliases/payload/index.html @@ -45,4 +45,4 @@

    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 813f1d664..210ec109e 100644 --- a/v3/api/type-aliases/pluginresult/index.html +++ b/v3/api/type-aliases/pluginresult/index.html @@ -45,4 +45,4 @@

    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 9ab6fd8a0..b49c6c05d 100644 --- a/v3/api/type-aliases/sernoptionsdata/index.html +++ b/v3/api/type-aliases/sernoptionsdata/index.html @@ -46,4 +46,4 @@

    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 629820433..9caaeeb2d 100644 --- a/v3/api/variables/controller/index.html +++ b/v3/api/variables/controller/index.html @@ -65,4 +65,4 @@

    Parameters

    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 d62566fe0..b806c4d8b 100644 --- a/v3/cli/about/index.html +++ b/v3/cli/about/index.html @@ -50,4 +50,4 @@
    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 79db7e7ab..6e40b0e59 100644 --- a/v3/cli/build/index.html +++ b/v3/cli/build/index.html @@ -113,4 +113,4 @@

    Constants

    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 59bbfb22a..e9ad42f9c 100644 --- a/v3/cli/clear/index.html +++ b/v3/cli/clear/index.html @@ -55,4 +55,4 @@

    Notes

    \ 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 458f42693..f37cce3ad 100644 --- a/v3/cli/extra/index.html +++ b/v3/cli/extra/index.html @@ -48,4 +48,4 @@

    Introduction

    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 15ff13d28..923a560aa 100644 --- a/v3/cli/publish/index.html +++ b/v3/cli/publish/index.html @@ -88,4 +88,4 @@

    Command

    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 baf120d94..c8c3b5fca 100644 --- a/v3/guide/getting-started/choose-ide/index.html +++ b/v3/guide/getting-started/choose-ide/index.html @@ -51,4 +51,4 @@
  • 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 83e984bb8..fd0ff49a3 100644 --- a/v3/guide/getting-started/preparing/index.html +++ b/v3/guide/getting-started/preparing/index.html @@ -44,4 +44,4 @@

    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 e6b3b14d8..8b6ae9283 100644 --- a/v3/guide/walkthrough/autocomplete/index.html +++ b/v3/guide/walkthrough/autocomplete/index.html @@ -51,4 +51,4 @@

    Using Focus

    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 dec01a6da..cae5e044e 100644 --- a/v3/guide/walkthrough/cli/index.html +++ b/v3/guide/walkthrough/cli/index.html @@ -56,4 +56,4 @@

    Adding Plugins

    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 729e2dbab..44de8b822 100644 --- a/v3/guide/walkthrough/conclusion/index.html +++ b/v3/guide/walkthrough/conclusion/index.html @@ -44,4 +44,4 @@

    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 7460cbaf9..816ec0fcb 100644 --- a/v3/guide/walkthrough/dependency-injection/index.html +++ b/v3/guide/walkthrough/dependency-injection/index.html @@ -87,4 +87,4 @@

    Init

  • 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 8a54e8af5..6d44cbcf8 100644 --- a/v3/guide/walkthrough/first-command/index.html +++ b/v3/guide/walkthrough/first-command/index.html @@ -71,4 +71,4 @@

    Context Class

  • 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 25d3b412b..254f699c9 100644 --- a/v3/guide/walkthrough/first-event/index.html +++ b/v3/guide/walkthrough/first-event/index.html @@ -53,4 +53,4 @@

    External Events

    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 78e3fb5ed..d5f9193ec 100644 --- a/v3/guide/walkthrough/goal/index.html +++ b/v3/guide/walkthrough/goal/index.html @@ -54,4 +54,4 @@

    Why sern?

    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 bc24d6ac2..3f2b347fa 100644 --- a/v3/guide/walkthrough/good-to-know/index.html +++ b/v3/guide/walkthrough/good-to-know/index.html @@ -46,4 +46,4 @@

    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 e5d333181..8c067b4f6 100644 --- a/v3/guide/walkthrough/new-project/index.html +++ b/v3/guide/walkthrough/new-project/index.html @@ -43,4 +43,4 @@ 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 2accabbf0..405813c8d 100644 --- a/v3/guide/walkthrough/plugins/index.html +++ b/v3/guide/walkthrough/plugins/index.html @@ -81,4 +81,4 @@

    Can you predict the behavi
  • 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 b26cfc5c6..cd7c1f744 100644 --- a/v3/guide/walkthrough/sern-emitter/index.html +++ b/v3/guide/walkthrough/sern-emitter/index.html @@ -51,4 +51,4 @@
  • 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 db127fc1d..9143c3ccb 100644 --- a/v3/guide/walkthrough/services/index.html +++ b/v3/guide/walkthrough/services/index.html @@ -83,4 +83,4 @@

    \ 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 7b14dfc15..067070251 100644 --- a/v3/guide/walkthrough/transition/index.html +++ b/v3/guide/walkthrough/transition/index.html @@ -47,4 +47,4 @@

    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 d98adbbb9..740bbbeea 100644 --- a/v4/api/classes/context/index.html +++ b/v4/api/classes/context/index.html @@ -230,4 +230,4 @@

    Parameters

    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 fdb8da4ed..11583a9f1 100644 --- a/v4/api/enumerations/commandtype/index.html +++ b/v4/api/enumerations/commandtype/index.html @@ -129,4 +129,4 @@

    UserSelect

    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 f22637fb1..f230f201f 100644 --- a/v4/api/enumerations/eventtype/index.html +++ b/v4/api/enumerations/eventtype/index.html @@ -68,4 +68,4 @@

    Sern

    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 8708dce67..08085724c 100644 --- a/v4/api/enumerations/payloadtype/index.html +++ b/v4/api/enumerations/payloadtype/index.html @@ -64,4 +64,4 @@

    Warning

    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 cff77c2a1..a72e2b01f 100644 --- a/v4/api/enumerations/plugintype/index.html +++ b/v4/api/enumerations/plugintype/index.html @@ -59,4 +59,4 @@

    Init

    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 8f45babc7..922ade53b 100644 --- a/v4/api/functions/commandcontrolplugin/index.html +++ b/v4/api/functions/commandcontrolplugin/index.html @@ -53,4 +53,4 @@

    Returns

    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 25e44d142..e1b7e088d 100644 --- a/v4/api/functions/commandinitplugin/index.html +++ b/v4/api/functions/commandinitplugin/index.html @@ -53,4 +53,4 @@

    Returns

    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 8fbf43fc5..04fa786e7 100644 --- a/v4/api/functions/commandmodule/index.html +++ b/v4/api/functions/commandmodule/index.html @@ -51,4 +51,4 @@

    Returns

    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 d96876994..2287932bd 100644 --- a/v4/api/functions/discordevent/index.html +++ b/v4/api/functions/discordevent/index.html @@ -57,4 +57,4 @@

    Parameters

    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 a454276e4..4be3b1b3f 100644 --- a/v4/api/functions/eventinitplugin/index.html +++ b/v4/api/functions/eventinitplugin/index.html @@ -51,4 +51,4 @@

    Returns

    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 d84ab2e00..ab764ba01 100644 --- a/v4/api/functions/eventmodule/index.html +++ b/v4/api/functions/eventmodule/index.html @@ -52,4 +52,4 @@

    Since

    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 ab57888db..90300457b 100644 --- a/v4/api/functions/makedependencies/index.html +++ b/v4/api/functions/makedependencies/index.html @@ -53,4 +53,4 @@

    Returns

    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 4e5ffc32b..3c82d0324 100644 --- a/v4/api/functions/makeplugin/index.html +++ b/v4/api/functions/makeplugin/index.html @@ -52,4 +52,4 @@

    Parameters

    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 16c48e32d..47bf6b555 100644 --- a/v4/api/functions/service/index.html +++ b/v4/api/functions/service/index.html @@ -62,4 +62,4 @@

    Example

    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 707603e0b..416f3b805 100644 --- a/v4/api/functions/services/index.html +++ b/v4/api/functions/services/index.html @@ -57,4 +57,4 @@

    Since

    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 cf963c689..d184e8442 100644 --- a/v4/api/functions/single/index.html +++ b/v4/api/functions/single/index.html @@ -52,4 +52,4 @@

    Parameters

    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 152c6e65e..7cbe76516 100644 --- a/v4/api/functions/transient/index.html +++ b/v4/api/functions/transient/index.html @@ -55,4 +55,4 @@

    Since

    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 800e7c599..0f02a783d 100644 --- a/v4/api/interfaces/bothcommand/index.html +++ b/v4/api/interfaces/bothcommand/index.html @@ -136,4 +136,4 @@

    type

    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 abfc1d4bd..2ab27338d 100644 --- a/v4/api/interfaces/buttoncommand/index.html +++ b/v4/api/interfaces/buttoncommand/index.html @@ -129,4 +129,4 @@

    type

    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 7e0a2b363..acc1d903c 100644 --- a/v4/api/interfaces/channelselectcommand/index.html +++ b/v4/api/interfaces/channelselectcommand/index.html @@ -129,4 +129,4 @@

    type

    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 8300a3414..c8e3ba4b2 100644 --- a/v4/api/interfaces/commandmoduledefs/index.html +++ b/v4/api/interfaces/commandmoduledefs/index.html @@ -124,4 +124,4 @@

    8

    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 7f91492d6..d146dfd64 100644 --- a/v4/api/interfaces/contextmenumsg/index.html +++ b/v4/api/interfaces/contextmenumsg/index.html @@ -129,4 +129,4 @@

    type

    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 b053b150f..c76133437 100644 --- a/v4/api/interfaces/contextmenuuser/index.html +++ b/v4/api/interfaces/contextmenuuser/index.html @@ -129,4 +129,4 @@

    type

    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 adcaac5c9..16f7a8f9d 100644 --- a/v4/api/interfaces/controlplugin/index.html +++ b/v4/api/interfaces/controlplugin/index.html @@ -68,4 +68,4 @@

    type

    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 0c269eecc..f83e88b0c 100644 --- a/v4/api/interfaces/coredependencies/index.html +++ b/v4/api/interfaces/coredependencies/index.html @@ -90,4 +90,4 @@

    @sern/scheduler

    @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 f8bc7cb2e..5fd64f992 100644 --- a/v4/api/interfaces/discordeventcommand/index.html +++ b/v4/api/interfaces/discordeventcommand/index.html @@ -130,4 +130,4 @@

    Returns

    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 d9085d7a3..be71bfa6e 100644 --- a/v4/api/interfaces/disposable/index.html +++ b/v4/api/interfaces/disposable/index.html @@ -51,4 +51,4 @@

    dispose()

    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 6ad441dfb..c209a36bb 100644 --- a/v4/api/interfaces/emitter/index.html +++ b/v4/api/interfaces/emitter/index.html @@ -76,4 +76,4 @@

    Parameters

    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 d1188044b..7165ed4b7 100644 --- a/v4/api/interfaces/errorhandling/index.html +++ b/v4/api/interfaces/errorhandling/index.html @@ -66,4 +66,4 @@

    Parameters

    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 24452dbb8..b7dbfaaa8 100644 --- a/v4/api/interfaces/eventmoduledefs/index.html +++ b/v4/api/interfaces/eventmoduledefs/index.html @@ -61,4 +61,4 @@

    2

    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 980f1a7a7..7dd25e32a 100644 --- a/v4/api/interfaces/externaleventcommand/index.html +++ b/v4/api/interfaces/externaleventcommand/index.html @@ -135,4 +135,4 @@

    Returns

    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 1509c21e6..9ac078655 100644 --- a/v4/api/interfaces/init/index.html +++ b/v4/api/interfaces/init/index.html @@ -51,4 +51,4 @@

    init()

    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 f2c26bf20..ee8640127 100644 --- a/v4/api/interfaces/initplugin/index.html +++ b/v4/api/interfaces/initplugin/index.html @@ -68,4 +68,4 @@

    type

    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 ea88700ee..4f5615840 100644 --- a/v4/api/interfaces/logging/index.html +++ b/v4/api/interfaces/logging/index.html @@ -88,4 +88,4 @@

    Parameters

    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 d7c07b4b0..60207505e 100644 --- a/v4/api/interfaces/mentionableselectcommand/index.html +++ b/v4/api/interfaces/mentionableselectcommand/index.html @@ -129,4 +129,4 @@

    type

    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 110b275ad..dc204ad9b 100644 --- a/v4/api/interfaces/modalsubmitcommand/index.html +++ b/v4/api/interfaces/modalsubmitcommand/index.html @@ -129,4 +129,4 @@

    type

    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 3e009ca16..f13e4443d 100644 --- a/v4/api/interfaces/module/index.html +++ b/v4/api/interfaces/module/index.html @@ -126,4 +126,4 @@

    Parameters

    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 a03698215..604668e68 100644 --- a/v4/api/interfaces/plugin/index.html +++ b/v4/api/interfaces/plugin/index.html @@ -65,4 +65,4 @@

    type

    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 de8e8d74b..d3d7c5fcb 100644 --- a/v4/api/interfaces/roleselectcommand/index.html +++ b/v4/api/interfaces/roleselectcommand/index.html @@ -129,4 +129,4 @@

    type

    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 a0e0c715f..6a2cbdf59 100644 --- a/v4/api/interfaces/sernautocompletedata/index.html +++ b/v4/api/interfaces/sernautocompletedata/index.html @@ -110,4 +110,4 @@

    type

    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 af6c8d5a3..2c2678d26 100644 --- a/v4/api/interfaces/serneventcommand/index.html +++ b/v4/api/interfaces/serneventcommand/index.html @@ -130,4 +130,4 @@

    Returns

    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 f56fae0d1..c968bf885 100644 --- a/v4/api/interfaces/serneventsmapping/index.html +++ b/v4/api/interfaces/serneventsmapping/index.html @@ -75,4 +75,4 @@

    warning

    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 44aa65497..5ddbb39de 100644 --- a/v4/api/interfaces/sernsubcommanddata/index.html +++ b/v4/api/interfaces/sernsubcommanddata/index.html @@ -105,4 +105,4 @@

    type

    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 fed124a8d..525490734 100644 --- a/v4/api/interfaces/sernsubcommandgroupdata/index.html +++ b/v4/api/interfaces/sernsubcommandgroupdata/index.html @@ -112,4 +112,4 @@

    type

    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 d696f74e4..8fff5ecda 100644 --- a/v4/api/interfaces/slashcommand/index.html +++ b/v4/api/interfaces/slashcommand/index.html @@ -136,4 +136,4 @@

    type

    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 c2e5d0a5b..80f5f44ed 100644 --- a/v4/api/interfaces/stringselectcommand/index.html +++ b/v4/api/interfaces/stringselectcommand/index.html @@ -129,4 +129,4 @@

    type

    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 8f5216c46..a73a40553 100644 --- a/v4/api/interfaces/textcommand/index.html +++ b/v4/api/interfaces/textcommand/index.html @@ -129,4 +129,4 @@

    type

    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 d5dbb5fec..8c41c4257 100644 --- a/v4/api/interfaces/userselectcommand/index.html +++ b/v4/api/interfaces/userselectcommand/index.html @@ -129,4 +129,4 @@

    type

    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 3fe33762b..0cceec8d5 100644 --- a/v4/api/namespaces/sern/functions/init/index.html +++ b/v4/api/namespaces/sern/functions/init/index.html @@ -55,4 +55,4 @@

    Since

    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 5985a2aae..d84b01804 100644 --- a/v4/api/readme/index.html +++ b/v4/api/readme/index.html @@ -125,4 +125,4 @@

    Functions

  • 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 303056b31..a47e3422f 100644 --- a/v4/api/type-aliases/anyplugin/index.html +++ b/v4/api/type-aliases/anyplugin/index.html @@ -45,4 +45,4 @@

    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 eb7560f1b..9b4224d80 100644 --- a/v4/api/type-aliases/commandmodule/index.html +++ b/v4/api/type-aliases/commandmodule/index.html @@ -45,4 +45,4 @@

    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 5a8be94ec..c0f65a276 100644 --- a/v4/api/type-aliases/controller/index.html +++ b/v4/api/type-aliases/controller/index.html @@ -45,4 +45,4 @@

    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 c65d19177..bdb26d0bb 100644 --- a/v4/api/type-aliases/eventmodule/index.html +++ b/v4/api/type-aliases/eventmodule/index.html @@ -45,4 +45,4 @@

    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 6b683a8aa..d562097ab 100644 --- a/v4/api/type-aliases/logpayload/index.html +++ b/v4/api/type-aliases/logpayload/index.html @@ -52,4 +52,4 @@

    message

    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 20c53d7b8..8dd5a0e71 100644 --- a/v4/api/type-aliases/payload/index.html +++ b/v4/api/type-aliases/payload/index.html @@ -45,4 +45,4 @@

    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 5ad58e3a3..5865c9d73 100644 --- a/v4/api/type-aliases/pluginresult/index.html +++ b/v4/api/type-aliases/pluginresult/index.html @@ -45,4 +45,4 @@

    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 f4672a297..653e4d047 100644 --- a/v4/api/type-aliases/sdt/index.html +++ b/v4/api/type-aliases/sdt/index.html @@ -62,4 +62,4 @@

    type

    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 9fb48da56..df7d72ad3 100644 --- a/v4/api/type-aliases/sernoptionsdata/index.html +++ b/v4/api/type-aliases/sernoptionsdata/index.html @@ -46,4 +46,4 @@

    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 91a0e42f7..01e809b63 100644 --- a/v4/api/variables/controller/index.html +++ b/v4/api/variables/controller/index.html @@ -65,4 +65,4 @@

    Parameters

    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 35fadf31b..082a0767d 100644 --- a/v4/api/variables/presence/index.html +++ b/v4/api/variables/presence/index.html @@ -115,4 +115,4 @@
    status?

    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 b2e39823e..f022929b0 100644 --- a/v4/cli/about/index.html +++ b/v4/cli/about/index.html @@ -50,4 +50,4 @@
    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 d18520e4d..e1cbc1062 100644 --- a/v4/cli/build/index.html +++ b/v4/cli/build/index.html @@ -113,4 +113,4 @@

    Constants

    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 aafd77814..3cdea35ba 100644 --- a/v4/cli/clear/index.html +++ b/v4/cli/clear/index.html @@ -55,4 +55,4 @@

    Notes

    \ 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 6f3f6922b..07ebdf979 100644 --- a/v4/cli/extra/index.html +++ b/v4/cli/extra/index.html @@ -48,4 +48,4 @@

    Introduction

    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 1d08f2d06..1e476a248 100644 --- a/v4/cli/publish/index.html +++ b/v4/cli/publish/index.html @@ -91,4 +91,4 @@

    Command

    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 16e0e81e0..b5bb2d965 100644 --- a/v4/reference/autocomplete/index.html +++ b/v4/reference/autocomplete/index.html @@ -51,4 +51,4 @@

    Using Focus

    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 5b4da0d91..a4842b5bd 100644 --- a/v4/reference/conclusion/index.html +++ b/v4/reference/conclusion/index.html @@ -44,4 +44,4 @@

    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 1279cf95d..030d28760 100644 --- a/v4/reference/config/index.html +++ b/v4/reference/config/index.html @@ -65,4 +65,4 @@

    defaultPrefix

    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 f065c45ee..e2e373b21 100644 --- a/v4/reference/dependencies/index.html +++ b/v4/reference/dependencies/index.html @@ -115,4 +115,4 @@

    When to use Dependency injection

    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 e13bf4cca..165235902 100644 --- a/v4/reference/getting-started/index.html +++ b/v4/reference/getting-started/index.html @@ -44,4 +44,4 @@

    Getting Started

    Terminal window
    npm create @sern/bot

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

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

    -
    \ No newline at end of file + \ No newline at end of file diff --git a/v4/reference/modules/index.html b/v4/reference/modules/index.html index 65cc9a73a..b4919ccc4 100644 --- a/v4/reference/modules/index.html +++ b/v4/reference/modules/index.html @@ -84,4 +84,4 @@

    Event Modules

    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 553e42c8f..e41cc7fda 100644 --- a/v4/reference/plugins/index.html +++ b/v4/reference/plugins/index.html @@ -108,4 +108,4 @@

    Dependencies

    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 4f5499ecd..51680a14e 100644 --- a/v4/reference/presence/index.html +++ b/v4/reference/presence/index.html @@ -57,4 +57,4 @@

    Repeated

    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 0847b1025..a7fff6c4e 100644 --- a/v4/reference/project-layout/index.html +++ b/v4/reference/project-layout/index.html @@ -44,4 +44,4 @@

    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 b16162158..f097cbee7 100644 --- a/v4/reference/tasks/index.html +++ b/v4/reference/tasks/index.html @@ -49,4 +49,4 @@
    3
    export default scheduledTask({
    4
    trigger: "* * * * *",
    5
    execute: (context) => {
    6
    console.log("cron cron")
    7
    }
    8
    })

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

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

    \ No newline at end of file diff --git a/v4/snippets/command/index.html b/v4/snippets/command/index.html index 94c6645a3..1d8b412dc 100644 --- a/v4/snippets/command/index.html +++ b/v4/snippets/command/index.html @@ -42,4 +42,4 @@

    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 af5c9f481..605d90709 100644 --- a/v4/snippets/event/index.html +++ b/v4/snippets/event/index.html @@ -43,4 +43,4 @@ 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 1966fdabc..54985a819 100644 --- a/v4/snippets/plugin/index.html +++ b/v4/snippets/plugin/index.html @@ -42,4 +42,4 @@

    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 e28b3323f..37aa1df9a 100644 --- a/v4/snippets/presence/index.html +++ b/v4/snippets/presence/index.html @@ -43,4 +43,4 @@ 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 8b8ec0c30..1b8c426ef 100644 --- a/v4/tools/localizer/index.html +++ b/v4/tools/localizer/index.html @@ -58,4 +58,4 @@

    Usage

    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 e21608fac..912309130 100644 --- a/v4/tools/publisher/index.html +++ b/v4/tools/publisher/index.html @@ -112,4 +112,4 @@

    Explanation of each property
  • Also able to use IntegrationContextType enum from @sern/publisher if you don’t want to use numbers.
  • - \ No newline at end of file + \ No newline at end of file diff --git a/v4/transition/from-v3/index.html b/v4/transition/from-v3/index.html index 4c417bec7..11e4e3fad 100644 --- a/v4/transition/from-v3/index.html +++ b/v4/transition/from-v3/index.html @@ -71,4 +71,4 @@

    Singleton, Transient,

    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