mirror of
https://github.com/sern-handler/handler
synced 2026-06-20 06:42:14 +00:00
feat: remove comments about prev commit
This commit is contained in:
@@ -25,7 +25,6 @@ function applicationCommandHandler(mod: Module | undefined, interaction: Command
|
||||
match(interaction)
|
||||
.when(isChatInputCommand, i => {
|
||||
const ctx = Context.wrap(i);
|
||||
//SUPPORT COMMANDTYPE.BOTH
|
||||
return mod$(CommandType.Slash).pipe(
|
||||
concatMap(m => {
|
||||
return of(m.onEvent?.map(e => e.execute([ctx, ['slash', i.options]], controller)) ?? []).pipe(
|
||||
|
||||
@@ -30,7 +30,6 @@ export const onMessageCreate = (wrapper: Wrapper) => {
|
||||
const ensureModuleType$ = processMessage$.pipe(
|
||||
concatMap(payload =>
|
||||
of(payload.mod).pipe(
|
||||
//SUPPORT COMMAND TYPE.BOTH
|
||||
filterCorrectModule(CommandType.Text),
|
||||
map(mod => ({ ...payload, mod })),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user