mirror of
https://github.com/sern-handler/handler
synced 2026-06-27 18:22:14 +00:00
feat(handler) Add context more context methods and nullish type
This commit is contained in:
@@ -40,6 +40,9 @@ export const onInteractionCreate = ( wrapper : Wrapper ) => {
|
||||
}),
|
||||
)
|
||||
}
|
||||
if (interaction.isModalSubmit()) {
|
||||
return of();
|
||||
}
|
||||
else { return of() }
|
||||
})
|
||||
).subscribe({
|
||||
@@ -48,7 +51,7 @@ export const onInteractionCreate = ( wrapper : Wrapper ) => {
|
||||
},
|
||||
next(command) {
|
||||
//log on each command emitted
|
||||
console.log(command);
|
||||
console.log(command?.name);
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user