2020-10-23 16:11:00 +00:00
|
|
|
import { Client } from '../models/client.ts'
|
|
|
|
import { GroupDMChannelPayload } from '../types/channelTypes.ts'
|
2020-10-25 06:50:32 +00:00
|
|
|
import { Base } from "./base.ts"
|
2020-10-23 16:11:00 +00:00
|
|
|
import { Channel } from './channel.ts'
|
|
|
|
|
2020-10-25 06:50:32 +00:00
|
|
|
export class GroupDMChannel extends Channel{
|
2020-10-23 16:11:00 +00:00
|
|
|
name: string
|
|
|
|
icon?: string
|
|
|
|
ownerID: string
|
|
|
|
|
|
|
|
constructor (client: Client, data: GroupDMChannelPayload) {
|
|
|
|
super(client, data)
|
|
|
|
|
|
|
|
this.name = data.name
|
|
|
|
this.icon = data.icon
|
|
|
|
this.ownerID = data.owner_id
|
|
|
|
}
|
|
|
|
}
|