Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 536 Bytes

README.md

File metadata and controls

29 lines (23 loc) · 536 Bytes

DiscordMessage

send discord webhook

Usage

Send Embed :

<?php

$webhook = new \discordMessage\Webhook(<url>);
$message = $webhook->getMessage();
$embed = $message->getEmbed();
/**
 * You can set the embed title, description, color, footer, image, thumbnail, author, fields 
 */
$message->addEmbed($embed);
$webhook->send($message);

Send Simple :

<?php

$webhook = new \discordMessage\Webhook(<url>);
$message = $webhook->getMessage();
$message->setContent(<content>);
$webhook->send($message);