feat: add shadcn + react and community showcase carousel

This commit is contained in:
DuroCodes
2024-06-11 18:28:11 -04:00
parent 3dc5b74cbe
commit 30137eafaf
83 changed files with 1155 additions and 528 deletions

View File

@@ -6,158 +6,157 @@ import { createStarlightTypeDocPlugin } from "starlight-typedoc";
import lunaria from "@lunariajs/starlight";
import { GITHUB_URL, DISCORD_URL } from "./src/utils/consts";
import starlightLinksValidator from 'starlight-links-validator';
import react from "@astrojs/react";
const [typeDocV3, typeDocV3Sidebar] = createStarlightTypeDocPlugin();
const [typeDocV4, typeDocV4Sidebar] = createStarlightTypeDocPlugin();
// https://astro.build/config
export default defineConfig({
// TODO: Change this whenever site is deployed to `sern.dev`
site: 'https:/deploy-preview-66--sern-docs.netlify.app',
integrations: [
starlight({
title: "sern",
lastUpdated: true,
defaultLocale: "root",
locales: {
root: {
label: "English",
lang: "en",
},
es: {
label: "Español",
},
tr: {
label: "Türkçe",
},
integrations: [starlight({
title: "sern",
lastUpdated: true,
defaultLocale: "root",
locales: {
root: {
label: "English",
lang: "en"
},
social: {
github: GITHUB_URL,
discord: DISCORD_URL,
es: {
label: "Español"
},
editLink: {
baseUrl: GITHUB_URL + "/website/edit/main/",
},
components: {
Head: "~/overrides/Head.astro",
SiteTitle: "~/overrides/SiteTitle.astro",
ThemeSelect: "~/overrides/ThemeSelect.astro",
Sidebar: "~/overrides/Sidebar.astro",
FallbackContentNotice: "~/overrides/FallbackContentNotice.astro",
},
logo: {
src: "~/assets/logo/navbar-icon.png",
replacesTitle: true,
},
customCss: ["~/styles/global.css"],
sidebar: [
{
label: "v3",
items: [
{
...typeDocV3Sidebar,
badge: { text: "Generated" },
},
{
label: "CLI",
autogenerate: { directory: "v3/cli" },
},
{
label: "Guide",
items: [
{
label: "Getting Started",
autogenerate: { directory: "v3/guide/getting-started" },
},
{
label: "Walkthrough",
autogenerate: { directory: "v3/guide/walkthrough" },
},
],
},
],
tr: {
label: "Türkçe"
}
},
social: {
github: GITHUB_URL,
discord: DISCORD_URL
},
editLink: {
baseUrl: GITHUB_URL + "/website/edit/main/"
},
components: {
Head: "~/overrides/Head.astro",
SiteTitle: "~/overrides/SiteTitle.astro",
ThemeSelect: "~/overrides/ThemeSelect.astro",
Sidebar: "~/overrides/Sidebar.astro",
FallbackContentNotice: "~/overrides/FallbackContentNotice.astro"
},
logo: {
src: "~/assets/logo/navbar-icon.png",
replacesTitle: true
},
customCss: ["~/styles/global.css"],
sidebar: [{
label: "v3",
items: [{
...typeDocV3Sidebar,
badge: {
text: "Generated"
}
}, {
label: "CLI",
autogenerate: {
directory: "v3/cli"
}
}, {
label: "Guide",
items: [{
label: "Getting Started",
autogenerate: {
directory: "v3/guide/getting-started"
}
}, {
label: "Walkthrough",
autogenerate: {
directory: "v3/guide/walkthrough"
}
}]
}]
}, {
label: "v4",
items: [{
...typeDocV4Sidebar,
badge: {
text: "Generated"
}
}, {
label: "CLI",
autogenerate: {
directory: "v4/cli"
}
}, {
label: "Reference",
autogenerate: {
directory: "v4/reference"
}
}, {
label: "Snippets",
autogenerate: {
directory: "v4/snippets"
}
}, {
label: "Transition",
autogenerate: {
directory: "v4/transition"
}
}, {
label: "Tools",
autogenerate: {
directory: "v4/tools"
}
}]
}],
plugins: [starlightBlog({
authors: {
jacoobes: {
name: "jacoobes",
title: "Head Dev",
url: "https://github.com/jacoobes",
picture: "https://github.com/jacoobes.png"
},
{
label: "v4",
items: [
{
...typeDocV4Sidebar,
badge: { text: "Generated" },
},
{
label: "CLI",
autogenerate: { directory: "v4/cli" },
},
{
label: "Reference",
autogenerate: { directory: "v4/reference" },
},
{
label: "Snippets",
autogenerate: { directory: "v4/snippets" },
},
{
label: "Transition",
autogenerate: { directory: "v4/transition" },
},
{
label: "Tools",
autogenerate: { directory: "v4/tools" },
},
],
ethan: {
name: "Sr Izan",
title: "Head Dev",
url: "https://github.com/SrIzan10",
picture: "https://github.com/SrIzan10.png"
},
],
plugins: [
starlightBlog({
authors: {
jacoobes: {
name: "jacoobes",
title: "Head Dev",
url: "https://github.com/jacoobes",
picture: "https://github.com/jacoobes.png",
},
ethan: {
name: "Sr Izan",
title: "Head Dev",
url: "https://github.com/SrIzan10",
picture: "https://github.com/SrIzan10.png",
},
sern: {
name: "sern Team",
url: GITHUB_URL,
picture: "https://github.com/sernbot.png",
},
murtatrxx: {
name: "Murtatrxx",
title: "Head Dev",
url: "https://github.com/Murtatrxx",
picture: "https://github.com/Murtatrxx.png",
},
duro: {
name: "Duro",
title: "Developer",
url: "https://github.com/DuroCodes",
picture: "https://github.com/DuroCodes.png",
},
},
}),
typeDocV3({
tsconfig: './sern-handler-v3/tsconfig.json',
entryPoints: ['./sern-handler-v3/src/index.ts'],
output: 'v3/api',
sidebar: { collapsed: true },
}),
typeDocV4({
tsconfig: './sern-handler-v4/tsconfig.json',
entryPoints: ['./sern-handler-v4/src/index.ts'],
output: 'v4/api',
sidebar: { collapsed: true },
}),
lunaria(),
starlightLinksValidator({
exclude: ['/plugins', '?(../../../..?(/../..))/v{3,4}/api/**/*'],
}),
],
}),
tailwind(),
],
sern: {
name: "sern Team",
url: GITHUB_URL,
picture: "https://github.com/sernbot.png"
},
murtatrxx: {
name: "Murtatrxx",
title: "Head Dev",
url: "https://github.com/Murtatrxx",
picture: "https://github.com/Murtatrxx.png"
},
duro: {
name: "Duro",
title: "Developer",
url: "https://github.com/DuroCodes",
picture: "https://github.com/DuroCodes.png"
}
}
}), typeDocV3({
tsconfig: './sern-handler-v3/tsconfig.json',
entryPoints: ['./sern-handler-v3/src/index.ts'],
output: 'v3/api',
sidebar: {
collapsed: true
}
}), typeDocV4({
tsconfig: './sern-handler-v4/tsconfig.json',
entryPoints: ['./sern-handler-v4/src/index.ts'],
output: 'v4/api',
sidebar: {
collapsed: true
}
}), lunaria(), starlightLinksValidator({
exclude: ['/plugins', '?(../../../..?(/../..))/v{3,4}/api/**/*']
})]
}), tailwind(), react()]
});

BIN
bun.lockb

Binary file not shown.

17
components.json Normal file
View File

@@ -0,0 +1,17 @@
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "default",
"rsc": false,
"tsx": true,
"tailwind": {
"config": "tailwind.config.mjs",
"css": "src/styles/global.css",
"baseColor": "neutral",
"cssVariables": false,
"prefix": ""
},
"aliases": {
"components": "~/components",
"utils": "~/utils"
}
}

View File

@@ -14,19 +14,32 @@
},
"dependencies": {
"@astrojs/check": "0.7.0",
"@astrojs/react": "^3.5.0",
"@astrojs/starlight": "0.23.1",
"@astrojs/starlight-tailwind": "2.0.3",
"@astropub/md": "^0.4.0",
"@expressive-code/plugin-line-numbers": "^0.35.3",
"@lunariajs/core": "^0.0.32",
"@lunariajs/starlight": "^0.0.6",
"@radix-ui/react-slot": "^1.0.2",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"astro": "4.9.1",
"astro-og-canvas": "^0.5.0",
"canvaskit-wasm": "^0.39.1",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"embla-carousel-auto-scroll": "^8.1.4",
"embla-carousel-react": "^8.1.4",
"lucide-react": "^0.394.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"sharp": "^0.32.5",
"starlight-blog": "^0.7.1",
"starlight-links-validator": "^0.9.0",
"starlight-typedoc": "0.12.2",
"tailwind-merge": "^2.3.0",
"tailwindcss-animate": "^1.0.7",
"typedoc": "^0.25.13",
"typedoc-plugin-markdown": "next",
"typescript": "^5.4.5"

View File

@@ -0,0 +1,43 @@
import { Link } from "lucide-react";
import type { Bot } from "~/utils/types";
export default ({ bot }: { bot: Bot }) => (
<div className="not-content relative h-full border border-gray-300 p-4 dark:border-gray-700">
<div className="mb-4 flex items-center justify-between">
<img src={bot.pfpLink} alt={bot.name} className="h-8 w-8 rounded-full" />
<h3>{bot.name}</h3>
<div className="flex items-center space-x-2">
{bot.srcLink && (
<a
href={bot.srcLink}
target="_blank"
rel="noopener noreferrer"
className="h-6 w-6 text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200"
>
<svg
role="img"
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
className="fill-current"
>
<path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12" />
</svg>
</a>
)}
{bot.inviteLink && (
<a
href={bot.inviteLink}
target="_blank"
rel="noopener noreferrer"
className="h-6 w-6 text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200"
>
<Link size={"1.5rem"} />
</a>
)}
</div>
</div>
<div>
<p>{bot.description}</p>
</div>
</div>
);

View File

@@ -0,0 +1,35 @@
import AutoScroll from "embla-carousel-auto-scroll";
import {
Carousel,
CarouselContent,
CarouselItem,
} from "~/components/ui/carousel";
import type { Bot } from "~/utils/types";
import BotCard from "./BotCard";
export default ({ bots }: { bots: Bot[] }) => (
<div className="not-content flex justify-center">
<Carousel
opts={{
align: "start",
loop: true,
}}
plugins={[
AutoScroll({
speed: 0.75,
stopOnMouseEnter: true,
stopOnInteraction: false,
}),
]}
className="w-11/12"
>
<CarouselContent className="-ml-4">
{bots.map((bot) => (
<CarouselItem key={bot.id} className="pl-6 md:basis-1/2">
<BotCard bot={bot} />
</CarouselItem>
))}
</CarouselContent>
</Carousel>
</div>
);

View File

@@ -0,0 +1,20 @@
---
import { z } from "astro/zod";
import BotCarousel from "~/components/BotCarousel";
import { BotSchema } from "~/utils/types";
import { zodFetch } from "~/utils/fetch";
const botResponse = await zodFetch(
z.array(BotSchema),
"Failed to fetch community bot data",
"https://frontpage.sern.dev/getBots",
);
if (!botResponse.ok) {
return console.error(botResponse.error);
}
---
<div>
<BotCarousel bots={botResponse.value} client:load />
</div>

View File

@@ -0,0 +1,56 @@
import * as React from "react"
import { Slot } from "@radix-ui/react-slot"
import { cva, type VariantProps } from "class-variance-authority"
import { cn } from "~/utils"
const buttonVariants = cva(
"inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-white transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-neutral-950 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 dark:ring-offset-neutral-950 dark:focus-visible:ring-neutral-300",
{
variants: {
variant: {
default: "bg-neutral-900 text-neutral-50 hover:bg-neutral-900/90 dark:bg-neutral-50 dark:text-neutral-900 dark:hover:bg-neutral-50/90",
destructive:
"bg-red-500 text-neutral-50 hover:bg-red-500/90 dark:bg-red-900 dark:text-neutral-50 dark:hover:bg-red-900/90",
outline:
"border border-neutral-200 bg-white hover:bg-neutral-100 hover:text-neutral-900 dark:border-neutral-800 dark:bg-neutral-950 dark:hover:bg-neutral-800 dark:hover:text-neutral-50",
secondary:
"bg-neutral-100 text-neutral-900 hover:bg-neutral-100/80 dark:bg-neutral-800 dark:text-neutral-50 dark:hover:bg-neutral-800/80",
ghost: "hover:bg-neutral-100 hover:text-neutral-900 dark:hover:bg-neutral-800 dark:hover:text-neutral-50",
link: "text-neutral-900 underline-offset-4 hover:underline dark:text-neutral-50",
},
size: {
default: "h-10 px-4 py-2",
sm: "h-9 rounded-md px-3",
lg: "h-11 rounded-md px-8",
icon: "h-10 w-10",
},
},
defaultVariants: {
variant: "default",
size: "default",
},
}
)
export interface ButtonProps
extends React.ButtonHTMLAttributes<HTMLButtonElement>,
VariantProps<typeof buttonVariants> {
asChild?: boolean
}
const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
({ className, variant, size, asChild = false, ...props }, ref) => {
const Comp = asChild ? Slot : "button"
return (
<Comp
className={cn(buttonVariants({ variant, size, className }))}
ref={ref}
{...props}
/>
)
}
)
Button.displayName = "Button"
export { Button, buttonVariants }

View File

@@ -0,0 +1,260 @@
import * as React from "react"
import useEmblaCarousel, {
type UseEmblaCarouselType,
} from "embla-carousel-react"
import { ArrowLeft, ArrowRight } from "lucide-react"
import { cn } from "~/utils"
import { Button } from "~/components/ui/button"
type CarouselApi = UseEmblaCarouselType[1]
type UseCarouselParameters = Parameters<typeof useEmblaCarousel>
type CarouselOptions = UseCarouselParameters[0]
type CarouselPlugin = UseCarouselParameters[1]
type CarouselProps = {
opts?: CarouselOptions
plugins?: CarouselPlugin
orientation?: "horizontal" | "vertical"
setApi?: (api: CarouselApi) => void
}
type CarouselContextProps = {
carouselRef: ReturnType<typeof useEmblaCarousel>[0]
api: ReturnType<typeof useEmblaCarousel>[1]
scrollPrev: () => void
scrollNext: () => void
canScrollPrev: boolean
canScrollNext: boolean
} & CarouselProps
const CarouselContext = React.createContext<CarouselContextProps | null>(null)
function useCarousel() {
const context = React.useContext(CarouselContext)
if (!context) {
throw new Error("useCarousel must be used within a <Carousel />")
}
return context
}
const Carousel = React.forwardRef<
HTMLDivElement,
React.HTMLAttributes<HTMLDivElement> & CarouselProps
>(
(
{
orientation = "horizontal",
opts,
setApi,
plugins,
className,
children,
...props
},
ref
) => {
const [carouselRef, api] = useEmblaCarousel(
{
...opts,
axis: orientation === "horizontal" ? "x" : "y",
},
plugins
)
const [canScrollPrev, setCanScrollPrev] = React.useState(false)
const [canScrollNext, setCanScrollNext] = React.useState(false)
const onSelect = React.useCallback((api: CarouselApi) => {
if (!api) {
return
}
setCanScrollPrev(api.canScrollPrev())
setCanScrollNext(api.canScrollNext())
}, [])
const scrollPrev = React.useCallback(() => {
api?.scrollPrev()
}, [api])
const scrollNext = React.useCallback(() => {
api?.scrollNext()
}, [api])
const handleKeyDown = React.useCallback(
(event: React.KeyboardEvent<HTMLDivElement>) => {
if (event.key === "ArrowLeft") {
event.preventDefault()
scrollPrev()
} else if (event.key === "ArrowRight") {
event.preventDefault()
scrollNext()
}
},
[scrollPrev, scrollNext]
)
React.useEffect(() => {
if (!api || !setApi) {
return
}
setApi(api)
}, [api, setApi])
React.useEffect(() => {
if (!api) {
return
}
onSelect(api)
api.on("reInit", onSelect)
api.on("select", onSelect)
return () => {
api?.off("select", onSelect)
}
}, [api, onSelect])
return (
<CarouselContext.Provider
value={{
carouselRef,
api: api,
opts,
orientation:
orientation || (opts?.axis === "y" ? "vertical" : "horizontal"),
scrollPrev,
scrollNext,
canScrollPrev,
canScrollNext,
}}
>
<div
ref={ref}
onKeyDownCapture={handleKeyDown}
className={cn("relative", className)}
role="region"
aria-roledescription="carousel"
{...props}
>
{children}
</div>
</CarouselContext.Provider>
)
}
)
Carousel.displayName = "Carousel"
const CarouselContent = React.forwardRef<
HTMLDivElement,
React.HTMLAttributes<HTMLDivElement>
>(({ className, ...props }, ref) => {
const { carouselRef, orientation } = useCarousel()
return (
<div ref={carouselRef} className="overflow-hidden">
<div
ref={ref}
className={cn(
"flex",
orientation === "horizontal" ? "-ml-4" : "-mt-4 flex-col",
className
)}
{...props}
/>
</div>
)
})
CarouselContent.displayName = "CarouselContent"
const CarouselItem = React.forwardRef<
HTMLDivElement,
React.HTMLAttributes<HTMLDivElement>
>(({ className, ...props }, ref) => {
const { orientation } = useCarousel()
return (
<div
ref={ref}
role="group"
aria-roledescription="slide"
className={cn(
"min-w-0 shrink-0 grow-0 basis-full",
orientation === "horizontal" ? "pl-4" : "pt-4",
className
)}
{...props}
/>
)
})
CarouselItem.displayName = "CarouselItem"
const CarouselPrevious = React.forwardRef<
HTMLButtonElement,
React.ComponentProps<typeof Button>
>(({ className, variant = "outline", size = "icon", ...props }, ref) => {
const { orientation, scrollPrev, canScrollPrev } = useCarousel()
return (
<Button
ref={ref}
variant={variant}
size={size}
className={cn(
"absolute h-8 w-8 rounded-full",
orientation === "horizontal"
? "-left-12 top-1/2 -translate-y-1/2"
: "-top-12 left-1/2 -translate-x-1/2 rotate-90",
className
)}
disabled={!canScrollPrev}
onClick={scrollPrev}
{...props}
>
<ArrowLeft className="h-4 w-4" />
<span className="sr-only">Previous slide</span>
</Button>
)
})
CarouselPrevious.displayName = "CarouselPrevious"
const CarouselNext = React.forwardRef<
HTMLButtonElement,
React.ComponentProps<typeof Button>
>(({ className, variant = "outline", size = "icon", ...props }, ref) => {
const { orientation, scrollNext, canScrollNext } = useCarousel()
return (
<Button
ref={ref}
variant={variant}
size={size}
className={cn(
"absolute h-8 w-8 rounded-full",
orientation === "horizontal"
? "-right-12 top-1/2 -translate-y-1/2"
: "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",
className
)}
disabled={!canScrollNext}
onClick={scrollNext}
{...props}
>
<ArrowRight className="h-4 w-4" />
<span className="sr-only">Next slide</span>
</Button>
)
})
CarouselNext.displayName = "CarouselNext"
export {
type CarouselApi,
Carousel,
CarouselContent,
CarouselItem,
CarouselPrevious,
CarouselNext,
}

View File

@@ -13,7 +13,14 @@ hero:
variant: primary
---
import { Card, CardGrid } from '@astrojs/starlight/components';
import { Card, CardGrid } from "@astrojs/starlight/components";
import CommunityShowcase from "~/components/CommunityShowcase.astro";
<h1 class="text-center">Showcase</h1>
<CommunityShowcase />
<h1 class="text-center">Features</h1>
<CardGrid stagger>
<Card title="Modular" icon="puzzle">

View File

@@ -24,7 +24,7 @@ array of dependencies, in the same order of keys provided
## Since
3.0.0
The plural version of [Service](../../../../../../../../v3/api/functions/service)
The plural version of [Service](../../../../../../v3/api/functions/service)
## Source

View File

@@ -8,7 +8,7 @@ title: "discordEvent"
> **discordEvent**\<`T`\>(`mod`): [`EventModule`](/v3/api/type-aliases/eventmodule/)
Create event modules from discord.js client events,
This is an [eventModule](../../../../../../../../v3/api/functions/eventmodule) for discord events,
This is an [eventModule](../../../../../../v3/api/functions/eventmodule) for discord events,
where typings can be very bad.
## Type parameters

View File

@@ -7,7 +7,7 @@ title: "SernOptionsData"
> **SernOptionsData**: [`SernSubCommandData`](/v3/api/interfaces/sernsubcommanddata/) \| [`SernSubCommandGroupData`](/v3/api/interfaces/sernsubcommandgroupdata/) \| `APIApplicationCommandBasicOption` \| [`SernAutocompleteData`](/v3/api/interfaces/sernautocompletedata/)
Type that replaces autocomplete with [SernAutocompleteData](../../../../../../../../v3/api/interfaces/sernautocompletedata)
Type that replaces autocomplete with [SernAutocompleteData](../../../../../../v3/api/interfaces/sernautocompletedata)
## Source

View File

@@ -41,6 +41,7 @@ title: "@sern/handler"
- [Logging](/v4/api/interfaces/logging/)
- [MentionableSelectCommand](/v4/api/interfaces/mentionableselectcommand/)
- [ModalSubmitCommand](/v4/api/interfaces/modalsubmitcommand/)
- [Module](/v4/api/interfaces/module/)
- [Plugin](/v4/api/interfaces/plugin/)
- [PresenceResult](/v4/api/interfaces/presenceresult/)
- [RoleSelectCommand](/v4/api/interfaces/roleselectcommand/)

View File

@@ -27,7 +27,7 @@ Message and ChatInputCommandInteraction
#### Source
[src/core/structures/context.ts:49](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/structures/context.ts#L49)
[src/core/structures/context.ts:49](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/structures/context.ts#L49)
***
@@ -41,7 +41,7 @@ Message and ChatInputCommandInteraction
#### Source
[src/core/structures/context.ts:53](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/structures/context.ts#L53)
[src/core/structures/context.ts:53](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/structures/context.ts#L53)
***
@@ -55,7 +55,7 @@ Message and ChatInputCommandInteraction
#### Source
[src/core/structures/context.ts:108](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/structures/context.ts#L108)
[src/core/structures/context.ts:108](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/structures/context.ts#L108)
***
@@ -69,7 +69,7 @@ Message and ChatInputCommandInteraction
#### Source
[src/core/structures/context.ts:73](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/structures/context.ts#L73)
[src/core/structures/context.ts:73](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/structures/context.ts#L73)
***
@@ -83,7 +83,7 @@ Message and ChatInputCommandInteraction
#### Source
[src/core/structures/context.ts:79](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/structures/context.ts#L79)
[src/core/structures/context.ts:79](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/structures/context.ts#L79)
***
@@ -97,7 +97,7 @@ Message and ChatInputCommandInteraction
#### Source
[src/core/structures/context.ts:85](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/structures/context.ts#L85)
[src/core/structures/context.ts:85](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/structures/context.ts#L85)
***
@@ -111,7 +111,7 @@ Message and ChatInputCommandInteraction
#### Source
[src/core/structures/context.ts:43](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/structures/context.ts#L43)
[src/core/structures/context.ts:43](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/structures/context.ts#L43)
***
@@ -125,7 +125,7 @@ Message and ChatInputCommandInteraction
#### Source
[src/core/structures/context.ts:114](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/structures/context.ts#L114)
[src/core/structures/context.ts:114](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/structures/context.ts#L114)
***
@@ -139,7 +139,7 @@ Message and ChatInputCommandInteraction
#### Source
[src/core/structures/context.ts:103](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/structures/context.ts#L103)
[src/core/structures/context.ts:103](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/structures/context.ts#L103)
***
@@ -153,7 +153,7 @@ Message and ChatInputCommandInteraction
#### Source
[src/core/structures/context.ts:93](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/structures/context.ts#L93)
[src/core/structures/context.ts:93](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/structures/context.ts#L93)
***
@@ -167,7 +167,7 @@ Message and ChatInputCommandInteraction
#### Source
[src/core/structures/context.ts:99](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/structures/context.ts#L99)
[src/core/structures/context.ts:99](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/structures/context.ts#L99)
***
@@ -181,7 +181,7 @@ Message and ChatInputCommandInteraction
#### Source
[src/core/structures/context.ts:26](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/structures/context.ts#L26)
[src/core/structures/context.ts:26](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/structures/context.ts#L26)
***
@@ -195,7 +195,7 @@ Message and ChatInputCommandInteraction
#### Source
[src/core/structures/context.ts:40](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/structures/context.ts#L40)
[src/core/structures/context.ts:40](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/structures/context.ts#L40)
***
@@ -212,7 +212,7 @@ else, interaction.user
#### Source
[src/core/structures/context.ts:63](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/structures/context.ts#L63)
[src/core/structures/context.ts:63](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/structures/context.ts#L63)
***
@@ -226,7 +226,7 @@ else, interaction.user
#### Source
[src/core/structures/context.ts:69](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/structures/context.ts#L69)
[src/core/structures/context.ts:69](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/structures/context.ts#L69)
## Methods
@@ -244,7 +244,7 @@ else, interaction.user
#### Source
[src/core/structures/core-context.ts:11](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/structures/core-context.ts#L11)
[src/core/structures/core-context.ts:11](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/structures/core-context.ts#L11)
***
@@ -262,7 +262,7 @@ else, interaction.user
#### Source
[src/core/structures/core-context.ts:15](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/structures/core-context.ts#L15)
[src/core/structures/core-context.ts:15](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/structures/core-context.ts#L15)
***
@@ -280,7 +280,7 @@ else, interaction.user
#### Source
[src/core/structures/context.ts:120](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/structures/context.ts#L120)
[src/core/structures/context.ts:120](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/structures/context.ts#L120)
***
@@ -300,4 +300,4 @@ else, interaction.user
#### Source
[src/core/structures/context.ts:129](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/structures/context.ts#L129)
[src/core/structures/context.ts:129](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/structures/context.ts#L129)

View File

@@ -31,7 +31,7 @@ export default commandModule({
#### Source
[src/core/structures/enums.ts:20](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/structures/enums.ts#L20)
[src/core/structures/enums.ts:20](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/structures/enums.ts#L20)
***
@@ -41,7 +41,7 @@ export default commandModule({
#### Source
[src/core/structures/enums.ts:23](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/structures/enums.ts#L23)
[src/core/structures/enums.ts:23](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/structures/enums.ts#L23)
***
@@ -51,7 +51,7 @@ export default commandModule({
#### Source
[src/core/structures/enums.ts:29](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/structures/enums.ts#L29)
[src/core/structures/enums.ts:29](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/structures/enums.ts#L29)
***
@@ -61,7 +61,7 @@ export default commandModule({
#### Source
[src/core/structures/enums.ts:22](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/structures/enums.ts#L22)
[src/core/structures/enums.ts:22](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/structures/enums.ts#L22)
***
@@ -71,7 +71,7 @@ export default commandModule({
#### Source
[src/core/structures/enums.ts:21](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/structures/enums.ts#L21)
[src/core/structures/enums.ts:21](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/structures/enums.ts#L21)
***
@@ -81,7 +81,7 @@ export default commandModule({
#### Source
[src/core/structures/enums.ts:28](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/structures/enums.ts#L28)
[src/core/structures/enums.ts:28](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/structures/enums.ts#L28)
***
@@ -91,7 +91,7 @@ export default commandModule({
#### Source
[src/core/structures/enums.ts:25](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/structures/enums.ts#L25)
[src/core/structures/enums.ts:25](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/structures/enums.ts#L25)
***
@@ -101,7 +101,7 @@ export default commandModule({
#### Source
[src/core/structures/enums.ts:27](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/structures/enums.ts#L27)
[src/core/structures/enums.ts:27](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/structures/enums.ts#L27)
***
@@ -111,7 +111,7 @@ export default commandModule({
#### Source
[src/core/structures/enums.ts:19](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/structures/enums.ts#L19)
[src/core/structures/enums.ts:19](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/structures/enums.ts#L19)
***
@@ -121,7 +121,7 @@ export default commandModule({
#### Source
[src/core/structures/enums.ts:24](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/structures/enums.ts#L24)
[src/core/structures/enums.ts:24](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/structures/enums.ts#L24)
***
@@ -131,7 +131,7 @@ export default commandModule({
#### Source
[src/core/structures/enums.ts:18](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/structures/enums.ts#L18)
[src/core/structures/enums.ts:18](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/structures/enums.ts#L18)
***
@@ -141,4 +141,4 @@ export default commandModule({
#### Source
[src/core/structures/enums.ts:26](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/structures/enums.ts#L26)
[src/core/structures/enums.ts:26](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/structures/enums.ts#L26)

View File

@@ -28,7 +28,7 @@ export default eventModule({
#### Source
[src/core/structures/enums.ts:61](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/structures/enums.ts#L61)
[src/core/structures/enums.ts:61](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/structures/enums.ts#L61)
***
@@ -40,7 +40,7 @@ The EventType for handling discord events
#### Source
[src/core/structures/enums.ts:51](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/structures/enums.ts#L51)
[src/core/structures/enums.ts:51](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/structures/enums.ts#L51)
***
@@ -53,7 +53,7 @@ Could be for example, `process` events, database events
#### Source
[src/core/structures/enums.ts:60](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/structures/enums.ts#L60)
[src/core/structures/enums.ts:60](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/structures/enums.ts#L60)
***
@@ -65,4 +65,4 @@ The EventType for handling sern events
#### Source
[src/core/structures/enums.ts:55](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/structures/enums.ts#L55)
[src/core/structures/enums.ts:55](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/structures/enums.ts#L55)

View File

@@ -17,7 +17,7 @@ title: "PayloadType"
#### Source
[src/core/structures/enums.ts:94](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/structures/enums.ts#L94)
[src/core/structures/enums.ts:94](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/structures/enums.ts#L94)
***
@@ -27,7 +27,7 @@ title: "PayloadType"
#### Source
[src/core/structures/enums.ts:93](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/structures/enums.ts#L93)
[src/core/structures/enums.ts:93](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/structures/enums.ts#L93)
***
@@ -37,4 +37,4 @@ title: "PayloadType"
#### Source
[src/core/structures/enums.ts:95](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/structures/enums.ts#L95)
[src/core/structures/enums.ts:95](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/structures/enums.ts#L95)

View File

@@ -29,7 +29,7 @@ The PluginType for EventPlugins
#### Source
[src/core/structures/enums.ts:86](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/structures/enums.ts#L86)
[src/core/structures/enums.ts:86](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/structures/enums.ts#L86)
***
@@ -41,4 +41,4 @@ The PluginType for InitPlugins
#### Source
[src/core/structures/enums.ts:82](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/structures/enums.ts#L82)
[src/core/structures/enums.ts:82](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/structures/enums.ts#L82)

View File

@@ -11,7 +11,7 @@ title: "Asset"
Reads an asset file from the 'assets' directory.
If encoding is 'attachment', a discord.js AttachmentBuilder is provided, else
fs.promises.readFile is called. The default is utf8.
fs.promises.readFile is called. The default encoding is utf8.
### Parameters
@@ -19,9 +19,9 @@ fs.promises.readFile is called. The default is utf8.
**opts?**
**opts.encoding?**: `"utf8"` \| `"base64"` \| `"binary"`
**opts.encoding?**: `PartialAssetEncoding`
**opts.name?**: `string`
**opts.name?**: `undefined`
### Returns
@@ -29,7 +29,29 @@ fs.promises.readFile is called. The default is utf8.
### Source
[src/index.ts:71](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/index.ts#L71)
[src/index.ts:70](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/index.ts#L70)
## Asset(p, opts)
> **Asset**(`p`, `opts`?): `Promise`\<`any`\>
### Parameters
**p**: `string`
**opts?**
**opts.encoding?**: `"json"`
**opts.name?**: `undefined`
### Returns
`Promise`\<`any`\>
### Source
[src/index.ts:71](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/index.ts#L71)
## Asset(p, opts)
@@ -51,4 +73,4 @@ fs.promises.readFile is called. The default is utf8.
### Source
[src/index.ts:72](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/index.ts#L72)
[src/index.ts:72](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/index.ts#L72)

View File

@@ -25,4 +25,4 @@ title: "CommandControlPlugin"
## Source
[src/core/create-plugins.ts:28](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/create-plugins.ts#L28)
[src/core/create-plugins.ts:28](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/create-plugins.ts#L28)

View File

@@ -25,4 +25,4 @@ title: "CommandInitPlugin"
## Source
[src/core/create-plugins.ts:20](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/create-plugins.ts#L20)
[src/core/create-plugins.ts:20](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/create-plugins.ts#L20)

View File

@@ -21,4 +21,4 @@ title: "EventInitPlugin"
## Source
[src/core/create-plugins.ts:14](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/create-plugins.ts#L14)
[src/core/create-plugins.ts:14](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/create-plugins.ts#L14)

View File

@@ -38,4 +38,4 @@ const client = Service('@sern/client');
## Source
[src/core/ioc/index.ts:19](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/ioc/index.ts#L19)
[src/core/ioc/index.ts:19](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/ioc/index.ts#L19)

View File

@@ -24,8 +24,8 @@ array of dependencies, in the same order of keys provided
## Since
3.0.0
The plural version of [Service](../../../../../../../../v4/api/functions/service)
The plural version of [Service](../../../../../../v4/api/functions/service)
## Source
[src/core/ioc/index.ts:27](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/ioc/index.ts#L27)
[src/core/ioc/index.ts:27](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/ioc/index.ts#L27)

View File

@@ -5,7 +5,7 @@ prev: false
title: "commandModule"
---
> **commandModule**(`mod`): `Module`
> **commandModule**(`mod`): [`Module`](/v4/api/interfaces/module/)
## Parameters
@@ -13,7 +13,7 @@ title: "commandModule"
## Returns
`Module`
[`Module`](/v4/api/interfaces/module/)
## Since
@@ -21,4 +21,4 @@ title: "commandModule"
## Source
[src/core/modules.ts:15](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/modules.ts#L15)
[src/core/modules.ts:15](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/modules.ts#L15)

View File

@@ -5,10 +5,10 @@ prev: false
title: "discordEvent"
---
> **discordEvent**\<`T`\>(`mod`): `Module`
> **discordEvent**\<`T`\>(`mod`): [`Module`](/v4/api/interfaces/module/)
Create event modules from discord.js client events,
This is an [eventModule](../../../../../../../../v4/api/functions/eventmodule) for discord events,
This is an [eventModule](../../../../../../v4/api/functions/eventmodule) for discord events,
where typings can be very bad.
## Type parameters
@@ -25,10 +25,10 @@ where typings can be very bad.
## Returns
`Module`
[`Module`](/v4/api/interfaces/module/)
## Experimental
## Source
[src/core/modules.ts:39](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/modules.ts#L39)
[src/core/modules.ts:41](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/modules.ts#L41)

View File

@@ -5,7 +5,7 @@ prev: false
title: "eventModule"
---
> **eventModule**(`mod`): `Module`
> **eventModule**(`mod`): [`Module`](/v4/api/interfaces/module/)
## Parameters
@@ -13,7 +13,7 @@ title: "eventModule"
## Returns
`Module`
[`Module`](/v4/api/interfaces/module/)
## Since
@@ -22,4 +22,4 @@ The wrapper function to define event modules for sern
## Source
[src/core/modules.ts:29](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/modules.ts#L29)
[src/core/modules.ts:29](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/modules.ts#L29)

View File

@@ -7,6 +7,9 @@ title: "makeDependencies"
> **makeDependencies**(`conf`): `Promise`\<`void`\>
makeDependencies constructs a dependency injection container for sern handler to use.
This is required to start the handler, and is to be called before Sern.init.
## Parameters
**conf**
@@ -15,6 +18,14 @@ title: "makeDependencies"
`Promise`\<`void`\>
## Example
```ts
await makeDependencies(({ add }) => {
add('@sern/client', new Client({ intents, partials })
})
```
## Source
[src/core/ioc/base.ts:52](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/ioc/base.ts#L52)
[src/core/ioc/base.ts:61](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/ioc/base.ts#L61)

View File

@@ -23,4 +23,4 @@ title: "makePlugin"
## Source
[src/core/create-plugins.ts:5](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/create-plugins.ts#L5)
[src/core/create-plugins.ts:5](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/create-plugins.ts#L5)

View File

@@ -25,4 +25,4 @@ Creates a singleton object.
## Source
[src/core/ioc/index.ts:36](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/ioc/index.ts#L36)
[src/core/ioc/index.ts:36](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/ioc/index.ts#L36)

View File

@@ -30,4 +30,4 @@ Creates a transient object
## Source
[src/core/ioc/index.ts:44](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/ioc/index.ts#L44)
[src/core/ioc/index.ts:47](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/ioc/index.ts#L47)

View File

@@ -7,7 +7,7 @@ title: "BothCommand"
## Extends
- `Module`
- [`Module`](/v4/api/interfaces/module/)
## Properties
@@ -17,11 +17,11 @@ title: "BothCommand"
#### Overrides
`Module.description`
[`Module`](/v4/api/interfaces/module/).[`description`](/v4/api/interfaces/module/#description)
#### Source
[src/types/core-modules.ts:139](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L139)
[src/types/core-modules.ts:139](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L139)
***
@@ -41,11 +41,11 @@ title: "BothCommand"
#### Overrides
`Module.execute`
[`Module`](/v4/api/interfaces/module/).[`execute`](/v4/api/interfaces/module/#execute)
#### Source
[src/types/core-modules.ts:141](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L141)
[src/types/core-modules.ts:141](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L141)
***
@@ -63,11 +63,11 @@ title: "BothCommand"
#### Inherited from
`Module.meta`
[`Module`](/v4/api/interfaces/module/).[`meta`](/v4/api/interfaces/module/#meta)
#### Source
[src/types/core-modules.ts:40](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L40)
[src/types/core-modules.ts:40](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L40)
***
@@ -77,11 +77,11 @@ title: "BothCommand"
#### Inherited from
`Module.name`
[`Module`](/v4/api/interfaces/module/).[`name`](/v4/api/interfaces/module/#name)
#### Source
[src/types/core-modules.ts:36](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L36)
[src/types/core-modules.ts:36](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L36)
***
@@ -91,11 +91,11 @@ title: "BothCommand"
#### Inherited from
`Module.onEvent`
[`Module`](/v4/api/interfaces/module/).[`onEvent`](/v4/api/interfaces/module/#onevent)
#### Source
[src/types/core-modules.ts:37](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L37)
[src/types/core-modules.ts:37](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L37)
***
@@ -105,7 +105,7 @@ title: "BothCommand"
#### Source
[src/types/core-modules.ts:140](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L140)
[src/types/core-modules.ts:140](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L140)
***
@@ -115,11 +115,11 @@ title: "BothCommand"
#### Inherited from
`Module.plugins`
[`Module`](/v4/api/interfaces/module/).[`plugins`](/v4/api/interfaces/module/#plugins)
#### Source
[src/types/core-modules.ts:38](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L38)
[src/types/core-modules.ts:38](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L38)
***
@@ -129,8 +129,8 @@ title: "BothCommand"
#### Overrides
`Module.type`
[`Module`](/v4/api/interfaces/module/).[`type`](/v4/api/interfaces/module/#type)
#### Source
[src/types/core-modules.ts:138](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L138)
[src/types/core-modules.ts:138](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L138)

View File

@@ -7,7 +7,7 @@ title: "ButtonCommand"
## Extends
- `Module`
- [`Module`](/v4/api/interfaces/module/)
## Properties
@@ -17,11 +17,11 @@ title: "ButtonCommand"
#### Inherited from
`Module.description`
[`Module`](/v4/api/interfaces/module/).[`description`](/v4/api/interfaces/module/#description)
#### Source
[src/types/core-modules.ts:39](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L39)
[src/types/core-modules.ts:39](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L39)
***
@@ -41,11 +41,11 @@ title: "ButtonCommand"
#### Overrides
`Module.execute`
[`Module`](/v4/api/interfaces/module/).[`execute`](/v4/api/interfaces/module/#execute)
#### Source
[src/types/core-modules.ts:81](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L81)
[src/types/core-modules.ts:81](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L81)
***
@@ -63,11 +63,11 @@ title: "ButtonCommand"
#### Inherited from
`Module.meta`
[`Module`](/v4/api/interfaces/module/).[`meta`](/v4/api/interfaces/module/#meta)
#### Source
[src/types/core-modules.ts:40](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L40)
[src/types/core-modules.ts:40](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L40)
***
@@ -77,11 +77,11 @@ title: "ButtonCommand"
#### Inherited from
`Module.name`
[`Module`](/v4/api/interfaces/module/).[`name`](/v4/api/interfaces/module/#name)
#### Source
[src/types/core-modules.ts:36](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L36)
[src/types/core-modules.ts:36](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L36)
***
@@ -91,11 +91,11 @@ title: "ButtonCommand"
#### Inherited from
`Module.onEvent`
[`Module`](/v4/api/interfaces/module/).[`onEvent`](/v4/api/interfaces/module/#onevent)
#### Source
[src/types/core-modules.ts:37](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L37)
[src/types/core-modules.ts:37](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L37)
***
@@ -105,11 +105,11 @@ title: "ButtonCommand"
#### Inherited from
`Module.plugins`
[`Module`](/v4/api/interfaces/module/).[`plugins`](/v4/api/interfaces/module/#plugins)
#### Source
[src/types/core-modules.ts:38](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L38)
[src/types/core-modules.ts:38](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L38)
***
@@ -119,8 +119,8 @@ title: "ButtonCommand"
#### Overrides
`Module.type`
[`Module`](/v4/api/interfaces/module/).[`type`](/v4/api/interfaces/module/#type)
#### Source
[src/types/core-modules.ts:80](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L80)
[src/types/core-modules.ts:80](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L80)

View File

@@ -7,7 +7,7 @@ title: "ChannelSelectCommand"
## Extends
- `Module`
- [`Module`](/v4/api/interfaces/module/)
## Properties
@@ -17,11 +17,11 @@ title: "ChannelSelectCommand"
#### Inherited from
`Module.description`
[`Module`](/v4/api/interfaces/module/).[`description`](/v4/api/interfaces/module/#description)
#### Source
[src/types/core-modules.ts:39](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L39)
[src/types/core-modules.ts:39](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L39)
***
@@ -41,11 +41,11 @@ title: "ChannelSelectCommand"
#### Overrides
`Module.execute`
[`Module`](/v4/api/interfaces/module/).[`execute`](/v4/api/interfaces/module/#execute)
#### Source
[src/types/core-modules.ts:91](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L91)
[src/types/core-modules.ts:91](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L91)
***
@@ -63,11 +63,11 @@ title: "ChannelSelectCommand"
#### Inherited from
`Module.meta`
[`Module`](/v4/api/interfaces/module/).[`meta`](/v4/api/interfaces/module/#meta)
#### Source
[src/types/core-modules.ts:40](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L40)
[src/types/core-modules.ts:40](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L40)
***
@@ -77,11 +77,11 @@ title: "ChannelSelectCommand"
#### Inherited from
`Module.name`
[`Module`](/v4/api/interfaces/module/).[`name`](/v4/api/interfaces/module/#name)
#### Source
[src/types/core-modules.ts:36](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L36)
[src/types/core-modules.ts:36](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L36)
***
@@ -91,11 +91,11 @@ title: "ChannelSelectCommand"
#### Inherited from
`Module.onEvent`
[`Module`](/v4/api/interfaces/module/).[`onEvent`](/v4/api/interfaces/module/#onevent)
#### Source
[src/types/core-modules.ts:37](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L37)
[src/types/core-modules.ts:37](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L37)
***
@@ -105,11 +105,11 @@ title: "ChannelSelectCommand"
#### Inherited from
`Module.plugins`
[`Module`](/v4/api/interfaces/module/).[`plugins`](/v4/api/interfaces/module/#plugins)
#### Source
[src/types/core-modules.ts:38](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L38)
[src/types/core-modules.ts:38](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L38)
***
@@ -119,8 +119,8 @@ title: "ChannelSelectCommand"
#### Overrides
`Module.type`
[`Module`](/v4/api/interfaces/module/).[`type`](/v4/api/interfaces/module/#type)
#### Source
[src/types/core-modules.ts:90](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L90)
[src/types/core-modules.ts:90](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L90)

View File

@@ -13,7 +13,7 @@ title: "CommandModuleDefs"
#### Source
[src/types/core-modules.ts:162](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L162)
[src/types/core-modules.ts:162](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L162)
***
@@ -23,7 +23,7 @@ title: "CommandModuleDefs"
#### Source
[src/types/core-modules.ts:170](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L170)
[src/types/core-modules.ts:170](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L170)
***
@@ -33,7 +33,7 @@ title: "CommandModuleDefs"
#### Source
[src/types/core-modules.ts:172](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L172)
[src/types/core-modules.ts:172](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L172)
***
@@ -43,7 +43,7 @@ title: "CommandModuleDefs"
#### Source
[src/types/core-modules.ts:167](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L167)
[src/types/core-modules.ts:167](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L167)
***
@@ -53,7 +53,7 @@ title: "CommandModuleDefs"
#### Source
[src/types/core-modules.ts:163](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L163)
[src/types/core-modules.ts:163](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L163)
***
@@ -63,7 +63,7 @@ title: "CommandModuleDefs"
#### Source
[src/types/core-modules.ts:169](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L169)
[src/types/core-modules.ts:169](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L169)
***
@@ -73,7 +73,7 @@ title: "CommandModuleDefs"
#### Source
[src/types/core-modules.ts:164](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L164)
[src/types/core-modules.ts:164](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L164)
***
@@ -83,7 +83,7 @@ title: "CommandModuleDefs"
#### Source
[src/types/core-modules.ts:168](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L168)
[src/types/core-modules.ts:168](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L168)
***
@@ -93,7 +93,7 @@ title: "CommandModuleDefs"
#### Source
[src/types/core-modules.ts:166](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L166)
[src/types/core-modules.ts:166](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L166)
***
@@ -103,7 +103,7 @@ title: "CommandModuleDefs"
#### Source
[src/types/core-modules.ts:171](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L171)
[src/types/core-modules.ts:171](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L171)
***
@@ -113,7 +113,7 @@ title: "CommandModuleDefs"
#### Source
[src/types/core-modules.ts:173](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L173)
[src/types/core-modules.ts:173](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L173)
***
@@ -123,4 +123,4 @@ title: "CommandModuleDefs"
#### Source
[src/types/core-modules.ts:165](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L165)
[src/types/core-modules.ts:165](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L165)

View File

@@ -7,7 +7,7 @@ title: "ContextMenuMsg"
## Extends
- `Module`
- [`Module`](/v4/api/interfaces/module/)
## Properties
@@ -17,11 +17,11 @@ title: "ContextMenuMsg"
#### Inherited from
`Module.description`
[`Module`](/v4/api/interfaces/module/).[`description`](/v4/api/interfaces/module/#description)
#### Source
[src/types/core-modules.ts:39](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L39)
[src/types/core-modules.ts:39](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L39)
***
@@ -41,11 +41,11 @@ title: "ContextMenuMsg"
#### Overrides
`Module.execute`
[`Module`](/v4/api/interfaces/module/).[`execute`](/v4/api/interfaces/module/#execute)
#### Source
[src/types/core-modules.ts:76](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L76)
[src/types/core-modules.ts:76](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L76)
***
@@ -63,11 +63,11 @@ title: "ContextMenuMsg"
#### Inherited from
`Module.meta`
[`Module`](/v4/api/interfaces/module/).[`meta`](/v4/api/interfaces/module/#meta)
#### Source
[src/types/core-modules.ts:40](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L40)
[src/types/core-modules.ts:40](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L40)
***
@@ -77,11 +77,11 @@ title: "ContextMenuMsg"
#### Inherited from
`Module.name`
[`Module`](/v4/api/interfaces/module/).[`name`](/v4/api/interfaces/module/#name)
#### Source
[src/types/core-modules.ts:36](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L36)
[src/types/core-modules.ts:36](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L36)
***
@@ -91,11 +91,11 @@ title: "ContextMenuMsg"
#### Inherited from
`Module.onEvent`
[`Module`](/v4/api/interfaces/module/).[`onEvent`](/v4/api/interfaces/module/#onevent)
#### Source
[src/types/core-modules.ts:37](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L37)
[src/types/core-modules.ts:37](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L37)
***
@@ -105,11 +105,11 @@ title: "ContextMenuMsg"
#### Inherited from
`Module.plugins`
[`Module`](/v4/api/interfaces/module/).[`plugins`](/v4/api/interfaces/module/#plugins)
#### Source
[src/types/core-modules.ts:38](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L38)
[src/types/core-modules.ts:38](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L38)
***
@@ -119,8 +119,8 @@ title: "ContextMenuMsg"
#### Overrides
`Module.type`
[`Module`](/v4/api/interfaces/module/).[`type`](/v4/api/interfaces/module/#type)
#### Source
[src/types/core-modules.ts:75](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L75)
[src/types/core-modules.ts:75](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L75)

View File

@@ -7,7 +7,7 @@ title: "ContextMenuUser"
## Extends
- `Module`
- [`Module`](/v4/api/interfaces/module/)
## Properties
@@ -17,11 +17,11 @@ title: "ContextMenuUser"
#### Inherited from
`Module.description`
[`Module`](/v4/api/interfaces/module/).[`description`](/v4/api/interfaces/module/#description)
#### Source
[src/types/core-modules.ts:39](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L39)
[src/types/core-modules.ts:39](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L39)
***
@@ -41,11 +41,11 @@ title: "ContextMenuUser"
#### Overrides
`Module.execute`
[`Module`](/v4/api/interfaces/module/).[`execute`](/v4/api/interfaces/module/#execute)
#### Source
[src/types/core-modules.ts:71](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L71)
[src/types/core-modules.ts:71](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L71)
***
@@ -63,11 +63,11 @@ title: "ContextMenuUser"
#### Inherited from
`Module.meta`
[`Module`](/v4/api/interfaces/module/).[`meta`](/v4/api/interfaces/module/#meta)
#### Source
[src/types/core-modules.ts:40](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L40)
[src/types/core-modules.ts:40](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L40)
***
@@ -77,11 +77,11 @@ title: "ContextMenuUser"
#### Inherited from
`Module.name`
[`Module`](/v4/api/interfaces/module/).[`name`](/v4/api/interfaces/module/#name)
#### Source
[src/types/core-modules.ts:36](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L36)
[src/types/core-modules.ts:36](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L36)
***
@@ -91,11 +91,11 @@ title: "ContextMenuUser"
#### Inherited from
`Module.onEvent`
[`Module`](/v4/api/interfaces/module/).[`onEvent`](/v4/api/interfaces/module/#onevent)
#### Source
[src/types/core-modules.ts:37](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L37)
[src/types/core-modules.ts:37](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L37)
***
@@ -105,11 +105,11 @@ title: "ContextMenuUser"
#### Inherited from
`Module.plugins`
[`Module`](/v4/api/interfaces/module/).[`plugins`](/v4/api/interfaces/module/#plugins)
#### Source
[src/types/core-modules.ts:38](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L38)
[src/types/core-modules.ts:38](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L38)
***
@@ -119,8 +119,8 @@ title: "ContextMenuUser"
#### Overrides
`Module.type`
[`Module`](/v4/api/interfaces/module/).[`type`](/v4/api/interfaces/module/#type)
#### Source
[src/types/core-modules.ts:70](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L70)
[src/types/core-modules.ts:70](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L70)

View File

@@ -33,7 +33,7 @@ title: "ControlPlugin"
#### Source
[src/types/core-plugin.ts:44](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-plugin.ts#L44)
[src/types/core-plugin.ts:44](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-plugin.ts#L44)
***
@@ -47,4 +47,4 @@ title: "ControlPlugin"
#### Source
[src/types/core-plugin.ts:51](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-plugin.ts#L51)
[src/types/core-plugin.ts:51](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-plugin.ts#L51)

View File

@@ -13,7 +13,7 @@ title: "CoreDependencies"
#### Source
[src/types/ioc.ts:9](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/ioc.ts#L9)
[src/types/ioc.ts:9](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/ioc.ts#L9)
***
@@ -23,7 +23,7 @@ title: "CoreDependencies"
#### Source
[src/types/ioc.ts:10](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/ioc.ts#L10)
[src/types/ioc.ts:10](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/ioc.ts#L10)
***
@@ -33,7 +33,7 @@ title: "CoreDependencies"
#### Source
[src/types/ioc.ts:11](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/ioc.ts#L11)
[src/types/ioc.ts:11](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/ioc.ts#L11)
***
@@ -43,14 +43,14 @@ title: "CoreDependencies"
#### Source
[src/types/ioc.ts:12](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/ioc.ts#L12)
[src/types/ioc.ts:12](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/ioc.ts#L12)
***
### @sern/modules
> **@sern/modules**: `Map`\<`string`, `Module`\>
> **@sern/modules**: `Map`\<`string`, [`Module`](/v4/api/interfaces/module/)\>
#### Source
[src/types/ioc.ts:13](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/ioc.ts#L13)
[src/types/ioc.ts:13](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/ioc.ts#L13)

View File

@@ -7,7 +7,7 @@ title: "DiscordEventCommand"
## Extends
- `Module`
- [`Module`](/v4/api/interfaces/module/)
## Type parameters
@@ -21,11 +21,11 @@ title: "DiscordEventCommand"
#### Inherited from
`Module.description`
[`Module`](/v4/api/interfaces/module/).[`description`](/v4/api/interfaces/module/#description)
#### Source
[src/types/core-modules.ts:39](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L39)
[src/types/core-modules.ts:39](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L39)
***
@@ -43,11 +43,11 @@ title: "DiscordEventCommand"
#### Inherited from
`Module.meta`
[`Module`](/v4/api/interfaces/module/).[`meta`](/v4/api/interfaces/module/#meta)
#### Source
[src/types/core-modules.ts:40](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L40)
[src/types/core-modules.ts:40](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L40)
***
@@ -57,11 +57,11 @@ title: "DiscordEventCommand"
#### Overrides
`Module.name`
[`Module`](/v4/api/interfaces/module/).[`name`](/v4/api/interfaces/module/#name)
#### Source
[src/types/core-modules.ts:121](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L121)
[src/types/core-modules.ts:121](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L121)
***
@@ -71,11 +71,11 @@ title: "DiscordEventCommand"
#### Inherited from
`Module.onEvent`
[`Module`](/v4/api/interfaces/module/).[`onEvent`](/v4/api/interfaces/module/#onevent)
#### Source
[src/types/core-modules.ts:37](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L37)
[src/types/core-modules.ts:37](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L37)
***
@@ -85,11 +85,11 @@ title: "DiscordEventCommand"
#### Inherited from
`Module.plugins`
[`Module`](/v4/api/interfaces/module/).[`plugins`](/v4/api/interfaces/module/#plugins)
#### Source
[src/types/core-modules.ts:38](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L38)
[src/types/core-modules.ts:38](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L38)
***
@@ -99,11 +99,11 @@ title: "DiscordEventCommand"
#### Overrides
`Module.type`
[`Module`](/v4/api/interfaces/module/).[`type`](/v4/api/interfaces/module/#type)
#### Source
[src/types/core-modules.ts:122](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L122)
[src/types/core-modules.ts:122](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L122)
## Methods
@@ -121,8 +121,8 @@ title: "DiscordEventCommand"
#### Overrides
`Module.execute`
[`Module`](/v4/api/interfaces/module/).[`execute`](/v4/api/interfaces/module/#execute)
#### Source
[src/types/core-modules.ts:123](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L123)
[src/types/core-modules.ts:123](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L123)

View File

@@ -20,4 +20,4 @@ Let dependencies implement this to dispose and cleanup.
#### Source
[src/core/interfaces.ts:17](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/interfaces.ts#L17)
[src/core/interfaces.ts:17](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/interfaces.ts#L17)

View File

@@ -23,7 +23,7 @@ title: "Emitter"
#### Source
[src/core/interfaces.ts:22](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/interfaces.ts#L22)
[src/core/interfaces.ts:22](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/interfaces.ts#L22)
***
@@ -43,7 +43,7 @@ title: "Emitter"
#### Source
[src/core/interfaces.ts:24](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/interfaces.ts#L24)
[src/core/interfaces.ts:24](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/interfaces.ts#L24)
***
@@ -63,4 +63,4 @@ title: "Emitter"
#### Source
[src/core/interfaces.ts:23](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/interfaces.ts#L23)
[src/core/interfaces.ts:23](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/interfaces.ts#L23)

View File

@@ -29,7 +29,7 @@ Version 4 will remove this method
#### Source
[src/core/interfaces.ts:36](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/interfaces.ts#L36)
[src/core/interfaces.ts:36](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/interfaces.ts#L36)
***
@@ -49,4 +49,4 @@ A function that is called on every throw.
#### Source
[src/core/interfaces.ts:41](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/interfaces.ts#L41)
[src/core/interfaces.ts:41](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/interfaces.ts#L41)

View File

@@ -13,7 +13,7 @@ title: "EventModuleDefs"
#### Source
[src/types/core-modules.ts:178](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L178)
[src/types/core-modules.ts:178](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L178)
***
@@ -23,7 +23,7 @@ title: "EventModuleDefs"
#### Source
[src/types/core-modules.ts:177](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L177)
[src/types/core-modules.ts:177](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L177)
***
@@ -33,7 +33,7 @@ title: "EventModuleDefs"
#### Source
[src/types/core-modules.ts:179](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L179)
[src/types/core-modules.ts:179](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L179)
***
@@ -43,4 +43,4 @@ title: "EventModuleDefs"
#### Source
[src/types/core-modules.ts:180](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L180)
[src/types/core-modules.ts:180](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L180)

View File

@@ -7,7 +7,7 @@ title: "ExternalEventCommand"
## Extends
- `Module`
- [`Module`](/v4/api/interfaces/module/)
## Properties
@@ -17,11 +17,11 @@ title: "ExternalEventCommand"
#### Inherited from
`Module.description`
[`Module`](/v4/api/interfaces/module/).[`description`](/v4/api/interfaces/module/#description)
#### Source
[src/types/core-modules.ts:39](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L39)
[src/types/core-modules.ts:39](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L39)
***
@@ -31,7 +31,7 @@ title: "ExternalEventCommand"
#### Source
[src/types/core-modules.ts:56](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L56)
[src/types/core-modules.ts:56](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L56)
***
@@ -49,11 +49,11 @@ title: "ExternalEventCommand"
#### Inherited from
`Module.meta`
[`Module`](/v4/api/interfaces/module/).[`meta`](/v4/api/interfaces/module/#meta)
#### Source
[src/types/core-modules.ts:40](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L40)
[src/types/core-modules.ts:40](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L40)
***
@@ -63,11 +63,11 @@ title: "ExternalEventCommand"
#### Overrides
`Module.name`
[`Module`](/v4/api/interfaces/module/).[`name`](/v4/api/interfaces/module/#name)
#### Source
[src/types/core-modules.ts:55](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L55)
[src/types/core-modules.ts:55](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L55)
***
@@ -77,11 +77,11 @@ title: "ExternalEventCommand"
#### Inherited from
`Module.onEvent`
[`Module`](/v4/api/interfaces/module/).[`onEvent`](/v4/api/interfaces/module/#onevent)
#### Source
[src/types/core-modules.ts:37](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L37)
[src/types/core-modules.ts:37](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L37)
***
@@ -91,11 +91,11 @@ title: "ExternalEventCommand"
#### Inherited from
`Module.plugins`
[`Module`](/v4/api/interfaces/module/).[`plugins`](/v4/api/interfaces/module/#plugins)
#### Source
[src/types/core-modules.ts:38](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L38)
[src/types/core-modules.ts:38](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L38)
***
@@ -105,11 +105,11 @@ title: "ExternalEventCommand"
#### Overrides
`Module.type`
[`Module`](/v4/api/interfaces/module/).[`type`](/v4/api/interfaces/module/#type)
#### Source
[src/types/core-modules.ts:57](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L57)
[src/types/core-modules.ts:57](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L57)
## Methods
@@ -127,8 +127,8 @@ title: "ExternalEventCommand"
#### Overrides
`Module.execute`
[`Module`](/v4/api/interfaces/module/).[`execute`](/v4/api/interfaces/module/#execute)
#### Source
[src/types/core-modules.ts:58](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L58)
[src/types/core-modules.ts:58](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L58)

View File

@@ -20,4 +20,4 @@ Let dependencies implement this to initiate some logic.
#### Source
[src/core/interfaces.ts:9](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/interfaces.ts#L9)
[src/core/interfaces.ts:9](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/interfaces.ts#L9)

View File

@@ -33,7 +33,7 @@ title: "InitPlugin"
#### Source
[src/types/core-plugin.ts:44](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-plugin.ts#L44)
[src/types/core-plugin.ts:44](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-plugin.ts#L44)
***
@@ -47,4 +47,4 @@ title: "InitPlugin"
#### Source
[src/types/core-plugin.ts:48](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-plugin.ts#L48)
[src/types/core-plugin.ts:48](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-plugin.ts#L48)

View File

@@ -29,7 +29,7 @@ title: "Logging"
#### Source
[src/core/interfaces.ts:52](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/interfaces.ts#L52)
[src/core/interfaces.ts:52](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/interfaces.ts#L52)
***
@@ -47,7 +47,7 @@ title: "Logging"
#### Source
[src/core/interfaces.ts:49](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/interfaces.ts#L49)
[src/core/interfaces.ts:49](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/interfaces.ts#L49)
***
@@ -65,7 +65,7 @@ title: "Logging"
#### Source
[src/core/interfaces.ts:51](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/interfaces.ts#L51)
[src/core/interfaces.ts:51](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/interfaces.ts#L51)
***
@@ -83,4 +83,4 @@ title: "Logging"
#### Source
[src/core/interfaces.ts:50](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/interfaces.ts#L50)
[src/core/interfaces.ts:50](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/interfaces.ts#L50)

View File

@@ -7,7 +7,7 @@ title: "MentionableSelectCommand"
## Extends
- `Module`
- [`Module`](/v4/api/interfaces/module/)
## Properties
@@ -17,11 +17,11 @@ title: "MentionableSelectCommand"
#### Inherited from
`Module.description`
[`Module`](/v4/api/interfaces/module/).[`description`](/v4/api/interfaces/module/#description)
#### Source
[src/types/core-modules.ts:39](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L39)
[src/types/core-modules.ts:39](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L39)
***
@@ -41,11 +41,11 @@ title: "MentionableSelectCommand"
#### Overrides
`Module.execute`
[`Module`](/v4/api/interfaces/module/).[`execute`](/v4/api/interfaces/module/#execute)
#### Source
[src/types/core-modules.ts:101](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L101)
[src/types/core-modules.ts:101](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L101)
***
@@ -63,11 +63,11 @@ title: "MentionableSelectCommand"
#### Inherited from
`Module.meta`
[`Module`](/v4/api/interfaces/module/).[`meta`](/v4/api/interfaces/module/#meta)
#### Source
[src/types/core-modules.ts:40](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L40)
[src/types/core-modules.ts:40](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L40)
***
@@ -77,11 +77,11 @@ title: "MentionableSelectCommand"
#### Inherited from
`Module.name`
[`Module`](/v4/api/interfaces/module/).[`name`](/v4/api/interfaces/module/#name)
#### Source
[src/types/core-modules.ts:36](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L36)
[src/types/core-modules.ts:36](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L36)
***
@@ -91,11 +91,11 @@ title: "MentionableSelectCommand"
#### Inherited from
`Module.onEvent`
[`Module`](/v4/api/interfaces/module/).[`onEvent`](/v4/api/interfaces/module/#onevent)
#### Source
[src/types/core-modules.ts:37](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L37)
[src/types/core-modules.ts:37](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L37)
***
@@ -105,11 +105,11 @@ title: "MentionableSelectCommand"
#### Inherited from
`Module.plugins`
[`Module`](/v4/api/interfaces/module/).[`plugins`](/v4/api/interfaces/module/#plugins)
#### Source
[src/types/core-modules.ts:38](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L38)
[src/types/core-modules.ts:38](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L38)
***
@@ -119,8 +119,8 @@ title: "MentionableSelectCommand"
#### Overrides
`Module.type`
[`Module`](/v4/api/interfaces/module/).[`type`](/v4/api/interfaces/module/#type)
#### Source
[src/types/core-modules.ts:100](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L100)
[src/types/core-modules.ts:100](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L100)

View File

@@ -7,7 +7,7 @@ title: "ModalSubmitCommand"
## Extends
- `Module`
- [`Module`](/v4/api/interfaces/module/)
## Properties
@@ -17,11 +17,11 @@ title: "ModalSubmitCommand"
#### Inherited from
`Module.description`
[`Module`](/v4/api/interfaces/module/).[`description`](/v4/api/interfaces/module/#description)
#### Source
[src/types/core-modules.ts:39](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L39)
[src/types/core-modules.ts:39](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L39)
***
@@ -41,11 +41,11 @@ title: "ModalSubmitCommand"
#### Overrides
`Module.execute`
[`Module`](/v4/api/interfaces/module/).[`execute`](/v4/api/interfaces/module/#execute)
#### Source
[src/types/core-modules.ts:111](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L111)
[src/types/core-modules.ts:111](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L111)
***
@@ -63,11 +63,11 @@ title: "ModalSubmitCommand"
#### Inherited from
`Module.meta`
[`Module`](/v4/api/interfaces/module/).[`meta`](/v4/api/interfaces/module/#meta)
#### Source
[src/types/core-modules.ts:40](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L40)
[src/types/core-modules.ts:40](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L40)
***
@@ -77,11 +77,11 @@ title: "ModalSubmitCommand"
#### Inherited from
`Module.name`
[`Module`](/v4/api/interfaces/module/).[`name`](/v4/api/interfaces/module/#name)
#### Source
[src/types/core-modules.ts:36](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L36)
[src/types/core-modules.ts:36](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L36)
***
@@ -91,11 +91,11 @@ title: "ModalSubmitCommand"
#### Inherited from
`Module.onEvent`
[`Module`](/v4/api/interfaces/module/).[`onEvent`](/v4/api/interfaces/module/#onevent)
#### Source
[src/types/core-modules.ts:37](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L37)
[src/types/core-modules.ts:37](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L37)
***
@@ -105,11 +105,11 @@ title: "ModalSubmitCommand"
#### Inherited from
`Module.plugins`
[`Module`](/v4/api/interfaces/module/).[`plugins`](/v4/api/interfaces/module/#plugins)
#### Source
[src/types/core-modules.ts:38](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L38)
[src/types/core-modules.ts:38](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L38)
***
@@ -119,8 +119,8 @@ title: "ModalSubmitCommand"
#### Overrides
`Module.type`
[`Module`](/v4/api/interfaces/module/).[`type`](/v4/api/interfaces/module/#type)
#### Source
[src/types/core-modules.ts:110](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L110)
[src/types/core-modules.ts:110](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L110)

View File

@@ -0,0 +1,110 @@
---
editUrl: false
next: false
prev: false
title: "Module"
---
## Extended by
- [`BothCommand`](/v4/api/interfaces/bothcommand/)
- [`ContextMenuMsg`](/v4/api/interfaces/contextmenumsg/)
- [`ContextMenuUser`](/v4/api/interfaces/contextmenuuser/)
- [`SlashCommand`](/v4/api/interfaces/slashcommand/)
- [`TextCommand`](/v4/api/interfaces/textcommand/)
- [`ButtonCommand`](/v4/api/interfaces/buttoncommand/)
- [`StringSelectCommand`](/v4/api/interfaces/stringselectcommand/)
- [`MentionableSelectCommand`](/v4/api/interfaces/mentionableselectcommand/)
- [`UserSelectCommand`](/v4/api/interfaces/userselectcommand/)
- [`ChannelSelectCommand`](/v4/api/interfaces/channelselectcommand/)
- [`RoleSelectCommand`](/v4/api/interfaces/roleselectcommand/)
- [`ModalSubmitCommand`](/v4/api/interfaces/modalsubmitcommand/)
- [`DiscordEventCommand`](/v4/api/interfaces/discordeventcommand/)
- [`SernEventCommand`](/v4/api/interfaces/serneventcommand/)
- [`ExternalEventCommand`](/v4/api/interfaces/externaleventcommand/)
## Properties
### description?
> `optional` **description**: `string`
#### Source
[src/types/core-modules.ts:39](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L39)
***
### meta
> **meta**: `object`
#### absPath
> **absPath**: `string`
#### id
> **id**: `string`
#### Source
[src/types/core-modules.ts:40](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L40)
***
### name?
> `optional` **name**: `string`
#### Source
[src/types/core-modules.ts:36](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L36)
***
### onEvent
> **onEvent**: [`ControlPlugin`](/v4/api/interfaces/controlplugin/)\<`any`[]\>[]
#### Source
[src/types/core-modules.ts:37](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L37)
***
### plugins
> **plugins**: [`InitPlugin`](/v4/api/interfaces/initplugin/)\<`any`[]\>[]
#### Source
[src/types/core-modules.ts:38](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L38)
***
### type
> **type**: [`CommandType`](/v4/api/enumerations/commandtype/) \| [`EventType`](/v4/api/enumerations/eventtype/)
#### Source
[src/types/core-modules.ts:35](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L35)
## Methods
### execute()
> **execute**(...`args`): `any`
#### Parameters
• ...**args**: `any`[]
#### Returns
`any`
#### Source
[src/types/core-modules.ts:44](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L44)

View File

@@ -30,7 +30,7 @@ title: "Plugin"
#### Source
[src/types/core-plugin.ts:44](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-plugin.ts#L44)
[src/types/core-plugin.ts:44](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-plugin.ts#L44)
***
@@ -40,4 +40,4 @@ title: "Plugin"
#### Source
[src/types/core-plugin.ts:43](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-plugin.ts#L43)
[src/types/core-plugin.ts:43](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-plugin.ts#L43)

View File

@@ -13,7 +13,7 @@ title: "PresenceResult"
#### Source
[src/core/presences.ts:11](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/presences.ts#L11)
[src/core/presences.ts:11](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/presences.ts#L11)
***
@@ -23,7 +23,7 @@ title: "PresenceResult"
#### Source
[src/core/presences.ts:10](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/presences.ts#L10)
[src/core/presences.ts:10](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/presences.ts#L10)
***
@@ -41,7 +41,7 @@ title: "PresenceResult"
#### Source
[src/core/presences.ts:14](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/presences.ts#L14)
[src/core/presences.ts:14](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/presences.ts#L14)
***
@@ -51,7 +51,7 @@ title: "PresenceResult"
#### Source
[src/core/presences.ts:13](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/presences.ts#L13)
[src/core/presences.ts:13](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/presences.ts#L13)
***
@@ -61,7 +61,7 @@ title: "PresenceResult"
#### Source
[src/core/presences.ts:12](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/presences.ts#L12)
[src/core/presences.ts:12](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/presences.ts#L12)
***
@@ -71,4 +71,4 @@ title: "PresenceResult"
#### Source
[src/core/presences.ts:9](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/presences.ts#L9)
[src/core/presences.ts:9](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/presences.ts#L9)

View File

@@ -7,7 +7,7 @@ title: "RoleSelectCommand"
## Extends
- `Module`
- [`Module`](/v4/api/interfaces/module/)
## Properties
@@ -17,11 +17,11 @@ title: "RoleSelectCommand"
#### Inherited from
`Module.description`
[`Module`](/v4/api/interfaces/module/).[`description`](/v4/api/interfaces/module/#description)
#### Source
[src/types/core-modules.ts:39](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L39)
[src/types/core-modules.ts:39](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L39)
***
@@ -41,11 +41,11 @@ title: "RoleSelectCommand"
#### Overrides
`Module.execute`
[`Module`](/v4/api/interfaces/module/).[`execute`](/v4/api/interfaces/module/#execute)
#### Source
[src/types/core-modules.ts:96](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L96)
[src/types/core-modules.ts:96](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L96)
***
@@ -63,11 +63,11 @@ title: "RoleSelectCommand"
#### Inherited from
`Module.meta`
[`Module`](/v4/api/interfaces/module/).[`meta`](/v4/api/interfaces/module/#meta)
#### Source
[src/types/core-modules.ts:40](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L40)
[src/types/core-modules.ts:40](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L40)
***
@@ -77,11 +77,11 @@ title: "RoleSelectCommand"
#### Inherited from
`Module.name`
[`Module`](/v4/api/interfaces/module/).[`name`](/v4/api/interfaces/module/#name)
#### Source
[src/types/core-modules.ts:36](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L36)
[src/types/core-modules.ts:36](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L36)
***
@@ -91,11 +91,11 @@ title: "RoleSelectCommand"
#### Inherited from
`Module.onEvent`
[`Module`](/v4/api/interfaces/module/).[`onEvent`](/v4/api/interfaces/module/#onevent)
#### Source
[src/types/core-modules.ts:37](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L37)
[src/types/core-modules.ts:37](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L37)
***
@@ -105,11 +105,11 @@ title: "RoleSelectCommand"
#### Inherited from
`Module.plugins`
[`Module`](/v4/api/interfaces/module/).[`plugins`](/v4/api/interfaces/module/#plugins)
#### Source
[src/types/core-modules.ts:38](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L38)
[src/types/core-modules.ts:38](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L38)
***
@@ -119,8 +119,8 @@ title: "RoleSelectCommand"
#### Overrides
`Module.type`
[`Module`](/v4/api/interfaces/module/).[`type`](/v4/api/interfaces/module/#type)
#### Source
[src/types/core-modules.ts:95](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L95)
[src/types/core-modules.ts:95](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L95)

View File

@@ -17,7 +17,7 @@ title: "SernAutocompleteData"
#### Source
[src/types/core-modules.ts:185](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L185)
[src/types/core-modules.ts:185](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L185)
***
@@ -27,7 +27,7 @@ title: "SernAutocompleteData"
#### Source
[src/types/core-modules.ts:190](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L190)
[src/types/core-modules.ts:190](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L190)
***
@@ -107,4 +107,4 @@ node\_modules/discord.js/typings/index.d.ts:4717
#### Source
[src/types/core-modules.ts:186](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L186)
[src/types/core-modules.ts:186](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L186)

View File

@@ -7,7 +7,7 @@ title: "SernEventCommand"
## Extends
- `Module`
- [`Module`](/v4/api/interfaces/module/)
## Type parameters
@@ -21,11 +21,11 @@ title: "SernEventCommand"
#### Inherited from
`Module.description`
[`Module`](/v4/api/interfaces/module/).[`description`](/v4/api/interfaces/module/#description)
#### Source
[src/types/core-modules.ts:39](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L39)
[src/types/core-modules.ts:39](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L39)
***
@@ -43,11 +43,11 @@ title: "SernEventCommand"
#### Inherited from
`Module.meta`
[`Module`](/v4/api/interfaces/module/).[`meta`](/v4/api/interfaces/module/#meta)
#### Source
[src/types/core-modules.ts:40](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L40)
[src/types/core-modules.ts:40](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L40)
***
@@ -57,11 +57,11 @@ title: "SernEventCommand"
#### Overrides
`Module.name`
[`Module`](/v4/api/interfaces/module/).[`name`](/v4/api/interfaces/module/#name)
#### Source
[src/types/core-modules.ts:49](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L49)
[src/types/core-modules.ts:49](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L49)
***
@@ -71,11 +71,11 @@ title: "SernEventCommand"
#### Inherited from
`Module.onEvent`
[`Module`](/v4/api/interfaces/module/).[`onEvent`](/v4/api/interfaces/module/#onevent)
#### Source
[src/types/core-modules.ts:37](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L37)
[src/types/core-modules.ts:37](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L37)
***
@@ -85,11 +85,11 @@ title: "SernEventCommand"
#### Inherited from
`Module.plugins`
[`Module`](/v4/api/interfaces/module/).[`plugins`](/v4/api/interfaces/module/#plugins)
#### Source
[src/types/core-modules.ts:38](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L38)
[src/types/core-modules.ts:38](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L38)
***
@@ -99,11 +99,11 @@ title: "SernEventCommand"
#### Overrides
`Module.type`
[`Module`](/v4/api/interfaces/module/).[`type`](/v4/api/interfaces/module/#type)
#### Source
[src/types/core-modules.ts:50](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L50)
[src/types/core-modules.ts:50](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L50)
## Methods
@@ -121,8 +121,8 @@ title: "SernEventCommand"
#### Overrides
`Module.execute`
[`Module`](/v4/api/interfaces/module/).[`execute`](/v4/api/interfaces/module/#execute)
#### Source
[src/types/core-modules.ts:51](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L51)
[src/types/core-modules.ts:51](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L51)

View File

@@ -13,7 +13,7 @@ title: "SernEventsMapping"
#### Source
[src/types/utility.ts:13](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/utility.ts#L13)
[src/types/utility.ts:13](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/utility.ts#L13)
***
@@ -23,7 +23,7 @@ title: "SernEventsMapping"
#### Source
[src/types/utility.ts:12](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/utility.ts#L12)
[src/types/utility.ts:12](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/utility.ts#L12)
***
@@ -33,7 +33,7 @@ title: "SernEventsMapping"
#### Source
[src/types/utility.ts:11](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/utility.ts#L11)
[src/types/utility.ts:11](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/utility.ts#L11)
***
@@ -43,7 +43,7 @@ title: "SernEventsMapping"
#### Source
[src/types/utility.ts:15](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/utility.ts#L15)
[src/types/utility.ts:15](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/utility.ts#L15)
***
@@ -53,4 +53,4 @@ title: "SernEventsMapping"
#### Source
[src/types/utility.ts:14](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/utility.ts#L14)
[src/types/utility.ts:14](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/utility.ts#L14)

View File

@@ -73,7 +73,7 @@ node\_modules/discord-api-types/payloads/v10/\_interactions/\_applicationCommand
#### Source
[src/types/core-modules.ts:222](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L222)
[src/types/core-modules.ts:225](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L225)
***
@@ -101,4 +101,4 @@ node\_modules/discord-api-types/payloads/v10/\_interactions/\_applicationCommand
#### Source
[src/types/core-modules.ts:221](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L221)
[src/types/core-modules.ts:224](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L224)

View File

@@ -87,7 +87,7 @@ node\_modules/discord.js/typings/index.d.ts:4714
#### Source
[src/types/core-modules.ts:227](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L227)
[src/types/core-modules.ts:230](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L230)
***
@@ -111,4 +111,4 @@ node\_modules/discord.js/typings/index.d.ts:4717
#### Source
[src/types/core-modules.ts:226](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L226)
[src/types/core-modules.ts:229](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L229)

View File

@@ -7,7 +7,7 @@ title: "SlashCommand"
## Extends
- `Module`
- [`Module`](/v4/api/interfaces/module/)
## Properties
@@ -17,11 +17,11 @@ title: "SlashCommand"
#### Overrides
`Module.description`
[`Module`](/v4/api/interfaces/module/).[`description`](/v4/api/interfaces/module/#description)
#### Source
[src/types/core-modules.ts:132](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L132)
[src/types/core-modules.ts:132](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L132)
***
@@ -41,11 +41,11 @@ title: "SlashCommand"
#### Overrides
`Module.execute`
[`Module`](/v4/api/interfaces/module/).[`execute`](/v4/api/interfaces/module/#execute)
#### Source
[src/types/core-modules.ts:134](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L134)
[src/types/core-modules.ts:134](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L134)
***
@@ -63,11 +63,11 @@ title: "SlashCommand"
#### Inherited from
`Module.meta`
[`Module`](/v4/api/interfaces/module/).[`meta`](/v4/api/interfaces/module/#meta)
#### Source
[src/types/core-modules.ts:40](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L40)
[src/types/core-modules.ts:40](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L40)
***
@@ -77,11 +77,11 @@ title: "SlashCommand"
#### Inherited from
`Module.name`
[`Module`](/v4/api/interfaces/module/).[`name`](/v4/api/interfaces/module/#name)
#### Source
[src/types/core-modules.ts:36](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L36)
[src/types/core-modules.ts:36](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L36)
***
@@ -91,11 +91,11 @@ title: "SlashCommand"
#### Inherited from
`Module.onEvent`
[`Module`](/v4/api/interfaces/module/).[`onEvent`](/v4/api/interfaces/module/#onevent)
#### Source
[src/types/core-modules.ts:37](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L37)
[src/types/core-modules.ts:37](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L37)
***
@@ -105,7 +105,7 @@ title: "SlashCommand"
#### Source
[src/types/core-modules.ts:133](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L133)
[src/types/core-modules.ts:133](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L133)
***
@@ -115,11 +115,11 @@ title: "SlashCommand"
#### Inherited from
`Module.plugins`
[`Module`](/v4/api/interfaces/module/).[`plugins`](/v4/api/interfaces/module/#plugins)
#### Source
[src/types/core-modules.ts:38](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L38)
[src/types/core-modules.ts:38](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L38)
***
@@ -129,8 +129,8 @@ title: "SlashCommand"
#### Overrides
`Module.type`
[`Module`](/v4/api/interfaces/module/).[`type`](/v4/api/interfaces/module/#type)
#### Source
[src/types/core-modules.ts:131](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L131)
[src/types/core-modules.ts:131](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L131)

View File

@@ -7,7 +7,7 @@ title: "StringSelectCommand"
## Extends
- `Module`
- [`Module`](/v4/api/interfaces/module/)
## Properties
@@ -17,11 +17,11 @@ title: "StringSelectCommand"
#### Inherited from
`Module.description`
[`Module`](/v4/api/interfaces/module/).[`description`](/v4/api/interfaces/module/#description)
#### Source
[src/types/core-modules.ts:39](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L39)
[src/types/core-modules.ts:39](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L39)
***
@@ -41,11 +41,11 @@ title: "StringSelectCommand"
#### Overrides
`Module.execute`
[`Module`](/v4/api/interfaces/module/).[`execute`](/v4/api/interfaces/module/#execute)
#### Source
[src/types/core-modules.ts:86](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L86)
[src/types/core-modules.ts:86](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L86)
***
@@ -63,11 +63,11 @@ title: "StringSelectCommand"
#### Inherited from
`Module.meta`
[`Module`](/v4/api/interfaces/module/).[`meta`](/v4/api/interfaces/module/#meta)
#### Source
[src/types/core-modules.ts:40](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L40)
[src/types/core-modules.ts:40](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L40)
***
@@ -77,11 +77,11 @@ title: "StringSelectCommand"
#### Inherited from
`Module.name`
[`Module`](/v4/api/interfaces/module/).[`name`](/v4/api/interfaces/module/#name)
#### Source
[src/types/core-modules.ts:36](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L36)
[src/types/core-modules.ts:36](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L36)
***
@@ -91,11 +91,11 @@ title: "StringSelectCommand"
#### Inherited from
`Module.onEvent`
[`Module`](/v4/api/interfaces/module/).[`onEvent`](/v4/api/interfaces/module/#onevent)
#### Source
[src/types/core-modules.ts:37](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L37)
[src/types/core-modules.ts:37](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L37)
***
@@ -105,11 +105,11 @@ title: "StringSelectCommand"
#### Inherited from
`Module.plugins`
[`Module`](/v4/api/interfaces/module/).[`plugins`](/v4/api/interfaces/module/#plugins)
#### Source
[src/types/core-modules.ts:38](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L38)
[src/types/core-modules.ts:38](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L38)
***
@@ -119,8 +119,8 @@ title: "StringSelectCommand"
#### Overrides
`Module.type`
[`Module`](/v4/api/interfaces/module/).[`type`](/v4/api/interfaces/module/#type)
#### Source
[src/types/core-modules.ts:85](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L85)
[src/types/core-modules.ts:85](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L85)

View File

@@ -7,7 +7,7 @@ title: "TextCommand"
## Extends
- `Module`
- [`Module`](/v4/api/interfaces/module/)
## Properties
@@ -17,11 +17,11 @@ title: "TextCommand"
#### Inherited from
`Module.description`
[`Module`](/v4/api/interfaces/module/).[`description`](/v4/api/interfaces/module/#description)
#### Source
[src/types/core-modules.ts:39](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L39)
[src/types/core-modules.ts:39](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L39)
***
@@ -41,11 +41,11 @@ title: "TextCommand"
#### Overrides
`Module.execute`
[`Module`](/v4/api/interfaces/module/).[`execute`](/v4/api/interfaces/module/#execute)
#### Source
[src/types/core-modules.ts:127](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L127)
[src/types/core-modules.ts:127](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L127)
***
@@ -63,11 +63,11 @@ title: "TextCommand"
#### Inherited from
`Module.meta`
[`Module`](/v4/api/interfaces/module/).[`meta`](/v4/api/interfaces/module/#meta)
#### Source
[src/types/core-modules.ts:40](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L40)
[src/types/core-modules.ts:40](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L40)
***
@@ -77,11 +77,11 @@ title: "TextCommand"
#### Inherited from
`Module.name`
[`Module`](/v4/api/interfaces/module/).[`name`](/v4/api/interfaces/module/#name)
#### Source
[src/types/core-modules.ts:36](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L36)
[src/types/core-modules.ts:36](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L36)
***
@@ -91,11 +91,11 @@ title: "TextCommand"
#### Inherited from
`Module.onEvent`
[`Module`](/v4/api/interfaces/module/).[`onEvent`](/v4/api/interfaces/module/#onevent)
#### Source
[src/types/core-modules.ts:37](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L37)
[src/types/core-modules.ts:37](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L37)
***
@@ -105,11 +105,11 @@ title: "TextCommand"
#### Inherited from
`Module.plugins`
[`Module`](/v4/api/interfaces/module/).[`plugins`](/v4/api/interfaces/module/#plugins)
#### Source
[src/types/core-modules.ts:38](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L38)
[src/types/core-modules.ts:38](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L38)
***
@@ -119,8 +119,8 @@ title: "TextCommand"
#### Overrides
`Module.type`
[`Module`](/v4/api/interfaces/module/).[`type`](/v4/api/interfaces/module/#type)
#### Source
[src/types/core-modules.ts:126](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L126)
[src/types/core-modules.ts:126](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L126)

View File

@@ -7,7 +7,7 @@ title: "UserSelectCommand"
## Extends
- `Module`
- [`Module`](/v4/api/interfaces/module/)
## Properties
@@ -17,11 +17,11 @@ title: "UserSelectCommand"
#### Inherited from
`Module.description`
[`Module`](/v4/api/interfaces/module/).[`description`](/v4/api/interfaces/module/#description)
#### Source
[src/types/core-modules.ts:39](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L39)
[src/types/core-modules.ts:39](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L39)
***
@@ -41,11 +41,11 @@ title: "UserSelectCommand"
#### Overrides
`Module.execute`
[`Module`](/v4/api/interfaces/module/).[`execute`](/v4/api/interfaces/module/#execute)
#### Source
[src/types/core-modules.ts:106](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L106)
[src/types/core-modules.ts:106](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L106)
***
@@ -63,11 +63,11 @@ title: "UserSelectCommand"
#### Inherited from
`Module.meta`
[`Module`](/v4/api/interfaces/module/).[`meta`](/v4/api/interfaces/module/#meta)
#### Source
[src/types/core-modules.ts:40](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L40)
[src/types/core-modules.ts:40](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L40)
***
@@ -77,11 +77,11 @@ title: "UserSelectCommand"
#### Inherited from
`Module.name`
[`Module`](/v4/api/interfaces/module/).[`name`](/v4/api/interfaces/module/#name)
#### Source
[src/types/core-modules.ts:36](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L36)
[src/types/core-modules.ts:36](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L36)
***
@@ -91,11 +91,11 @@ title: "UserSelectCommand"
#### Inherited from
`Module.onEvent`
[`Module`](/v4/api/interfaces/module/).[`onEvent`](/v4/api/interfaces/module/#onevent)
#### Source
[src/types/core-modules.ts:37](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L37)
[src/types/core-modules.ts:37](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L37)
***
@@ -105,11 +105,11 @@ title: "UserSelectCommand"
#### Inherited from
`Module.plugins`
[`Module`](/v4/api/interfaces/module/).[`plugins`](/v4/api/interfaces/module/#plugins)
#### Source
[src/types/core-modules.ts:38](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L38)
[src/types/core-modules.ts:38](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L38)
***
@@ -119,8 +119,8 @@ title: "UserSelectCommand"
#### Overrides
`Module.type`
[`Module`](/v4/api/interfaces/module/).[`type`](/v4/api/interfaces/module/#type)
#### Source
[src/types/core-modules.ts:105](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L105)
[src/types/core-modules.ts:105](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L105)

View File

@@ -30,4 +30,4 @@ Sern.init({
## Source
[src/sern.ts:32](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/sern.ts#L32)
[src/sern.ts:32](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/sern.ts#L32)

View File

@@ -5,8 +5,8 @@ prev: false
title: "AnyPlugin"
---
> **AnyPlugin**: [`ControlPlugin`](/v4/api/interfaces/controlplugin/) \| [`InitPlugin`](/v4/api/interfaces/initplugin/)\<[`InitArgs`\<`Processed`\<`Module`\>\>]\>
> **AnyPlugin**: [`ControlPlugin`](/v4/api/interfaces/controlplugin/) \| [`InitPlugin`](/v4/api/interfaces/initplugin/)\<[`InitArgs`\<`Processed`\<[`Module`](/v4/api/interfaces/module/)\>\>]\>
## Source
[src/types/core-plugin.ts:54](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-plugin.ts#L54)
[src/types/core-plugin.ts:54](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-plugin.ts#L54)

View File

@@ -5,8 +5,8 @@ prev: false
title: "AssetEncoding"
---
> **AssetEncoding**: `"attachment"` \| `"base64"` \| `"binary"` \| `"utf8"`
> **AssetEncoding**: `"attachment"` \| `"base64"` \| `"binary"` \| `"utf8"` \| `"json"`
## Source
[src/index.ts:60](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/index.ts#L60)
[src/index.ts:61](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/index.ts#L61)

View File

@@ -9,4 +9,4 @@ title: "CommandModule"
## Source
[src/types/core-modules.ts:145](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L145)
[src/types/core-modules.ts:145](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L145)

View File

@@ -9,4 +9,4 @@ title: "Controller"
## Source
[src/index.ts:54](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/index.ts#L54)
[src/index.ts:55](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/index.ts#L55)

View File

@@ -9,4 +9,4 @@ title: "EventModule"
## Source
[src/types/core-modules.ts:144](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L144)
[src/types/core-modules.ts:144](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L144)

View File

@@ -19,4 +19,4 @@ title: "LogPayload"
## Source
[src/core/interfaces.ts:55](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/interfaces.ts#L55)
[src/core/interfaces.ts:55](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/interfaces.ts#L55)

View File

@@ -9,4 +9,4 @@ title: "Payload"
## Source
[src/types/utility.ts:18](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/utility.ts#L18)
[src/types/utility.ts:18](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/utility.ts#L18)

View File

@@ -9,4 +9,4 @@ title: "PluginResult"
## Source
[src/types/core-plugin.ts:35](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-plugin.ts#L35)
[src/types/core-plugin.ts:35](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-plugin.ts#L35)

View File

@@ -31,4 +31,4 @@ title: "PresenceConfig"
## Source
[src/core/presences.ts:61](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/presences.ts#L61)
[src/core/presences.ts:60](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/presences.ts#L60)

View File

@@ -27,4 +27,4 @@ title: "SDT"
## Source
[src/types/core-modules.ts:25](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L25)
[src/types/core-modules.ts:25](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L25)

View File

@@ -7,8 +7,8 @@ title: "SernOptionsData"
> **SernOptionsData**: [`SernSubCommandData`](/v4/api/interfaces/sernsubcommanddata/) \| [`SernSubCommandGroupData`](/v4/api/interfaces/sernsubcommandgroupdata/) \| `APIApplicationCommandBasicOption` \| [`SernAutocompleteData`](/v4/api/interfaces/sernautocompletedata/)
Type that replaces autocomplete with [SernAutocompleteData](../../../../../../../../v4/api/interfaces/sernautocompletedata)
Type that replaces autocomplete with [SernAutocompleteData](../../../../../../v4/api/interfaces/sernautocompletedata)
## Source
[src/types/core-modules.ts:213](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/types/core-modules.ts#L213)
[src/types/core-modules.ts:216](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L216)

View File

@@ -56,9 +56,8 @@ Presence.of({
activities: [
{ name: "Chilling out" }
]
})
.once() // Sets the presence once, with what's provided in '.of()'
```
}).once() // Sets the presence once, with what's provided in '.of()'
```
###### Returns
@@ -72,15 +71,13 @@ Presence.of({
```ts
Presence
.of({
activities: [{ name: "deez nuts" }]
}) //starts the presence with "deez nuts".
.of({ activities: [{ name: "deez nuts" }] }) //starts presence with "deez nuts".
.repeated(prev => {
return {
afk: true,
activities: prev.activities?.map(s => ({ ...s, name: s.name+"s" }))
};
}, 10000)) //every 10 s, the callback sets the presence to the returned one.
}, 10000)) //every 10 s, the callback sets the presence to the value returned.
```
###### Parameters
@@ -119,4 +116,4 @@ Presence
## Source
[src/core/presences.ts:17](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/presences.ts#L17)
[src/core/presences.ts:17](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/presences.ts#L17)

View File

@@ -40,4 +40,4 @@ The object passed into every plugin to control a command's behavior
## Source
[src/core/create-plugins.ts:39](https://github.com/sern-handler/handler/blob/67bb4d4b9fa126f24874a3de1d4378e9fe9aca07/src/core/create-plugins.ts#L39)
[src/core/create-plugins.ts:39](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/core/create-plugins.ts#L39)

View File

@@ -46,7 +46,7 @@ import { Tabs, TabItem } from "@astrojs/starlight/components";
```json title=~/assets/locals/en-US.json
{
"salute": {
"hello": "hola"
"hello": "hello"
}
}
```

6
src/utils.ts Normal file
View File

@@ -0,0 +1,6 @@
import { type ClassValue, clsx } from "clsx"
import { twMerge } from "tailwind-merge"
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs))
}

View File

@@ -51,3 +51,16 @@ export const PluginSchema = z.object({
example: z.string(),
version: z.string(),
});
export type Bot = z.infer<typeof BotSchema>;
export const BotSchema = z.object({
id: z.string(),
userId: z.string(),
name: z.string(),
description: z.string(),
verified: z.boolean(),
pfpLink: z.string(),
inviteLink: z.string(),
srcLink: z.string().url(),
botId: z.string(),
});

View File

@@ -1,4 +1,5 @@
import starlightPlugin from '@astrojs/starlight-tailwind';
import tailwindAnimate from 'tailwindcss-animate';
// Generated with https://starlight.astro.build/guides/css-and-tailwind/#tailwind-css
const accent = { 200: '#eabac2', 600: '#b6335c', 900: '#541c2b', 950: '#3a171f' };
@@ -10,7 +11,21 @@ export default {
theme: {
extend: {
colors: { accent, gray },
keyframes: {
"accordion-down": {
from: { height: "0" },
to: { height: "var(--radix-accordion-content-height)" },
},
"accordion-up": {
from: { height: "var(--radix-accordion-content-height)" },
to: { height: "0" },
},
},
animation: {
"accordion-down": "accordion-down 0.2s ease-out",
"accordion-up": "accordion-up 0.2s ease-out",
},
},
},
plugins: [starlightPlugin()],
plugins: [starlightPlugin(), tailwindAnimate],
};

View File

@@ -3,7 +3,7 @@
"exclude": [
"sern-handler",
"sern-handler-v3",
"sern-handler-v4",
"sern-handler-v4"
],
"compilerOptions": {
"baseUrl": ".",
@@ -12,5 +12,7 @@
"src/*"
]
},
"jsx": "react-jsx",
"jsxImportSource": "react"
}
}