allow any public interface for Reacord subclasses

This commit is contained in:
MapleLeaf
2021-12-28 13:11:50 -06:00
parent f62b80287d
commit c64ba9eaaa

View File

@@ -26,12 +26,8 @@ export abstract class Reacord {
constructor(private readonly config: ReacordConfig = {}) {} constructor(private readonly config: ReacordConfig = {}) {}
abstract send(channel: unknown, initialContent?: ReactNode): ReacordInstance abstract send(...args: unknown[]): ReacordInstance
abstract reply(...args: unknown[]): ReacordInstance
abstract reply(
commandInteraction: unknown,
initialContent?: ReactNode,
): ReacordInstance
protected handleComponentInteraction(interaction: ComponentInteraction) { protected handleComponentInteraction(interaction: ComponentInteraction) {
for (const renderer of this.renderers) { for (const renderer of this.renderers) {