Jump to content

1 Screenshot

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);


XeusDev's Collection

User Feedback

1.5m

Downloads

Total number of downloads.

7k

Customers

Total customers served.

105.3k

Files Sold

Total number of files sold.

2.1m

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.