feat(handler) Add context more context methods and nullish type

This commit is contained in:
Jacob Nguyen
2022-04-03 01:37:38 -05:00
parent bc0d1ce69e
commit ea8c15986a
4 changed files with 61 additions and 12 deletions

View File

@@ -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);
},
});
};