From 740b4d1d3e8773cd34f44cb4118b9d94203b46db Mon Sep 17 00:00:00 2001 From: Jordan Shatford Date: Mon, 23 Dec 2024 13:01:52 -0400 Subject: [PATCH] chore(web): add better comments to settings store Signed-off-by: Jordan Shatford --- apps/web/src/stores/settings.ts | 33 ++++++++++++++++++++++++++++----- 1 file changed, 28 insertions(+), 5 deletions(-) diff --git a/apps/web/src/stores/settings.ts b/apps/web/src/stores/settings.ts index 61cf2b3..eeefd14 100644 --- a/apps/web/src/stores/settings.ts +++ b/apps/web/src/stores/settings.ts @@ -5,19 +5,42 @@ import { ClipProvider } from '@cq/providers' import { Command } from '@/utils/commands' +/** + * Settings for commands. + */ export interface CommandSettings { - // Prefix for chat commands. + /** + * The prefix for commands. + * + * @example !cq + */ prefix: string - // Commands allowed to be used in chat. + /** + * The commands allowed to be used. + */ allowed: Command[] } +/** + * Settings for the queue. + */ export interface QueueSettings { - // Auto remove clips when the submitter has there message deleted, or is timed out / banned. + /** + * Whether auto moderation is enabled. + * + * @note This will remove clips when the submitter has their message deleted, or is timed out / banned. + */ hasAutoModerationEnabled: boolean - // Limit of clips allowed in queue at one time. + /** + * The limit of clips in the queue. + * + * @example 10 + * @note null means no limit. + */ limit: number | null - // Allowed clip providers (Kick, Twitch, Etc.) + /** + * The providers allowed to be used for clips. + */ providers: ClipProvider[] }