using Oxide.Core.Plugins; namespace Oxide.Plugins { [Info("Test2DiscordMessageAPI", "bsdinis", "0.0.1")] class Test2DiscordMessageAPI : RustPlugin { [PluginReference] Plugin DiscordMessageAPI; [ConsoleCommand("sdm")] void SDM(ConsoleSystem.Arg arg) { if (DiscordMessageAPI == null) { PrintError("DiscordMessageAPI must be loaded."); return; } DiscordMessageAPI.Call( "SendDiscordMessage", // DiscordMessageAPI hook "https://discord.com/api/webhooks/000000000000000000/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", // Webhook (string) "Username", // Username (string) "https://i.imgur.com/y28bSZi.png", // Avatar URL (string) "Message text content.", // Content (string) false // Text-to-speech (bool) ); } } }