Helper Class for Discord Webhooks and more
- Send Webhook Messages with ease to your Discord Server
Run this from your Terminal inside your Controlpanel directory (usually /var/www/controlpanel)
composer require 1day2die/cpgg-discordwebhook
For Devs, include this at the top of your new file
use OneDayToDie\DiscordWebHook\Classes\DiscordNotification;
Create a new Webhook embed like this
DiscordNotification::embed("WEBHOOK URL","TITLE","TEXT","COLOR INTEGER VALUE");
Grab the Color Int Value from here https://gist.github.com/thomasbnt/b6f455e2c7d743b796917fa3c205f812
DM me on Discord or Join my Discord Hub https://discord.gg/UgJcvgCg6N