diff --git a/astro.config.mjs b/astro.config.mjs index 4f73be0ee..55580e89b 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -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()] +}); \ No newline at end of file diff --git a/bun.lockb b/bun.lockb index 2e2105df5..9b568c9af 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/components.json b/components.json new file mode 100644 index 000000000..3445d27fb --- /dev/null +++ b/components.json @@ -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" + } +} \ No newline at end of file diff --git a/package.json b/package.json index 5f911b9be..c4e62c270 100644 --- a/package.json +++ b/package.json @@ -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" diff --git a/src/components/BotCard.tsx b/src/components/BotCard.tsx new file mode 100644 index 000000000..d0a872f3a --- /dev/null +++ b/src/components/BotCard.tsx @@ -0,0 +1,43 @@ +import { Link } from "lucide-react"; +import type { Bot } from "~/utils/types"; + +export default ({ bot }: { bot: Bot }) => ( +
+
+ {bot.name} +

{bot.name}

+
+ {bot.srcLink && ( + + + + + + )} + {bot.inviteLink && ( + + + + )} +
+
+
+

{bot.description}

+
+
+); diff --git a/src/components/BotCarousel.tsx b/src/components/BotCarousel.tsx new file mode 100644 index 000000000..9a62313ec --- /dev/null +++ b/src/components/BotCarousel.tsx @@ -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[] }) => ( +
+ + + {bots.map((bot) => ( + + + + ))} + + +
+); diff --git a/src/components/CommunityShowcase.astro b/src/components/CommunityShowcase.astro new file mode 100644 index 000000000..6f1ad0691 --- /dev/null +++ b/src/components/CommunityShowcase.astro @@ -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); +} +--- + +
+ +
diff --git a/src/components/ui/button.tsx b/src/components/ui/button.tsx new file mode 100644 index 000000000..f624b398b --- /dev/null +++ b/src/components/ui/button.tsx @@ -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, + VariantProps { + asChild?: boolean +} + +const Button = React.forwardRef( + ({ className, variant, size, asChild = false, ...props }, ref) => { + const Comp = asChild ? Slot : "button" + return ( + + ) + } +) +Button.displayName = "Button" + +export { Button, buttonVariants } diff --git a/src/components/ui/carousel.tsx b/src/components/ui/carousel.tsx new file mode 100644 index 000000000..3f4473077 --- /dev/null +++ b/src/components/ui/carousel.tsx @@ -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 +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[0] + api: ReturnType[1] + scrollPrev: () => void + scrollNext: () => void + canScrollPrev: boolean + canScrollNext: boolean +} & CarouselProps + +const CarouselContext = React.createContext(null) + +function useCarousel() { + const context = React.useContext(CarouselContext) + + if (!context) { + throw new Error("useCarousel must be used within a ") + } + + return context +} + +const Carousel = React.forwardRef< + HTMLDivElement, + React.HTMLAttributes & 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) => { + 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 ( + +
+ {children} +
+
+ ) + } +) +Carousel.displayName = "Carousel" + +const CarouselContent = React.forwardRef< + HTMLDivElement, + React.HTMLAttributes +>(({ className, ...props }, ref) => { + const { carouselRef, orientation } = useCarousel() + + return ( +
+
+
+ ) +}) +CarouselContent.displayName = "CarouselContent" + +const CarouselItem = React.forwardRef< + HTMLDivElement, + React.HTMLAttributes +>(({ className, ...props }, ref) => { + const { orientation } = useCarousel() + + return ( +
+ ) +}) +CarouselItem.displayName = "CarouselItem" + +const CarouselPrevious = React.forwardRef< + HTMLButtonElement, + React.ComponentProps +>(({ className, variant = "outline", size = "icon", ...props }, ref) => { + const { orientation, scrollPrev, canScrollPrev } = useCarousel() + + return ( + + ) +}) +CarouselPrevious.displayName = "CarouselPrevious" + +const CarouselNext = React.forwardRef< + HTMLButtonElement, + React.ComponentProps +>(({ className, variant = "outline", size = "icon", ...props }, ref) => { + const { orientation, scrollNext, canScrollNext } = useCarousel() + + return ( + + ) +}) +CarouselNext.displayName = "CarouselNext" + +export { + type CarouselApi, + Carousel, + CarouselContent, + CarouselItem, + CarouselPrevious, + CarouselNext, +} diff --git a/src/content/docs/index.mdx b/src/content/docs/index.mdx index 7828fa3c4..238da1f88 100644 --- a/src/content/docs/index.mdx +++ b/src/content/docs/index.mdx @@ -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"; + +

