Discord Webhooks

Module Discord Webhooks 1.0.0.0

Author
Voxpire
Downloads
151
Views
5,308
First release
Last update
Rating
5.00 star(s) 4 ratings
No permission to download Join the discussion Get support

More resources from Voxpire

Requirements
Vita-Nex: Core 4.0.0.0
Discord (Admin)
Discord Webhooks
DiscordBotUI.png

Discord Webhooks
Send messages to your shard's Discord server using Webhooks.

With this module, you can easily send any string messages to Discord using your shard's name as the user.

Includes the ability to specify a debug Webhook URL for testing the module in debug mode, so you don't interrupt your live shard's channel.

Optionally prevent repetitive messages when the "Filter Repeat" option is enabled.

The Notify broadcast feature in Vita-Nex: Core can optionally forward messages to Discord when the "Handle Notifications" option is enabled.

The PvP Battle broadcast feature in Vita-Nex: Core can optionally forward messages to Discord when the "Handle PvP Battles" option is enabled.

The bot can report the current status of the shard (Online/Offline/Crashed) when the "Handle Server Status" option is enabled.

Commands:
Send a message to Discord using:
[Discord <message>

Display the graphical admin interface using:
[DiscordAdmin

Usage:

Configure this module using the [VNC command.

Code:
Code:
// Send a typical message
VitaNex.Modules.Discord.DiscordBot.SendMessage("Hello World");

// Send an unfiltered message
VitaNex.Modules.Discord.DiscordBot.SendMessage("Hello World", false);

Setup
Obtain a webhook link for a private channel in your Discord server;
  • Open the channels' settings
  • Navigate to Integrations > Webhooks
  • Add a new webhook and copy the link
Open the admin interface in-game, paste the link into the Debug Webhook input.
Pick a public channel for the Live Webhook and repeat these steps for that too.

Notes:
The bot is not capable of receiving messages from Discord.
The "Filter Saves" and "Handle Broadcasts" options are not yet functional, but the code-behind for their functionality is included.
A core mod for RunUO/ServUO EventSink and World is required to enable these options fully and may be added in the near future.
  • Like
Reactions: ShtimusMaximus

Active Shards

Donations

Total amount
$80.00
Goal
$1,000.00
Back