Jump to content

Plugin error

Closed 1.4.6 1.4.9

KanTouN
KanTouN

Posted

I have error when i enter bot token

Failed to call hook 'OnDiscordGatewayReady' on plugin 'DiscordAdminPanel v1.4.6' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.DiscordAdminPanel.OnDiscordGatewayReady (Oxide.Ext.Discord.Entities.Gatway.Events.GatewayReadyEvent ready) [0x00195] in <6bf5420bc8b04c848fad889d67c83bbb>:0 at Oxide.Plugins.DiscordAdminPanel.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00676] in <6bf5420bc8b04c848fad889d67c83bbb>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <09575a60985045248bcb43b20faeeb99>: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

AimonMurasaki

Posted

Can you check your bot token ? or contact me on discord Aimon#9899 and send me a copy of your config , I will be happy to assist you with this matter

KanTouN

Posted

this is a valid bot token i use it for one other plugin and work perfectly. here is my config (is a not valid bot token for security).

 

{
  "LogFileName": "DiscordAdminPanel",
  "Bot token": "OTA4OTE4NjI1NzU3NDMzODY4.YY8ubw.MYBOTTOKEN1234",
  "Embed's color": "#ff0000",
  "Show Clan Tag (Make sure clans is loaded)": false,
  "Show Server Armour Profile (search)": false,
  "Show Team Info (search)": false,
  "Timed Permissions": {
    "Use Timed Permissions (true/false)": false,
    "Oxide Groups to give": [
      "VIP",
      "Admin"
    ],
    "Time to give (Use 'd' for days, 'h' for hours, 'm' for minutes, 'wipe' for using wipe period)": [
      "24h",
      "7d",
      "30d",
      "Wipe"
    ],
    "Discord Role ID (Can be left empty to use the first role id)": ""
  },
  "Economics": {
    "Use Economics (true/false)": false,
    "Economy Amount (Use '.' for decimal)": [
      "1500.5",
      "3000.3"
    ],
    "Discord Role ID (Can be left empty to use the first role id)": ""
  },
  "Ban": {
    "Time to give (Use 'd' for days, 'h' for hours, 'm' for minutes, 'wipe' for using wipe period)": [
      "24h",
      "7d",
      "30d",
      "Wipe"
    ],
    "Ban Reasons (One Word)": [
      "Cheat",
      "Script",
      "OverToxicity",
      "Abuse"
    ],
    "Ignore Ember": true,
    "Ember Global (Only usable if ember is loaded)": false,
    "Discord Role ID (Can be left empty to use the first role id)": ""
  },
  "Mute": {
    "Time to give (Use 'd' for days,'h' for hours, 'm' for minutes, 'wipe' for using wipe period)": [
      "1h",
      "24h",
      "30d",
      "Wipe"
    ],
    "Mute Reasons (One Word)": [
      "Toxicity",
      "Racism"
    ],
    "Discord Role ID (Can be left empty to use the first role id)": ""
  },
  "Kick": {
    "Kick Reasons (One Word)": [
      "Toxicity",
      "Warning"
    ],
    "Discord Role ID (Can be left empty to use the first role id)": ""
  },
  "Custom": {
    "Use Custom (true/false)": false,
    "Use Confirmation (true/false)": false,
    "Custom Commands (Use '{player}' for player id, 'command name' 'command to send on console')": {
      "dogdoo": "dog {player}",
      "pacifism": "pf {player}"
    },
    "Discord Role ID (Can be left empty to use the first role id)": ""
  },
  "Link Commands": [
    "link"
  ],
  "Auth Commands": [
    "auth",
    "authenticate"
  ],
  "Deauth Commands": [
    "deauth",
    "deauthenticate"
  ],
  "Search Commands": [
    "search",
    "look"
  ],
  "logs": {
    "Log to console (true/false)": true,
    "Log to discord (true/false)": false,
    "Delete message after command": true,
    "Delete message after interaction": true,
    "Log Discord Channel ID": ""
  },
  "Discord Guild ID (optional if the bot is in one guild)": "",
  "Discord Role ID": "908924840667406347",
  "Discord Channel ID where the command can be used": "1030980072326320219"
}

 

AimonMurasaki

Posted (edited)

Can you contact me on discord instead?
It would help with the whole situation since I really can't reproduce the error you're getting.

Edited by AimonMurasaki
Noticed he hid his discord bot token
KanTouN

Posted

Problems fixed with AimonMurasaki. Thank you

AimonMurasaki

Posted

Changed Status from Pending to Closed

Changed Fixed In to 1.4.9

1.4m

Downloads

Total number of downloads.

6.8k

Customers

Total customers served.

101.5k

Files Sold

Total number of files sold.

2m

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.