Showcase

+ + + +

Features

diff --git a/src/content/docs/v3/api/functions/Services.md b/src/content/docs/v3/api/functions/Services.md index da11a1808..fc4d07dff 100644 --- a/src/content/docs/v3/api/functions/Services.md +++ b/src/content/docs/v3/api/functions/Services.md @@ -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 diff --git a/src/content/docs/v3/api/functions/discordEvent.md b/src/content/docs/v3/api/functions/discordEvent.md index fd9790fe8..189b9c942 100644 --- a/src/content/docs/v3/api/functions/discordEvent.md +++ b/src/content/docs/v3/api/functions/discordEvent.md @@ -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 diff --git a/src/content/docs/v3/api/type-aliases/SernOptionsData.md b/src/content/docs/v3/api/type-aliases/SernOptionsData.md index efd12c0a1..a38e7fe9d 100644 --- a/src/content/docs/v3/api/type-aliases/SernOptionsData.md +++ b/src/content/docs/v3/api/type-aliases/SernOptionsData.md @@ -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 diff --git a/src/content/docs/v4/api/README.md b/src/content/docs/v4/api/README.md index 742f3d0fd..fbf157368 100644 --- a/src/content/docs/v4/api/README.md +++ b/src/content/docs/v4/api/README.md @@ -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/) diff --git a/src/content/docs/v4/api/classes/Context.md b/src/content/docs/v4/api/classes/Context.md index 6945f8ba0..eac35119f 100644 --- a/src/content/docs/v4/api/classes/Context.md +++ b/src/content/docs/v4/api/classes/Context.md @@ -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) diff --git a/src/content/docs/v4/api/enumerations/CommandType.md b/src/content/docs/v4/api/enumerations/CommandType.md index 8e5a382ab..f4a9cb454 100644 --- a/src/content/docs/v4/api/enumerations/CommandType.md +++ b/src/content/docs/v4/api/enumerations/CommandType.md @@ -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) diff --git a/src/content/docs/v4/api/enumerations/EventType.md b/src/content/docs/v4/api/enumerations/EventType.md index cfb471756..5ec0715d4 100644 --- a/src/content/docs/v4/api/enumerations/EventType.md +++ b/src/content/docs/v4/api/enumerations/EventType.md @@ -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) diff --git a/src/content/docs/v4/api/enumerations/PayloadType.md b/src/content/docs/v4/api/enumerations/PayloadType.md index d82311b09..61d5b3830 100644 --- a/src/content/docs/v4/api/enumerations/PayloadType.md +++ b/src/content/docs/v4/api/enumerations/PayloadType.md @@ -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) diff --git a/src/content/docs/v4/api/enumerations/PluginType.md b/src/content/docs/v4/api/enumerations/PluginType.md index 44321b920..42d4d0038 100644 --- a/src/content/docs/v4/api/enumerations/PluginType.md +++ b/src/content/docs/v4/api/enumerations/PluginType.md @@ -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) diff --git a/src/content/docs/v4/api/functions/Asset.md b/src/content/docs/v4/api/functions/Asset.md index 9a8d10726..f0b7667cc 100644 --- a/src/content/docs/v4/api/functions/Asset.md +++ b/src/content/docs/v4/api/functions/Asset.md @@ -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) diff --git a/src/content/docs/v4/api/functions/CommandControlPlugin.md b/src/content/docs/v4/api/functions/CommandControlPlugin.md index 022ecee1d..16454a3eb 100644 --- a/src/content/docs/v4/api/functions/CommandControlPlugin.md +++ b/src/content/docs/v4/api/functions/CommandControlPlugin.md @@ -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) diff --git a/src/content/docs/v4/api/functions/CommandInitPlugin.md b/src/content/docs/v4/api/functions/CommandInitPlugin.md index 63357e07d..3ff1a5ba9 100644 --- a/src/content/docs/v4/api/functions/CommandInitPlugin.md +++ b/src/content/docs/v4/api/functions/CommandInitPlugin.md @@ -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) diff --git a/src/content/docs/v4/api/functions/EventInitPlugin.md b/src/content/docs/v4/api/functions/EventInitPlugin.md index 88031453e..001316ad9 100644 --- a/src/content/docs/v4/api/functions/EventInitPlugin.md +++ b/src/content/docs/v4/api/functions/EventInitPlugin.md @@ -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) diff --git a/src/content/docs/v4/api/functions/Service.md b/src/content/docs/v4/api/functions/Service.md index be9ddaf89..27401d695 100644 --- a/src/content/docs/v4/api/functions/Service.md +++ b/src/content/docs/v4/api/functions/Service.md @@ -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) diff --git a/src/content/docs/v4/api/functions/Services.md b/src/content/docs/v4/api/functions/Services.md index 3e59fcbf3..28452a0e5 100644 --- a/src/content/docs/v4/api/functions/Services.md +++ b/src/content/docs/v4/api/functions/Services.md @@ -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) diff --git a/src/content/docs/v4/api/functions/commandModule.md b/src/content/docs/v4/api/functions/commandModule.md index b3d077875..ab9a284ee 100644 --- a/src/content/docs/v4/api/functions/commandModule.md +++ b/src/content/docs/v4/api/functions/commandModule.md @@ -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) diff --git a/src/content/docs/v4/api/functions/discordEvent.md b/src/content/docs/v4/api/functions/discordEvent.md index c92407d64..f40006ac6 100644 --- a/src/content/docs/v4/api/functions/discordEvent.md +++ b/src/content/docs/v4/api/functions/discordEvent.md @@ -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) diff --git a/src/content/docs/v4/api/functions/eventModule.md b/src/content/docs/v4/api/functions/eventModule.md index ea78d39ed..2c352c845 100644 --- a/src/content/docs/v4/api/functions/eventModule.md +++ b/src/content/docs/v4/api/functions/eventModule.md @@ -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) diff --git a/src/content/docs/v4/api/functions/makeDependencies.md b/src/content/docs/v4/api/functions/makeDependencies.md index 4062b55bd..6be1e71cf 100644 --- a/src/content/docs/v4/api/functions/makeDependencies.md +++ b/src/content/docs/v4/api/functions/makeDependencies.md @@ -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) diff --git a/src/content/docs/v4/api/functions/makePlugin.md b/src/content/docs/v4/api/functions/makePlugin.md index d54d4eb58..bae9303f0 100644 --- a/src/content/docs/v4/api/functions/makePlugin.md +++ b/src/content/docs/v4/api/functions/makePlugin.md @@ -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) diff --git a/src/content/docs/v4/api/functions/single.md b/src/content/docs/v4/api/functions/single.md index 9dcc4370f..b0caf761e 100644 --- a/src/content/docs/v4/api/functions/single.md +++ b/src/content/docs/v4/api/functions/single.md @@ -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) diff --git a/src/content/docs/v4/api/functions/transient.md b/src/content/docs/v4/api/functions/transient.md index 608d82f61..60b6c3bba 100644 --- a/src/content/docs/v4/api/functions/transient.md +++ b/src/content/docs/v4/api/functions/transient.md @@ -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) diff --git a/src/content/docs/v4/api/interfaces/BothCommand.md b/src/content/docs/v4/api/interfaces/BothCommand.md index a07f69296..c9a7ba2d4 100644 --- a/src/content/docs/v4/api/interfaces/BothCommand.md +++ b/src/content/docs/v4/api/interfaces/BothCommand.md @@ -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) diff --git a/src/content/docs/v4/api/interfaces/ButtonCommand.md b/src/content/docs/v4/api/interfaces/ButtonCommand.md index 5882502cf..6833652f3 100644 --- a/src/content/docs/v4/api/interfaces/ButtonCommand.md +++ b/src/content/docs/v4/api/interfaces/ButtonCommand.md @@ -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) diff --git a/src/content/docs/v4/api/interfaces/ChannelSelectCommand.md b/src/content/docs/v4/api/interfaces/ChannelSelectCommand.md index 7726250cd..5aad97e26 100644 --- a/src/content/docs/v4/api/interfaces/ChannelSelectCommand.md +++ b/src/content/docs/v4/api/interfaces/ChannelSelectCommand.md @@ -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) diff --git a/src/content/docs/v4/api/interfaces/CommandModuleDefs.md b/src/content/docs/v4/api/interfaces/CommandModuleDefs.md index 481286c6f..ceb8fe4f1 100644 --- a/src/content/docs/v4/api/interfaces/CommandModuleDefs.md +++ b/src/content/docs/v4/api/interfaces/CommandModuleDefs.md @@ -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) diff --git a/src/content/docs/v4/api/interfaces/ContextMenuMsg.md b/src/content/docs/v4/api/interfaces/ContextMenuMsg.md index 425b2c3f9..0f98b1b04 100644 --- a/src/content/docs/v4/api/interfaces/ContextMenuMsg.md +++ b/src/content/docs/v4/api/interfaces/ContextMenuMsg.md @@ -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) diff --git a/src/content/docs/v4/api/interfaces/ContextMenuUser.md b/src/content/docs/v4/api/interfaces/ContextMenuUser.md index 3f6f5e539..abd2364b5 100644 --- a/src/content/docs/v4/api/interfaces/ContextMenuUser.md +++ b/src/content/docs/v4/api/interfaces/ContextMenuUser.md @@ -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) diff --git a/src/content/docs/v4/api/interfaces/ControlPlugin.md b/src/content/docs/v4/api/interfaces/ControlPlugin.md index 87622c764..aa3fbfee3 100644 --- a/src/content/docs/v4/api/interfaces/ControlPlugin.md +++ b/src/content/docs/v4/api/interfaces/ControlPlugin.md @@ -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) diff --git a/src/content/docs/v4/api/interfaces/CoreDependencies.md b/src/content/docs/v4/api/interfaces/CoreDependencies.md index a94b68e4b..880939747 100644 --- a/src/content/docs/v4/api/interfaces/CoreDependencies.md +++ b/src/content/docs/v4/api/interfaces/CoreDependencies.md @@ -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) diff --git a/src/content/docs/v4/api/interfaces/DiscordEventCommand.md b/src/content/docs/v4/api/interfaces/DiscordEventCommand.md index d4d734b26..5b21095b8 100644 --- a/src/content/docs/v4/api/interfaces/DiscordEventCommand.md +++ b/src/content/docs/v4/api/interfaces/DiscordEventCommand.md @@ -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) diff --git a/src/content/docs/v4/api/interfaces/Disposable.md b/src/content/docs/v4/api/interfaces/Disposable.md index 08f58cc30..99f57c21b 100644 --- a/src/content/docs/v4/api/interfaces/Disposable.md +++ b/src/content/docs/v4/api/interfaces/Disposable.md @@ -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) diff --git a/src/content/docs/v4/api/interfaces/Emitter.md b/src/content/docs/v4/api/interfaces/Emitter.md index 519e09b2d..7c7492c6e 100644 --- a/src/content/docs/v4/api/interfaces/Emitter.md +++ b/src/content/docs/v4/api/interfaces/Emitter.md @@ -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) diff --git a/src/content/docs/v4/api/interfaces/ErrorHandling.md b/src/content/docs/v4/api/interfaces/ErrorHandling.md index 8b97d74fe..61adbafdb 100644 --- a/src/content/docs/v4/api/interfaces/ErrorHandling.md +++ b/src/content/docs/v4/api/interfaces/ErrorHandling.md @@ -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) diff --git a/src/content/docs/v4/api/interfaces/EventModuleDefs.md b/src/content/docs/v4/api/interfaces/EventModuleDefs.md index b1281422d..760e4ada0 100644 --- a/src/content/docs/v4/api/interfaces/EventModuleDefs.md +++ b/src/content/docs/v4/api/interfaces/EventModuleDefs.md @@ -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) diff --git a/src/content/docs/v4/api/interfaces/ExternalEventCommand.md b/src/content/docs/v4/api/interfaces/ExternalEventCommand.md index 1e83031c2..5b355304a 100644 --- a/src/content/docs/v4/api/interfaces/ExternalEventCommand.md +++ b/src/content/docs/v4/api/interfaces/ExternalEventCommand.md @@ -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) diff --git a/src/content/docs/v4/api/interfaces/Init.md b/src/content/docs/v4/api/interfaces/Init.md index 817285278..51efc9ad3 100644 --- a/src/content/docs/v4/api/interfaces/Init.md +++ b/src/content/docs/v4/api/interfaces/Init.md @@ -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) diff --git a/src/content/docs/v4/api/interfaces/InitPlugin.md b/src/content/docs/v4/api/interfaces/InitPlugin.md index c10976285..530560493 100644 --- a/src/content/docs/v4/api/interfaces/InitPlugin.md +++ b/src/content/docs/v4/api/interfaces/InitPlugin.md @@ -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) diff --git a/src/content/docs/v4/api/interfaces/Logging.md b/src/content/docs/v4/api/interfaces/Logging.md index b84a0bc37..41b30c3a1 100644 --- a/src/content/docs/v4/api/interfaces/Logging.md +++ b/src/content/docs/v4/api/interfaces/Logging.md @@ -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) diff --git a/src/content/docs/v4/api/interfaces/MentionableSelectCommand.md b/src/content/docs/v4/api/interfaces/MentionableSelectCommand.md index 0a9f01fa7..67e750145 100644 --- a/src/content/docs/v4/api/interfaces/MentionableSelectCommand.md +++ b/src/content/docs/v4/api/interfaces/MentionableSelectCommand.md @@ -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) diff --git a/src/content/docs/v4/api/interfaces/ModalSubmitCommand.md b/src/content/docs/v4/api/interfaces/ModalSubmitCommand.md index de3a89460..c4a738988 100644 --- a/src/content/docs/v4/api/interfaces/ModalSubmitCommand.md +++ b/src/content/docs/v4/api/interfaces/ModalSubmitCommand.md @@ -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) diff --git a/src/content/docs/v4/api/interfaces/Module.md b/src/content/docs/v4/api/interfaces/Module.md new file mode 100644 index 000000000..61383dbf3 --- /dev/null +++ b/src/content/docs/v4/api/interfaces/Module.md @@ -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) diff --git a/src/content/docs/v4/api/interfaces/Plugin.md b/src/content/docs/v4/api/interfaces/Plugin.md index 52e760bf8..41e0679e6 100644 --- a/src/content/docs/v4/api/interfaces/Plugin.md +++ b/src/content/docs/v4/api/interfaces/Plugin.md @@ -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) diff --git a/src/content/docs/v4/api/interfaces/PresenceResult.md b/src/content/docs/v4/api/interfaces/PresenceResult.md index 424a8fe10..339cd3532 100644 --- a/src/content/docs/v4/api/interfaces/PresenceResult.md +++ b/src/content/docs/v4/api/interfaces/PresenceResult.md @@ -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) diff --git a/src/content/docs/v4/api/interfaces/RoleSelectCommand.md b/src/content/docs/v4/api/interfaces/RoleSelectCommand.md index c70755c0c..4c1a2c5ff 100644 --- a/src/content/docs/v4/api/interfaces/RoleSelectCommand.md +++ b/src/content/docs/v4/api/interfaces/RoleSelectCommand.md @@ -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) diff --git a/src/content/docs/v4/api/interfaces/SernAutocompleteData.md b/src/content/docs/v4/api/interfaces/SernAutocompleteData.md index 96e263318..f5c84bfa4 100644 --- a/src/content/docs/v4/api/interfaces/SernAutocompleteData.md +++ b/src/content/docs/v4/api/interfaces/SernAutocompleteData.md @@ -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) diff --git a/src/content/docs/v4/api/interfaces/SernEventCommand.md b/src/content/docs/v4/api/interfaces/SernEventCommand.md index c0dec64b8..16f7f8030 100644 --- a/src/content/docs/v4/api/interfaces/SernEventCommand.md +++ b/src/content/docs/v4/api/interfaces/SernEventCommand.md @@ -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) diff --git a/src/content/docs/v4/api/interfaces/SernEventsMapping.md b/src/content/docs/v4/api/interfaces/SernEventsMapping.md index fc48f3475..b05929ef4 100644 --- a/src/content/docs/v4/api/interfaces/SernEventsMapping.md +++ b/src/content/docs/v4/api/interfaces/SernEventsMapping.md @@ -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) diff --git a/src/content/docs/v4/api/interfaces/SernSubCommandData.md b/src/content/docs/v4/api/interfaces/SernSubCommandData.md index c8681338c..a74262ef2 100644 --- a/src/content/docs/v4/api/interfaces/SernSubCommandData.md +++ b/src/content/docs/v4/api/interfaces/SernSubCommandData.md @@ -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) diff --git a/src/content/docs/v4/api/interfaces/SernSubCommandGroupData.md b/src/content/docs/v4/api/interfaces/SernSubCommandGroupData.md index 2d650f4f0..543ee9cd6 100644 --- a/src/content/docs/v4/api/interfaces/SernSubCommandGroupData.md +++ b/src/content/docs/v4/api/interfaces/SernSubCommandGroupData.md @@ -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) diff --git a/src/content/docs/v4/api/interfaces/SlashCommand.md b/src/content/docs/v4/api/interfaces/SlashCommand.md index 772448da7..8c008b1c7 100644 --- a/src/content/docs/v4/api/interfaces/SlashCommand.md +++ b/src/content/docs/v4/api/interfaces/SlashCommand.md @@ -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) diff --git a/src/content/docs/v4/api/interfaces/StringSelectCommand.md b/src/content/docs/v4/api/interfaces/StringSelectCommand.md index a11bd8c0b..ee917dcbb 100644 --- a/src/content/docs/v4/api/interfaces/StringSelectCommand.md +++ b/src/content/docs/v4/api/interfaces/StringSelectCommand.md @@ -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) diff --git a/src/content/docs/v4/api/interfaces/TextCommand.md b/src/content/docs/v4/api/interfaces/TextCommand.md index 6ced11997..d7399dd9a 100644 --- a/src/content/docs/v4/api/interfaces/TextCommand.md +++ b/src/content/docs/v4/api/interfaces/TextCommand.md @@ -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) diff --git a/src/content/docs/v4/api/interfaces/UserSelectCommand.md b/src/content/docs/v4/api/interfaces/UserSelectCommand.md index 4857f547b..c764669a5 100644 --- a/src/content/docs/v4/api/interfaces/UserSelectCommand.md +++ b/src/content/docs/v4/api/interfaces/UserSelectCommand.md @@ -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) diff --git a/src/content/docs/v4/api/namespaces/Sern/functions/init.md b/src/content/docs/v4/api/namespaces/Sern/functions/init.md index 7eb26fe37..dbeee5f70 100644 --- a/src/content/docs/v4/api/namespaces/Sern/functions/init.md +++ b/src/content/docs/v4/api/namespaces/Sern/functions/init.md @@ -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) diff --git a/src/content/docs/v4/api/type-aliases/AnyPlugin.md b/src/content/docs/v4/api/type-aliases/AnyPlugin.md index 0ca0cea17..dc7438c27 100644 --- a/src/content/docs/v4/api/type-aliases/AnyPlugin.md +++ b/src/content/docs/v4/api/type-aliases/AnyPlugin.md @@ -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) diff --git a/src/content/docs/v4/api/type-aliases/AssetEncoding.md b/src/content/docs/v4/api/type-aliases/AssetEncoding.md index f0b39e963..cbb93e3be 100644 --- a/src/content/docs/v4/api/type-aliases/AssetEncoding.md +++ b/src/content/docs/v4/api/type-aliases/AssetEncoding.md @@ -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) diff --git a/src/content/docs/v4/api/type-aliases/CommandModule.md b/src/content/docs/v4/api/type-aliases/CommandModule.md index 65ddfe093..9e6fb7ec6 100644 --- a/src/content/docs/v4/api/type-aliases/CommandModule.md +++ b/src/content/docs/v4/api/type-aliases/CommandModule.md @@ -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) diff --git a/src/content/docs/v4/api/type-aliases/Controller.md b/src/content/docs/v4/api/type-aliases/Controller.md index d1916caad..5ebb04a0f 100644 --- a/src/content/docs/v4/api/type-aliases/Controller.md +++ b/src/content/docs/v4/api/type-aliases/Controller.md @@ -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) diff --git a/src/content/docs/v4/api/type-aliases/EventModule.md b/src/content/docs/v4/api/type-aliases/EventModule.md index 8bfc3a9a3..76045d364 100644 --- a/src/content/docs/v4/api/type-aliases/EventModule.md +++ b/src/content/docs/v4/api/type-aliases/EventModule.md @@ -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) diff --git a/src/content/docs/v4/api/type-aliases/LogPayload.md b/src/content/docs/v4/api/type-aliases/LogPayload.md index fe219afb4..0757f39a0 100644 --- a/src/content/docs/v4/api/type-aliases/LogPayload.md +++ b/src/content/docs/v4/api/type-aliases/LogPayload.md @@ -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) diff --git a/src/content/docs/v4/api/type-aliases/Payload.md b/src/content/docs/v4/api/type-aliases/Payload.md index fac56503a..89f652ce9 100644 --- a/src/content/docs/v4/api/type-aliases/Payload.md +++ b/src/content/docs/v4/api/type-aliases/Payload.md @@ -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) diff --git a/src/content/docs/v4/api/type-aliases/PluginResult.md b/src/content/docs/v4/api/type-aliases/PluginResult.md index d9da6eada..d7942f25f 100644 --- a/src/content/docs/v4/api/type-aliases/PluginResult.md +++ b/src/content/docs/v4/api/type-aliases/PluginResult.md @@ -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) diff --git a/src/content/docs/v4/api/type-aliases/PresenceConfig.md b/src/content/docs/v4/api/type-aliases/PresenceConfig.md index 9ab25148c..0860e25da 100644 --- a/src/content/docs/v4/api/type-aliases/PresenceConfig.md +++ b/src/content/docs/v4/api/type-aliases/PresenceConfig.md @@ -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) diff --git a/src/content/docs/v4/api/type-aliases/SDT.md b/src/content/docs/v4/api/type-aliases/SDT.md index 9909be21b..218416681 100644 --- a/src/content/docs/v4/api/type-aliases/SDT.md +++ b/src/content/docs/v4/api/type-aliases/SDT.md @@ -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) diff --git a/src/content/docs/v4/api/type-aliases/SernOptionsData.md b/src/content/docs/v4/api/type-aliases/SernOptionsData.md index b166b44e0..624155fa3 100644 --- a/src/content/docs/v4/api/type-aliases/SernOptionsData.md +++ b/src/content/docs/v4/api/type-aliases/SernOptionsData.md @@ -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) diff --git a/src/content/docs/v4/api/variables/Presence.md b/src/content/docs/v4/api/variables/Presence.md index f61c383d5..8c5c36a2d 100644 --- a/src/content/docs/v4/api/variables/Presence.md +++ b/src/content/docs/v4/api/variables/Presence.md @@ -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) diff --git a/src/content/docs/v4/api/variables/controller.md b/src/content/docs/v4/api/variables/controller.md index f66a8f325..1adb82e6d 100644 --- a/src/content/docs/v4/api/variables/controller.md +++ b/src/content/docs/v4/api/variables/controller.md @@ -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) diff --git a/src/content/docs/v4/tools/localizer.mdx b/src/content/docs/v4/tools/localizer.mdx index 2b338bc07..eda90fa6f 100644 --- a/src/content/docs/v4/tools/localizer.mdx +++ b/src/content/docs/v4/tools/localizer.mdx @@ -46,7 +46,7 @@ import { Tabs, TabItem } from "@astrojs/starlight/components"; ```json title=~/assets/locals/en-US.json { "salute": { - "hello": "hola" + "hello": "hello" } } ``` diff --git a/src/utils.ts b/src/utils.ts new file mode 100644 index 000000000..d084ccade --- /dev/null +++ b/src/utils.ts @@ -0,0 +1,6 @@ +import { type ClassValue, clsx } from "clsx" +import { twMerge } from "tailwind-merge" + +export function cn(...inputs: ClassValue[]) { + return twMerge(clsx(inputs)) +} diff --git a/src/utils/types.ts b/src/utils/types.ts index b26d713ba..9fcde8163 100644 --- a/src/utils/types.ts +++ b/src/utils/types.ts @@ -51,3 +51,16 @@ export const PluginSchema = z.object({ example: z.string(), version: z.string(), }); + +export type Bot = z.infer; +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(), +}); diff --git a/tailwind.config.mjs b/tailwind.config.mjs index 891e2d1ab..e7f8e1348 100644 --- a/tailwind.config.mjs +++ b/tailwind.config.mjs @@ -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()], -}; \ No newline at end of file + plugins: [starlightPlugin(), tailwindAnimate], +}; diff --git a/tsconfig.json b/tsconfig.json index c06e506df..dd0b08d0b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -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" } -} +} \ No newline at end of file