Skip to content

Commit

Permalink
fix test command interaction
Browse files Browse the repository at this point in the history
  • Loading branch information
itsMapleLeaf committed Oct 28, 2023
1 parent 11153df commit 0772ca4
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions packages/reacord/test/test-adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,14 @@ import type { Channel } from "../library/internal/channel"
import { Container } from "../library/internal/container"
import type {
ButtonInteraction,
CommandInteraction,
SelectInteraction,
} from "../library/internal/interaction"
import type { Message, MessageOptions } from "../library/internal/message"
import { ChannelMessageRenderer } from "../library/internal/renderers/channel-message-renderer"
import { InteractionReplyRenderer } from "../library/internal/renderers/interaction-reply-renderer"
import {
InteractionReplyRenderer,
type InteractionReplyRendererImplementation,
} from "../library/internal/renderers/interaction-reply-renderer"

export type MessageSample = ReturnType<ReacordTester["sampleMessages"]>[0]

Expand Down Expand Up @@ -174,9 +176,8 @@ class TestMessage implements Message {
}
}

class TestCommandInteraction implements CommandInteraction {
readonly type = "command"
readonly id = "test-command-interaction"
class TestCommandInteraction implements InteractionReplyRendererImplementation {
readonly interactionId = "test-command-interaction"
readonly channelId = "test-channel-id"

constructor(private messageContainer: Container<TestMessage>) {}
Expand Down

0 comments on commit 0772ca4

Please sign in to comment.