2020-10-22 15:50:47 +00:00
|
|
|
import { Client } from '../models/client.ts'
|
|
|
|
import {
|
|
|
|
EmbedAuthor,
|
|
|
|
EmbedField,
|
|
|
|
EmbedFooter,
|
|
|
|
EmbedImage,
|
|
|
|
EmbedPayload,
|
|
|
|
EmbedProvider,
|
|
|
|
EmbedThumbnail,
|
|
|
|
EmbedTypes,
|
|
|
|
EmbedVideo
|
|
|
|
} from '../types/channelTypes.ts'
|
|
|
|
import { Base } from './base.ts'
|
|
|
|
|
2020-10-23 16:11:00 +00:00
|
|
|
export class Embed extends Base {
|
2020-10-22 15:50:47 +00:00
|
|
|
title?: string
|
|
|
|
type?: EmbedTypes
|
|
|
|
description?: string
|
|
|
|
url?: string
|
|
|
|
timestamp?: string
|
|
|
|
color?: number
|
|
|
|
footer?: EmbedFooter
|
|
|
|
image?: EmbedImage
|
|
|
|
thumbnail?: EmbedThumbnail
|
|
|
|
video?: EmbedVideo
|
|
|
|
provider?: EmbedProvider
|
|
|
|
author?: EmbedAuthor
|
|
|
|
fields?: EmbedField[]
|
|
|
|
constructor (client: Client, data: EmbedPayload) {
|
|
|
|
super(client)
|
|
|
|
}
|
|
|
|
}
|