Error with newest versionSolved

Hello. Thanks for updating this but I have an issue. When I update the plugin, I'm getting this:

08/30 17:05:03 | >>> o.load DiscordAuth
08/30 17:05:04 | [Discord Auth] The configuration file contains an error and has been replaced with a default config.
The error configuration file was saved in the .jsonError extension
08/30 17:05:04 | [Discord Auth] Please set the Discord Bot Token and reload the plugin

The only change I made was copying the Bot Token from the old config, which I renamed before updating, and I copied it into the new config. The Bot Token worked fine before the update.

Hey, Can you share your config file without the bot token?

Sure, but it's the default config. Literally the only thing I did was add the bot token. Give me a minute to get that.

Merged post

{
  "Settings": {
    "Bot Token": "",
    "Discord Server ID (Optional if bot only in 1 guild)": "",
    "Auth Commands": [
      "auth",
      "authenticate"
    ],
    "Deauth Commands": [
      "deauth",
      "deauthenticate"
    ],
    "Oxide Groups to Assign": [
      "authenticated"
    ],
    "Discord Roles to Assign": [
      "Authenticated"
    ],
    "Revoke Oxide Groups on Deauthenticate": true,
    "Revoke Discord Roles on Deauthenticate": true,
    "Automatically Reauthenticate on Leaving and Rejoining the Discord Server": true,
    "Automatically Deauthenticate Non Active Players": false,
    "Player Considered Non Active After (Days)": 30.0,
    "Discord Extension Log Level (Verbose, Debug, Info, Warning, Error, Exception, Off)": "Info"
  },
  "Authentication Code": {
    "Code Lifetime (minutes)": 60,
    "Code Length": 5,
    "Code Case Insensitive Match": true,
    "Code Characters": "ABCDEFGHJKMNPQRSTUVWXYZ"
  }
}

I just pushed a new version that improves config loading logic. Can you try that if you get the error again it should display why it's failing now?

08/30 17:36:56 | Loaded plugin Discord Auth v1.3.1 by OuTSMoKE
08/30 17:36:56 | [Discord Auth] Connected to bot: RustyBot
08/30 17:36:56 | Failed to call hook 'OnDiscordGuildMembersLoaded' on plugin 'DiscordAuth v1.3.1' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.DiscordAuth.Deauthenticate (Oxide.Core.Libraries.Covalence.IPlayer player, Oxide.Ext.Discord.Entities.Users.DiscordUser user, Oxide.Plugins.DiscordAuth+DeauthReason reason) [0x0001e] in <256631123d3848a4ab53ec21854b4fb3>:0
at Oxide.Plugins.DiscordAuth.OnDiscordGuildMembersLoaded (Oxide.Ext.Discord.Entities.Guilds.DiscordGuild guild) [0x001be] in <256631123d3848a4ab53ec21854b4fb3>:0
at Oxide.Plugins.DiscordAuth.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0041d] in <256631123d3848a4ab53ec21854b4fb3>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <b6af59acae274e5a94fb209dfc179b8f>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <bae5f1223fce49c493b01571c99dce02>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <bae5f1223fce49c493b01571c99dce02>:0


Merged post

It looks like the Ember plugin might be interfering with it. https://umod.org/plugins/ember

Merged post

Seems that rate limiting to the Ember site is possibly causing the issues. I have over 200 members not in Discord that have the Authenticated Oxide role.
Locked automatically