mirror of
https://github.com/SrIzan10/handler.git
synced 2026-05-01 10:45:17 +00:00
* chore: fix tsc predicate type checking * build: add tsup as bundler * chore: revert text * chore: fix predicates.ts, update dependencies, bump version * docs: update example * build: update dependencies * fix: crash on collectors (#89) * fix: crash on collectors * feat: bump version for bug fix * fix: crash on collectors pt * docs: adding some documentation for docasaurus * docs: add errors.ts comments * docs: refactor comments * docs: adding examples * feat: refresh package-lock.json * refactor: destructure and clean namespaces * feat: add regen package.json script * feat: add tsup, remove tsc, add scripts * feat: update ts-results import style * feat: readd typescript because idk if i should * feat: breakup tsconfigs and add tsup config * feat: add esm json tsconfig to git * build: update dependencies and move to ts-result-es * feat: remove unused function * feat: update ts-results for esm/cjs interop! * revert: remove version.txt * build: goodbye tsc, hello tsup * build: moving discord.js as dev dependency * style: requested changes * feat: add tsc back ( i missed you ) * build: bump version -> 1.0.0 * feat: syncing to main * style: pretty * feat: fix tsconfig issues with tsup * revert: remove ExternallyUsed * feat: update scripts * build: update tsup and pkg-lock.json * feat: refresh package-lock.json * feat: test
35 lines
1.1 KiB
TypeScript
35 lines
1.1 KiB
TypeScript
/**
|
|
* @enum { string }
|
|
*/
|
|
export enum SernError {
|
|
/**
|
|
* Throws when registering an invalid module.
|
|
* This means it is undefined or an invalid command type was provided
|
|
*/
|
|
InvalidModuleType = 'Detected an unknown module type',
|
|
/**
|
|
* Attempted to lookup module in command module store. Nothing was found!
|
|
*/
|
|
UndefinedModule = `A module could not be detected`,
|
|
/**
|
|
* Attempted to lookup module in command module store. Nothing was found!
|
|
*/
|
|
MismatchModule = `A module type mismatched with event emitted!`,
|
|
/**
|
|
* Unsupported interaction at this moment.
|
|
*/
|
|
NotSupportedInteraction = `This interaction is not supported.`,
|
|
/**
|
|
* One plugin called `controller.stop()` (end command execution / loading)
|
|
*/
|
|
PluginFailure = `A plugin failed to call controller.next()`,
|
|
/**
|
|
* A crash that occurs when accessing an invalid property of Context
|
|
*/
|
|
MismatchEvent = `You cannot use message when an interaction fired or vice versa`,
|
|
/**
|
|
* Unsupported feature attempted to access at this time
|
|
*/
|
|
NotSupportedYet = `This feature is not supported yet`,
|
|
}
|