Jump to content

1 Screenshot

  • 4.3k
  • 220
  • 6.77 kB
  • Update details
    v1.0.2
    Released
    Download size6.77 kB
    Total versions1
    Freshness 541 days ago

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

  • Like 1

User Feedback

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.3m
Total downloads
Customers
10.7k
Customers served
Files Sold
154.8k
Marketplace sales
Payments
3.3m
Processed total
×
×
  • 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.