Files
reacord/library/internal/renderers/channel-message-renderer.ts
2021-12-28 13:53:23 -06:00

14 lines
368 B
TypeScript

import type { Channel } from "../channel"
import type { Message, MessageOptions } from "../message"
import { Renderer } from "./renderer"
export class ChannelMessageRenderer extends Renderer {
constructor(private channel: Channel) {
super()
}
protected createMessage(options: MessageOptions): Promise<Message> {
return this.channel.send(options)
}
}