diff --git a/src/core/operators.ts b/src/core/operators.ts index a15c185..af87b13 100644 --- a/src/core/operators.ts +++ b/src/core/operators.ts @@ -16,7 +16,7 @@ import { pipe, share, } from 'rxjs'; -import { Emitter, ErrorHandling, Logging } from './interfaces'; +import type { Emitter, ErrorHandling, Logging } from './interfaces'; import util from 'node:util'; import type { PluginResult } from '../types/core-plugin'; import type { Result } from 'ts-results-es' diff --git a/src/handlers/event-utils.ts b/src/handlers/event-utils.ts index c72a64f..932164c 100644 --- a/src/handlers/event-utils.ts +++ b/src/handlers/event-utils.ts @@ -50,9 +50,8 @@ function contextArgs(wrappable: Message | BaseInteraction, messageArgs?: string[ function intoPayload(module: Processed, ) { - return pipe( - arrayifySource, - map(args => ({ module, args, }))); + return pipe(arrayifySource, + map(args => ({ module, args }))); } const createResult = createResultResolver< diff --git a/src/handlers/message-event.ts b/src/handlers/message-event.ts index f04d971..b12412c 100644 --- a/src/handlers/message-event.ts +++ b/src/handlers/message-event.ts @@ -16,9 +16,8 @@ function isNonBot(prefix: string) { function hasPrefix(prefix: string, content: string) { const prefixInContent = content.slice(0, prefix.length); return (prefixInContent.localeCompare(prefix, undefined, { - sensitivity: 'accent', - }) === 0 - ); + sensitivity: 'accent', + }) === 0); } export function messageHandler(