1day2die / cpgg-discordwebhook
A Discord Message Webhook for controlpanel
1.0
2022-10-13 18:51 UTC
This package is auto-updated.
Last update: 2024-11-27 12:22:26 UTC
README
Helper Class for Discord Webhooks and more
Features
- Send Webhook Messages with ease to your Discord Server
Installation
Run this from your Terminal inside your Controlpanel directory (usually /var/www/controlpanel)
composer require 1day2die/cpgg-discordwebhook
Usage
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
Support
DM me on Discord or Join my Discord Hub https://discord.gg/UgJcvgCg6N