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

Class dedicated to composing messages.

use Discord\Builders\MessageBuilder;

Create a message with a webhook

To send a Message you must have the Channel object and, in this case, the Embed object!

$embed = $discord->factory(Embed::class)->setDescription('oh no an embed!');
$channel->sendMessage(MessageBuilder::new()->addEmbed($embed));
Clone this wiki locally