Modules simplification & music logging
This commit is contained in:
1 parent
4ed9e1c6e0
commit
ef61f7fa0a
14 files changed
+50
-378
No files matched your search
+9
-8
@@ -5,15 +5,7 @@ import Client from "./client.js";
|
||||
export interface Module {
|
||||
name: string;
|
||||
description?: string;
|
||||
author: string;
|
||||
tag: string;
|
||||
controller?: unknown;
|
||||
rootDir: string;
|
||||
}
|
||||
|
||||
export interface ModuleMetadata extends Module {
|
||||
commands: string[];
|
||||
events: string[];
|
||||
}
|
||||
|
||||
export interface Command {
|
||||
@@ -25,3 +17,12 @@ export interface Event {
|
||||
name: string;
|
||||
execute: (client: Client, eventee: unknown[]) => Promise<void>;
|
||||
}
|
||||
|
||||
export interface ApplicationStatus<T extends "OK" | "UNAUTHORIZED"> {
|
||||
status: T;
|
||||
applicationId: T extends "OK" ? string : undefined;
|
||||
userTag: T extends "OK" ? string : undefined;
|
||||
modules: string[];
|
||||
commands: string[];
|
||||
events: string[];
|
||||
}
|
||||
Reference in new issue
Block a user