mirror of
https://github.com/jaronpate/unicord.git
synced 2026-10-18 21:47:40 +00:00
Refactor and update types and handlers
- README changes: removed 'as const' annotation and note. - Connector changes: dispatched event for commands in gateway. - Updated processor type guard for command handlers. - Removed readonly from CommandHandler types in handler definitions. - Test adjustments: updated demo tests to reliable command registration.
This commit is contained in:
@@ -62,7 +62,7 @@ client.applicationCommands.register('hello', ApplicationCommandType.Chat, create
|
||||
{ name: "Bear", value: "Bear" }
|
||||
]
|
||||
}
|
||||
] as const,
|
||||
],
|
||||
execute: async (context, args) => {
|
||||
context.reply(
|
||||
`\
|
||||
|
||||
Reference in New Issue
Block a user