Skip to content
This repository was archived by the owner on Jul 2, 2022. It is now read-only.

Commit b29c40d

Browse files
authored
Merge pull request #7 from naticoo/decorators
2 parents fa82a1f + b8ba049 commit b29c40d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/struct/commands/CommandHandler.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,7 @@ export class NaticoCommandHandler extends NaticoHandler {
410410
options.push({
411411
name: option.name,
412412
description: option.description,
413+
choices: option.choices,
413414
options: option.options,
414415
type: option.type,
415416
required: option.required,

src/struct/listeners/Listener.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
import { NaticoModule, NaticoModuleOptions } from "../NaticoModule.ts";
22
import { NaticoListenerHandler } from "./ListenerHandler.ts";
3+
import { EventHandlersDefinitions } from "../../../discordeno_deps.ts";
34

4-
export interface NaticoListenerOptions extends NaticoModuleOptions {
5-
event: string;
5+
export interface NaticoListenerOptions<T = any> extends NaticoModuleOptions {
6+
event: T;
67
emitter: string;
78
}
89

10+
export type NaticoListenerOptionsDiscordenoEvents = NaticoListenerOptions<keyof EventHandlersDefinitions>;
11+
912
export abstract class NaticoListener extends NaticoModule {
1013
declare handler: NaticoListenerHandler;
1114
event!: string;

0 commit comments

Comments
 (0)