Discord code errorSolved

since todays force wipe i am getting error while any player linking their discord with game using discord core

Failed executing chat command 'dc' in 'Discord Core v3.0.2 by MJSU' [callback] (Object reference not set to an instance of an object)
   at void Oxide.Ext.Discord.Exceptions.InvalidChannelException.ThrowIfChannelToSelf(Snowflake userId, DiscordClient client)
   at IPromise<DiscordChannel> Oxide.Ext.Discord.Entities.DiscordUser.CreateDirectMessageChannel(DiscordClient client, Snowflake userId)
   at IPromise<DiscordMessage> Oxide.Ext.Discord.Entities.DiscordUser.SendDirectMessage(DiscordClient client, MessageCreate message)
   at IPromise<DiscordMessage> Oxide.Ext.Discord.Entities.DiscordUser.SendTemplateDirectMessage(DiscordClient client, TemplateKey templateName, string language, MessageCreate message, PlaceholderData placeholders)
   at void Oxide.Plugins.DiscordCore.SendTemplateMessage(TemplateKey templateName, DiscordUser user, IPlayer player, PlaceholderData placeholders) in /home/container/carbon/plugins/DiscordCore.cs:line 1590
   at void Oxide.Plugins.DiscordCore+LinkMessage.SendMessages(IPlayer player, DiscordUser user, DiscordInteraction interaction, PlaceholderData data) in /home/container/carbon/plugins/DiscordCore.cs:line 2739
   at void Oxide.Plugins.DiscordCore+LinkHandler.HandleLink(IPlayer player, DiscordUser user, LinkReason reason, DiscordInteraction interaction) in /home/container/carbon/plugins/DiscordCore.cs:line 2500
   at void Oxide.Plugins.DiscordCore+JoinHandler.CompleteLink(JoinData data, DiscordInteraction interaction) in /home/container/carbon/plugins/DiscordCore.cs:line 2430
   at void Oxide.Plugins.DiscordCore.HandleServerCompleteLink(IPlayer player, string[] args) in /home/container/carbon/plugins/DiscordCore.cs:line 629
   at void Oxide.Plugins.DiscordCore.DiscordCoreChatCommand(IPlayer player, string cmd, string[] args) in /home/container/carbon/plugins/DiscordCore.cs:line 379
   at object System.Reflection.RuntimeMethodInfo.Invoke(object obj, BindingFlags invokeAttr, Binder binder, object[] parameters, CultureInfo culture)

I do not get that error, but all functions related to Link are not available.

The errors I have observed so far are as follows.

  • Unknown linkage
This occurs after outputting /dc code in in-game chat and then typing /dc link in the bot's DM, it is confirmed.

Plugin: DiscordCore by MJSU v3.0.2 ID: 17121912506751647747 Request URL: [POST] interactions/1324831566458785822/aW50ZXJhY3Rpb246MTMyNDgzMTU 2NjQ1ODc4NTgyMjpFbkJLdUlpaGZTMDVvZUNZdlpIazFKR1ZQTVU1cEhwTEM4amJESUNORmhyT0xPQlN0UkNQeGs5Z1RFdVZCYWNIV29MbjU0TnNoSTNVa2tGWG8 zazBwTU82RzVNa0dXcWFFeUZtcnc1eGZ0dXNCVFRmcmFzeHdCVHlRYTBMMHFWZw/callback Content-Type: application/json; charset=utf-8 Http Response Code: BadRequest Discord Error Code: 40060 Discord Error: Interaction has already been acknowledged.

{“data”:{“embeds”:[{“title”:“”, “description”:"[Discord Core] To complete the link process please join the **SERVER NAME** game server and type **/ dc link 823863** in server chat.“, ‘url’:”“, ‘color’:5763719}], ‘allowed_mentions’:{”parse":[], ‘roles’:[], ‘users’:[], ‘replied_user’:false }, “flags”:64}, “type”:4}​

This occurs whenever the Guild Link Button is pressed. This error statement is output to the console.
And, annoyingly, the /dc link code that appears in the DISCORD is lying.

Both issues were first observed since the wipe this month.

i think Jan 2025 force wipe as broken the plugin
i am trying to reinstall the plugin and try

Merged post

even reinstalling getting same error

Merged post

the issue for me was the bot token that one of our staff changed for our bot but did not update it for other plugins