-
Notifications
You must be signed in to change notification settings - Fork 237
MessageBuilder
FoxWorn3365 edited this page Jan 24, 2023
·
1 revision
Class dedicated to composing messages.
use Discord\Builders\MessageBuilder;
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));
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