Files
reacord/library/internal/channel-message-renderer.ts

14 lines
366 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)
}
}