Xujiayao / Discord-MC-Chat

Discord-MC-Chat (DMCC), formerly known as MC-Discord-Chat and MCDiscordChat (MCDC), is a practical and powerful Fabric and Quilt Minecraft <> Discord chat bridge inspired by BRForgers/DisFabric
https://blog.xujiayao.com/posts/4ba0a17a/
MIT License
65 stars 36 forks source link

[Bug] Discord Commands Failling with : Application name cannot contain "discord" #182

Closed tstoco closed 1 year ago

tstoco commented 1 year ago

Checks

Java Version

openjdk version "20.0.2" 2023-07-18 OpenJDK Runtime Environment (build 20.0.2+9) OpenJDK 64-Bit Server VM (build 20.0.2+9, mixed mode, sharing)

Minecraft Version

1.20.1

MCDiscordChat Version

2.2.0

Description

Hiya, First of all thanks for the great work creating this mod.

I am getting an exception every time a command is issued by the discord bot.

You can see the exception in my server logs.

To Reproduce

Use a / command from discord and the below exception happens.

` [22:21:23] [JDA MainWS-ReadThread/INFO]: [Discord] mineserver executed /info command! [22:21:24] [ForkJoinPool.commonPool-worker-4/ERROR]: RestAction queue returned failure: [ErrorResponseException] 50035: Invalid Form Body name

`

Log

[22:04:17] [main/INFO]: Loading Minecraft 1.20.1 with Fabric Loader 0.14.22 [22:04:17] [main/INFO]: Loading 77 mods:

Config

{ "generic": { "language": "en_us", "botToken": "XXXXXX", "botPlayingStatus": "Minecraft (%onlinePlayerCount%/%maxPlayerCount%)", "botListeningStatus": "", "useWebhook": true, "channelId": "XXXX", "consoleLogChannelId": "XXXX", "updateNotificationChannelId": "", "useUuidInsteadOfName": true, "avatarApi": "https://mc-heads.net/avatar/%player%.png", "broadcastPlayerCommandExecution": true, "broadcastSlashCommandExecution": true, "announceServerStartStop": true, "announcePlayerJoinLeave": true, "announceDeathMessages": true, "announceAdvancements": true, "broadcastChatMessages": true, "formatChatMessages": true, "allowedMentions": [ "everyone", "users", "roles" ], "useServerNickname": true, "discordNewlineLimit": 3, "announceHighMspt": true, "msptCheckInterval": 5000, "msptLimit": 45, "notifyUpdates": true, "mentionAdminsForUpdates": true, "updateChannelTopic": true, "channelTopicUpdateInterval": 600000, "shutdownImmediately": false, "excludedCommands": [ "/register", "/login", "/l" ], "adminsIds": [ "XXXXX" ] }, "multiServer": { "enable": false, "host": "127.0.0.1", "port": 5000, "name": "SMP", "botIds": [] }, "customMessage": { "unformattedResponseMessage": "", "unformattedChatMessage": "", "unformattedOtherMessage": "", "unformattedCommandNotice": "", "formattedResponseMessage": "", "formattedChatMessage": "", "formattedOtherMessage": "", "formattedCommandNotice": "", "serverStarted": "", "serverStopped": "", "joinServer": "", "leftServer": "", "deathMessage": "", "advancementTask": "", "advancementGoal": "", "advancementChallenge": "", "highMspt": "", "offlineChannelTopic": "", "onlineChannelTopic": "", "onlineChannelTopicForMultiServer": "" }, "latestVersion": "2.2.0", "latestCheckTime": 1691748601631 }

Xujiayao commented 1 year ago

Your application name on Discord Developer Portal contains "discord"?

tstoco commented 1 year ago

Yes, the application is named : [SMP] MCDiscordChat

Since you raised the suspicion, I renamed it to [SMP] ChatBot and it worked.

Thanks.

Xujiayao commented 1 year ago

Ah, Discord restricted the application name requirements a long time ago. I updated the text of the docs but did not update the pictures. Will update later.

Xujiayao commented 1 year ago

Those pictures are fixed now.