Jump to content

DiscordLogger Add Ability to Output to Multiple Discord Webhooks


BippyMiester

Recommended Posts

I've modified my DiscordLogger file already, hence the reason why I'm posting this request here instead of on uMod's website specifically. If someone could help me add the ability to output the Discord message to multiple webhooks for each event, that would be awesome. Basically I want to turn this part of the config JSON file from this:

"Private Messages settings": {
    "WebhookURL": "",
    "Enabled?": true
},

To something like this:

"Private Messages settings": {
    "WebhookURL": [
      "WebHookOneGoesHere",
      "WebHookTwoGoesHere",
      "etc"
    ],
    "Enabled?": true
  },

Once that event happens, it sends the message to the webhooks in the list.

I've tried messing around with the C# list, and I was able to convert the JSONProperty from the single string to the array, however I kept getting errors relating to conversion? It was interesting... I'm not very good at C#, so if anyone would help that would be awesome!

Attached is my modified DiscordLogger.cs file.

DiscordLogger.cs

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
1.1m

Downloads

Total number of downloads.

5.6k

Customers

Total customers served.

80.8k

Files Sold

Total number of files sold.

1.6m

Payments Processed

Total payments processed.

×
×
  • 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.