CortexPE/DiscordWebhookAPI

How to properly Use?

AlexPads opened this issue · 1 comments

Hello, I Really like this Idea but I Honestly can not figure out how to use it!

I have tried Putting it in its own Function and Many More things!
Like This:

 public function discordsend($message){
        var_dump($message);
        $webHook = new Webhook("https://discordapp.com/api/webhooks/583112726612803595/HeDMDrsDZrhwXnu5qHDgtF_yym10SXPkDR6eWCVP3YzMTsegB1L1mIjH6QCCnbc1MbFG");
        $msg = new Message();
        $msg->setContent($message);
        $webHook->send($msg);
    }

and i got it to work when i put it onEnable with the Same Code So how do you call it noramlly?

Sorry to ping you with emails or something im just very stupid....