Jump to content

1 Screenshot

  • 279
  • 4
  • 6.77 kB
 Share

About DiscordApi

This plugin allows to send to discord weebhook messages to discord weebhooks works like API. Messages can be sent normal or embed
 


Add reference to the plugin:
[PluginReference] Plugin DiscordApi;

How to send:
private string DiscordWeebHookUrl = "URL HERE"
string message = $"YOU MESSAGE`";
send messages: DiscordApi?.Call("API_SendMessage", DiscordWeebHookUrl , Message, this);


Embed:
 

string EmbedTitle = "Title";
int EmbedColor = 16711680; -> Color
string Empty = "";
string json = $"[{{\"name\":\"Message One\",\"value\":\"Example: {something} \",\"inline\":true}},\n{{\"name\":\"2n Message\",\"value\":\"3rd message: {Something}\",\"inline\":true}}]";

call to send:
DiscordApi?.Call("API_SendEmbeddedMessage", DiscordWeebHookUrl, EmbedTitle, EmbedColor , json, Empty, this);


User Feedback

1.3m

Downloads

Total number of downloads.

6.6k

Customers

Total customers served.

97.6k

Files Sold

Total number of files sold.

1.9m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.