Change component type to enum
This commit is contained in:
parent
76715df025
commit
4f88e6e808
3
@types/Client.d.ts
vendored
3
@types/Client.d.ts
vendored
@ -1,4 +1,5 @@
|
||||
import { LoggerClientOptions } from '@navy.gif/logger';
|
||||
import { ComponentType } from '../src/client/interfaces/Component.ts';
|
||||
|
||||
export type ClientOptions = {
|
||||
// Set by the startup script
|
||||
@ -10,8 +11,6 @@ export type ClientOptions = {
|
||||
developmentMode: boolean,
|
||||
}
|
||||
|
||||
export type ComponentType = 'EDIT ME';
|
||||
|
||||
export type ComponentOptions = {
|
||||
type: ComponentType,
|
||||
name: string,
|
||||
|
@ -1,6 +1,11 @@
|
||||
import { ComponentOptions, ComponentType } from '../../../@types/Client.js';
|
||||
import { ComponentOptions } from '../../../@types/Client.js';
|
||||
import Client from '../Client.js';
|
||||
|
||||
export enum ComponentType
|
||||
{
|
||||
EDIT_ME
|
||||
}
|
||||
|
||||
/**
|
||||
* Superclass for all components used by the client, all commands, endpoints, etc should inherit from this
|
||||
* @date 3/31/2024 - 1:39:51 PM
|
||||
|
Loading…
Reference in New Issue
Block a user