PHP Discord WebHook Library(outdated, incomplete)
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
DiscordHook.php
README.md

README.md

DiscordHook

PHP Discord WebHook Library Simple, All Cointained in One file!

Example:

To send a message...

DiscordHook::send(new Message(new User("WEBHOOK URL", "USERNAME", "AVARAR_URL"), "MSG"));

Need to upload a file or embed(s)? DiscordHook Support that too!

Upload a File...

DiscordHook::send(new Message(new User("WEBHOOK URL", "USERNAME", "AVARAR_URL"), "MSG",new Upload("PATH TO FILE","FILE NAME")));

Send With Embed(s)...

print_r(DiscordHook::send(new Message(new User("WEBHOOK URL", "USERNAME", "AVARAR_URL"), "MSG",new Embed("TITLE","DESCRIPTION","URL","COLOUR(int)")))); //single embed
print_r(DiscordHook::send(new Message(new User("WEBHOOK URL", "USERNAME", "AVARAR_URL"), "MSG",[new Embed("TITLE","DESCRIPTION","URL","COLOUR(int)"),new Embed("TITLE2","DESCRIPTION","URL","COLOUR(int)")]))); //multiple embeds