-
Notifications
You must be signed in to change notification settings - Fork 0
interception.discord
wristcry edited this page Jul 8, 2026
·
1 revision
Constants used for sending a Discord webhook
public const int WEBHOOK_USERNAME_MAX_LEN = 80;todo: description
public delegate void on_cron_event_executed_global_callback(cron_event _event)Delegate for on_cron_event_executed_global event
| Parameter | Description |
|---|---|
| _event | Event that was executed |
public static on_cron_event_executed_global_callback on_cron_event_executed_globalCalled after any cron_event was executed
public static void register_event(cron_event _event)Register event
| Parameter | Description |
|---|---|
| _event | Event to execute |
| Exception | Description |
|---|---|
| ArgumentException | Event with name defined in _event was already registered |
public static void unregister_event(string name)Unregister event
| Parameter | Description |
|---|---|
| name | Name of the event to unregister |
| Exception | Description |
|---|---|
| ArgumentException | Event with name was never registered |
public static bool is_event_exist(string name)Returns: true if event with name is currently registered, otherwise false
| Parameter | Description |
|---|---|
| name | Name of the event |
public static cron_event find_event(string name)Returns: cron_event if event with name is currently registered, otherwise null
| Parameter | Description |
|---|---|
| name | Name of the event to find |