Skip to main content
Module

x/coward/src/structures/DMChannel.ts

πŸ” Coward is a Deno module for easy interaction with the Discord API.
Latest
File
import { Client } from "../Client.ts"import { User } from "./User.ts"import { TextChannel } from "./TextChannel.ts"/** * Class representing a DM channel * @extends Channel */export class DMChannel extends TextChannel { public recipients: Array<User>
constructor(data: any, client: Client) { super(data, client)
let arr: Array<any> = [] for (let i in data.recipients) { arr[<any>i] = new User(data.recipients[i], client) } this.recipients = arr }}