fields For embed
embed.addFields([{ name: 'some name', value: 'some value' }])
author name that should be displayed in embed
Extra options for author
// without options
embed.setAuthor('Some Name')
// with options
embed.setAuthor('Some Name', { url: 'https://cdn.discordapp.com/attachments/792884815631351869/.jpg' })
color hex code for embed
embed.setColor('#6f00ff')
embed.setColor(0x6f00f)
Description For Embed
Url of the image, this can also be a file name
name of provider if exists
Url for thumbnail in embed
Extra options for thumbnail.
//without options
embed.setThumbnail('https://cdn.discordapp.com/attachments/792884815631351869/.jpg')
//with options
embed.setThumbnail('https://cdn.discordapp.com/attachments/792884815631351869/.jpg', { height: 100, width:100 })
timestamp for embed
embed.setTimestamp()
title for image embed
embed.setTitle('some title');
The type of embed:
embed.setType('rich')
url of embed
embed.setUrl('https://discord.com')
url for video in embed
extra options
embed.setVideo('https://tinyurl.com/icehacks')
Generated using TypeDoc
A field for embed