Jump to content

error

Not a Bug 1.1.0 1.1.0

ZDEN
ZDEN

Posted

[Live Admin Chat] Error in StartAdminChat: Object reference not set to an instance of an object

ZDEN

Posted

i delete lang but still got that

Daemante

Posted

Can you check your config file and make sure everything is added

Daemante

Posted (edited)

What are you getting in the console?
 

Edited by Daemante
ZDEN

Posted

15 minutes ago, Daemante said:

What are you getting in the console?
 

[DiscordExtension] [Error]: An error occured duration object validation.
{
  "name": "76561199060xxxxxx",
  "type": 0,
  "parent_id": "11567017935xxxxxxx",
  "default_auto_archive_duration": 1440
}
[Live Admin Chat] Error in StartAdminChat: Object reference not set to an instance of an object

 

Daemante

Posted (edited)

Is the bot connected to Discord?

Edited by Daemante
ZDEN

Posted

5 minutes ago, Daemante said:

Is the bot connected to Discord?

yes

Daemante

Posted

Is the CategoryID in the _config correct?

ZDEN

Posted

i dont know how to delete this

Screenshot_33.png

Daemante

Posted

That means there is already a channel for that player so it wont let them open a new one

 

ZDEN

Posted

3 minutes ago, Daemante said:

Is the CategoryID in the _config correct?

channel id right?

Daemante

Posted (edited)

"Category ID": is the category in discord where the channels will be created.

Edited by Daemante
ZDEN

Posted

27 minutes ago, Daemante said:

"Category ID": is the category in discord where the channels will be created.

still can't

Daemante

Posted

What version of Discord Extension do you have?

ZDEN

Posted

9 minutes ago, Daemante said:

What version of Discord Extension do you have?

v3.1.2

Daemante

Posted (edited)

Ok try this version of LiveAdminChat and send the output of console.
I added a number of null checks so hopefully there is more output in console.

 

 

Edited by Daemante
Removed test version
ZDEN

Posted

58 minutes ago, Daemante said:

Ok try this version of LiveAdminChat and send the output of console.
I added a number of null checks so hopefully there is more output in console.

 

LiveAdminChat.cs 27.71 kB · 0 downloads

[Live Admin Chat] Invalid ChannelCreate object. Initialization failed.

Daemante

Posted

9 minutes ago, ZDEN said:

[Live Admin Chat] Invalid ChannelCreate object. Initialization failed.

Ok, I think this has to do with the channel names. Let me implement some sanitization and ill get back to you with another update to try.
Out of curiosity, are channels being created at all?
 

Daemante

Posted (edited)

Well, I don't think sanitization will help here as the channel name is always the players STEAM64ID which should have no problem conforming to Discords naming convention. 
I removed the initialization check for the channel as its just making the error too ambiguous.

Please check all your config values then upload the attached version and check the console after using the in game chat command. 

I am not getting the error you are when testing the plugin so it's a bit difficult to troubleshoot. 
The bot you are using for the admin chats, does it have the correct permissions and server intents; Server Members and Message Content?

LiveAdminChat.cs

Edited by Daemante
ZDEN

Posted

1 hour ago, Daemante said:

Ok, I think this has to do with the channel names. Let me implement some sanitization and ill get back to you with another update to try.
Out of curiosity, are channels being created at all?
 

nope , i try make new category but nothing has being created

ZDEN

Posted

5 minutes ago, Daemante said:

Well, I don't think sanitization will help here as the channel name is always the players STEAM64ID which should have no problem conforming to Discords naming convention. 
I removed the initialization check for the channel as its just making the error too ambiguous.

Please check all your config values then upload the attached version and check the console after using the in game chat command. 

I am not getting the error you are when testing the plugin so it's a big difficult to troubleshoot. 
The bot you are using for the admin chats, does it have the correct permissions and server intents?
 

LiveAdminChat.cs 27.36 kB · 0 downloads

i give my bot administrastor permisssion

Daemante

Posted

Pretty sure the issue was Discord permissions. Even though the bot had administrator, the permissions for the category needed to be set to create/manage channels specifically
Thanks for your help and patience in troubleshooting the issue ZDEN.

Plugin has been tested and is working.

  • Love 1
Daemante

Posted

Changed Status from Pending to Not a Bug

Changed Fixed In to 1.1.0

1.5m

Downloads

Total number of downloads.

7.1k

Customers

Total customers served.

105.3k

Files Sold

Total number of files sold.

2.1m

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.