Jump to content

1 Screenshot

  • 4.2k
  • 200
  • 6.77 kB
  • Update details
    v1.0.2
    Released
    Download size6.77 kB
    Total versions1
    Freshness 515 days ago

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

2.3m

Downloads

Total number of downloads.

10.5k

Customers

Total customers served.

151.8k

Files Sold

Total number of files sold.

3.2m

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.