Author Topic: Post into Discord  (Read 2774 times)

0 Members and 1 Guest are viewing this topic.

Offline BulldogTopic starter

  • Jr. Member
  • **
  • Posts: 10
  • Activity:
    0%
  • Reputation Power: 1
  • Bulldog has no influence.
  • Referrals: 0
    • View Profile
Post into Discord
« on: May 20, 2022, 07:18:05 AM »
Quick function that will post some text into a Discord bot server
function testDiscord()
{
    // Discord
    var bot = "https://discord.com/api/webhooks/"; // Your Webhook url goes here
    var charName = Player.Name();
    var paramText = "username="+charName+"&content=@everyone "+charName+" just made dinner";
    Orion.Wait(100);
    Orion.HttpPost(bot, paramText);
    Orion.Wait(1000);
   
}

Tags: