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