Skip to content
FoxWorn3365 edited this page Jan 24, 2023 · 1 revision

Embeds are part of Parts.

use Discord\Parts\Embed\Embed;

TYPE_ARTICLE

TYPE_GIFV

TYPE_IMAGE

TYPE_LINK

TYPE_RICH

TYPE_VIDEO

Repositories

$embed->author Author

$embed->fields Collection

$embed->footer Footer

$embed->image Image

$embed->video Video


Create an embed and send in a channel

To send a Message you must have the Channel object!

$embed = $discord->factory(Embed::class);
$embed->setTitle('Hello')
      ->setDescription('My name is DiscordPHP');
$channel->sendMessage(MessageBuilder::new()->setEmbed($embed));
Clone this wiki locally