- Fougerite Compatibility
- All
- Plugin's Engine
- C# (Modules)
DISCORD WEB HOOKS!!
With this plugin you can send contents to your discord webhooks
DOCS!!
Python!!
C#
HOW TO CREATE A WEBHOOK?
Go to your channel server settings
then click WebHooks and create a new webhook
Then click on Copy URL ( This is the url that you need to implement in the Send hook)
With this plugin you can send contents to your discord webhooks
DOCS!!
Python!!
Python:
import clr
clr.AddReferenceByPartialName("Fougerite")
clr.AddReferenceByPartialName("DiscordWebHooks")
import Fougerite
try:
import DiscordWebHooks
except ImportError:
raise ImportError("Failed to import DiscordWebHooks")
class MyClass:
def On_Command(Player, cmd, args):
DiscordWebHooks.API.Send(false, "A command has been executed", "MyWebhookName", "MyWebHook URL");
C#
C#:
using Fougerite;
using DiscordWebHooks;
namespace MyPlugin
{
public class MyClass : Fougerite.Module
{
public void On_Command(Fougerite.Player player, string cmd, string[] args)
{
DiscordWebHooks.API.Send(false, "A command has been executed", "MyWebhookName", "MyWebHook URL");
}
}
}
HOW TO CREATE A WEBHOOK?
Go to your channel server settings
then click WebHooks and create a new webhook
Then click on Copy URL ( This is the url that you need to implement in the Send hook)