Update docs for 2.0.0 prep

This commit is contained in:
Charlie Laabs
2022-01-04 22:15:33 -06:00
parent fb2128b080
commit 947100282e
11 changed files with 306 additions and 189 deletions

View File

@@ -1,7 +1,15 @@
/* eslint-disable @typescript-eslint/no-empty-function, no-useless-constructor, max-classes-per-file */
import 'reflect-metadata';
import { Type } from 'class-transformer';
import { IsString, IsOptional, IsEnum, IsArray, IsInt, IsDefined } from 'class-validator';
import {
IsString,
IsOptional,
IsEnum,
IsArray,
IsInt,
IsDefined,
IsNotEmpty,
} from 'class-validator';
export enum LogLevel {
SILENT = 'silent',
@@ -31,7 +39,8 @@ export class AppConfig {
*/
@IsDefined()
@IsString()
token = process.env.TOKEN as string;
@IsNotEmpty()
token = process.env.TOKEN || '';
/**
* The command prefix used to trigger the bot commands (when not using slash commands)
@@ -65,7 +74,7 @@ export class AppConfig {
/**
* A list of Discord user IDs that have owner permissions for the bot
* @example ['82684276755136512']
* @example ["82684276755136512"]
* @default []
* @env OWNER_IDS (comma separated)
*/