galactic-bot/@types/Utils.d.ts

19 lines
385 B
TypeScript
Raw Permalink Normal View History

2023-12-05 16:47:54 +01:00
export type FilterType = 'explicit' | 'regex' | 'fuzzy'
export type FilterResult = {
filter?: string,
match?: string,
matcher?: string,
matched?: boolean,
_matcher?: string,
type?: FilterType
word?: string,
raw?: string,
sim?: number,
threshold?: number,
sanctioned?: boolean
}
export type Nullable<T> = {
[K in keyof T]: T[K] | null
}