mirror of
https://github.com/sern-handler/handler
synced 2026-06-20 23:02:15 +00:00
cleaner enum Command Types
This commit is contained in:
@@ -20,7 +20,10 @@ export namespace Sern {
|
||||
this.wrapper.client
|
||||
.on("ready", async () => {
|
||||
if (this.wrapper.init !== undefined) this.wrapper.init();
|
||||
await Files.registerModules(this.wrapper.commands);
|
||||
Files.registerModules(this.wrapper.commands)
|
||||
.then( (_ : void)=> {
|
||||
/// register slash commands
|
||||
});
|
||||
})
|
||||
|
||||
.on("messageCreate", async message => {
|
||||
|
||||
@@ -13,6 +13,6 @@ export type MessagePackage = {
|
||||
export type delegate = Sern.Module<unknown>["delegate"]
|
||||
|
||||
export enum CommandType {
|
||||
TEXT = 0b00000001 << 0b00000001,
|
||||
SLASH = 0b00000001 << 0b00000010,
|
||||
TEXT = 1 << 1,
|
||||
SLASH = 1 << 2,
|
||||
}
|
||||
Reference in New Issue
Block a user