Jump to content

instance of an object

Fixed 1.2.3 1.3.1

WarKingz
WarKingz

Posted

Can i get some help on this please

instance of an object)
  at Oxide.Plugins.LiveAdminChat.OnDiscordGatewayReady (Oxide.Ext.Discord.Entities.GatewayReadyEvent ready) [0x00301] in :0 
  at Oxide.Plugins.LiveAdminChat.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x002a8] in :0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in :0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in :0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in :0 

 

Daemante

Posted

I'll need a bit more context. What caused the error in console? Do you get any errors in console when the plugin is loaded? 

WarKingz

Posted

thats all it gives me the plugin works i just dont know what that is when it loads

 

Daemante

Posted (edited)

Can you paste the block of lines from console when the plugin is loaded. 
The block should look like this:

[Live Admin Chat] Gateway is connected.
[Live Admin Chat] Discord client has been initialized.
[Live Admin Chat] Bot has connected successfully.
[Live Admin Chat] Bot has 'Server Members Intent' privileges.
[Live Admin Chat] Bot has 'Message Content Intent' privileges.
[Live Admin Chat] Bot has 'Presence Intent' privileges.
[Live Admin Chat] Found server: 1166601086300330000.
[Live Admin Chat] Bot was found in server: 1166601086300330000.
[Live Admin Chat] Found category with ID: 1292573193575460000.
[Live Admin Chat] Found transcript channel with ID: 1315125708997260000.
[Live Admin Chat] Bot is ready to start chatting.

Edited by Daemante
WarKingz

Posted

[DiscordExtension] [Info]: Discord socket connected!

[Live Admin Chat] Gateway is connected.

[Live Admin Chat] Discord client has been initialized.

[Live Admin Chat] Bot has connected successfully.

[Live Admin Chat] Bot has 'Server Members Intent' privileges.

[Live Admin Chat] Bot has 'Message Content Intent' privileges.

[Live Admin Chat] Bot has 'Presence Intent' privileges.

[Live Admin Chat] Found server: 873534886919684146.

[Live Admin Chat] Bot was found in server: 873534886919684146.

Failed to call hook 'OnDiscordGatewayReady' on plugin 'LiveAdminChat v1.2.3' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.LiveAdminChat.OnDiscordGatewayReady (Oxide.Ext.Discord.Entities.GatewayReadyEvent ready) [0x00301] in :0 at Oxide.Plugins.LiveAdminChat.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x002a8] in :0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in :0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in :0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in :0

[DiscordExtension] [Info]: Your bot was found in 1 Guilds!

WarKingz

Posted

im going to make a new bot incase its that

Daemante

Posted (edited)

Also check your config values and if the bot has the category permissions:

View Channels
Send Messages
Read Message History
Embed Links
Attach Files
Read Message History

 

Edited by Daemante
WarKingz

Posted

I have did that the only one i think i have did wrong is the Category ID how do i get the Category ID i know how to get the channel ID just not the Category ID

Daemante

Posted (edited)

Same as Channel ID just right click the category and copy the ID. It will say "copy channel ID" but its really copying the category ID.

Edited by Daemante
  • Like 1
Daemante

Posted

Any luck with getting it working?

WarKingz

Posted

Its working as intened mate but still getting that info in console its ok mate not give me any problem you can close this ticket thank you for your help

Daemante

Posted

Changed Status from Pending to Closed

Daemante

Posted (edited)

I'm getting that error on my test server sometimes when loading the plugin, but, it still continues to work like you said. I thought I was missing a null check but nothing seems to fix it. I feel like its happening because the OnDiscordGatewayReady hook is being called before Discord extension has initialized fully. Testing some fixes.

Edited by Daemante
Daemante

Posted (edited)

Changed Status from Closed to Fixed

 

Edited by Daemante
Daemante

Posted (edited)

I've added a timer to make sure the Discord Extension has initialized before calling the hook. Will be fixed in next version.

Edited by Daemante
  • Like 1
Daemante

Posted

Changed Status from Closed to Fixed

Changed Fixed In to Next Version

1.6m

Downloads

Total number of downloads.

7.7k

Customers

Total customers served.

115.4k

Files Sold

Total number of files sold.

2.3m

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.