DiscordSRV

DiscordSRV

86.8k Downloads

DiscordSRV received a permission error response (50013) from Discord.

andrewkm opened this issue ยท 6 comments

commented

Expected behavior

No error.

Actual behavior

Error lol.

Steps to reproduce

1.17.1 Paper Build 408
DiscordSRV built upon 4775ab5

Send message from Discord to Minecraft that's too long.
Line 2296: [15:46:52] [DiscordSRV - JDA Callback 0/ERROR]: [DiscordSRV] DiscordSRV received a permission error response (50013) from Discord. Unfortunately the specific error isn't provided in that response.

Example message: https://i.imgur.com/WToTkFd.png
Example output: https://i.imgur.com/G3EvRsp.png

Message goes through, console get's error shot into it.
Normal length messages go through without error.

What's happening here?

Server software and version

1.17.1 Paper Build 408

Checks

  • I am not using an outdated version of DiscordSRV.
  • I asked in DiscordSRV's Discord server to see whether this issue is in fact a bug that needs to be fixed.

Anything else

No response

commented

@Dinty1

Wait nevermind, this one hasn't been handled, the other one was.
Basically if message is too long on Discord, it goes through fine in game, but causes error in console:

If typing very long messages in Discord: https://i.imgur.com/UwUGiAX.png
Error in console: https://i.imgur.com/7Dh7gq8.png

@Dinty1 our DiscordChatChannelTruncateLength is set to 256.

Basically if a users Discord message is too long, it would be nice if there was no console error being shot.
Debug: https://gist.githubusercontent.com/andrewkm/956ba545c180095cc96b3a3edf305bcd/raw/8346f95378a26f12c36f0e296a55fa4696fb3d65/gistfile1.txt

commented

Upping the Truncate limit to something like 2000 removes the error, but then causes abnormally large messages in game, that normally the client would never allow.

commented

By too long, do you mean over the DiscordChatChannelTruncateLength, over 2000 characters or something else?

Also, did you actually ask in the Discord server about this? Your last ticket was in November.

commented

Oh this has been handled, can be closed.

commented

Does the bot not have permission to add reactions or view the message history in that channel?

commented

Looks like not having the add reactions permission was the issue.