-
Notifications
You must be signed in to change notification settings - Fork 237
Embed
FoxWorn3365 edited this page Jan 24, 2023
·
1 revision
Embeds are part of Parts.
use Discord\Parts\Embed\Embed;
$embed->author
Author
$embed->fields
Collection
$embed->footer
Footer
$embed->image
Image
$embed->video
Video
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));
Note: This wiki is currently Work In Progress. Consider reading the docs instead.
- Application Command (Slash based)
Command Client (Message based)
- Activity
- Application
- Guild
- Private Channel
- User
Components
-
ActionRow
- Buttons
- Option (commands)
- SelectMenu
- TextInput
Builders