From c64ba9eaaa1f4d06f3c1e7370db457b0141247db Mon Sep 17 00:00:00 2001 From: MapleLeaf <19603573+itsMapleLeaf@users.noreply.github.com> Date: Tue, 28 Dec 2021 13:11:50 -0600 Subject: [PATCH] allow any public interface for Reacord subclasses --- library/core/reacord.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/library/core/reacord.ts b/library/core/reacord.ts index 92e25a0..0760baa 100644 --- a/library/core/reacord.ts +++ b/library/core/reacord.ts @@ -26,12 +26,8 @@ export abstract class Reacord { constructor(private readonly config: ReacordConfig = {}) {} - abstract send(channel: unknown, initialContent?: ReactNode): ReacordInstance - - abstract reply( - commandInteraction: unknown, - initialContent?: ReactNode, - ): ReacordInstance + abstract send(...args: unknown[]): ReacordInstance + abstract reply(...args: unknown[]): ReacordInstance protected handleComponentInteraction(interaction: ComponentInteraction) { for (const renderer of this.renderers) {