feat(handler) improving context api

This commit is contained in:
Jacob Nguyen
2022-03-22 22:35:31 -05:00
parent a227f1a8f2
commit 44e6e58fee
6 changed files with 34 additions and 16 deletions

View File

@@ -1,5 +1,5 @@
import type { Awaitable, ChatInputCommandInteraction, Interaction } from "discord.js";
import { map, filter, fromEvent, Observable, of, mergeMap, tap, concatMap} from "rxjs";
import type { Interaction } from "discord.js";
import { map, filter, fromEvent, Observable, of, tap, concatMap} from "rxjs";
import { None, Some } from "ts-results";
import { CommandType } from "../sern";
import Context from "../structures/context";
@@ -26,7 +26,6 @@ export const onInteractionCreate = ( wrapper : Wrapper ) => {
}
if (interaction.isContextMenuCommand()) {
return of()
}
else { return of() }
})