ka0un / DiscordLeaderboards

Create Minecraft Leaderboards with PlaceholderAPI and Post it to Discord Via Webhooks or DiscordSRV

Home Page:https://dsc.gg/sundevs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot create leaderboards in discord, errors out

LadyHaley opened this issue · comments

Describe the bug
When I try the leaderboard command, which shows as a registered command in discord, for a leaderboard ive created, it does not work. Discord says its unable to perform the action and i get an error in the server logs.

To Reproduce
Steps to reproduce the behavior:

  1. Create Scoreboard in game
  2. run the learderboard command in discord, I have given the bot the permissions it needs
  3. get told it cant perform the action
  4. error log, two errors for first and second attempt
    [23:26:47 ERROR]: [DiscordSRV] DiscordSRV encountered an unknown Discord error: 10062: Unknown interaction [23:27:30 ERROR]: [DiscordSRV] DiscordSRV encountered an unknown Discord error: 40060: Interaction has already been acknowledged.

Expected behavior
A clear and concise description of what you expected to happen.
Leaderboard gets created

Screenshots
If applicable, add screenshots to help explain your problem.
image
image

Desktop (please complete the following information):

  • OS: Unraid OS running Pufferpanel in a docker container running Java 17 and paper version 540 for the server.

image
image

Additional context
Add any other context about the problem here.

latest.log
Here is my log file

commented

I believe there may have been a misunderstanding. The "leaderboard" slash command in Discord allows you to view exciting leaderboards. To create a new leaderboard in Minecraft, you need to use the "/dl create" command.

Yee i had done that yesterday. I was seemingly having some unrelated issue that was preventing discordsrv from properly functioning, I have since fixed that issue tho.

I am still having some issues with DL tho.
I have sound a conflict with the plugin DiscordSRVUtils, they both have leaderboard commands and causes issues and does not display correctly in discord.

the second issue im having, which doesnt seem like it affects functionality but i thought i should report anyway.
With DiscordSRVUtils disabled, when using the leaderboard command in the discord server, it seems to correctly create the leader board, by I got this error in my console also, but no error showed in discord
[03:35:46 ERROR]: [DiscordSRV] Slash command "/leaderboard" was not acknowledged by DiscordLeaderboards's handler! The command will show as failed on Discord until this is fixed!

Just in case this doesnt look right for a default board, here is a picture of the created leaderboard
image

commented

I am still having some issues with DL tho. I have sound a conflict with the plugin DiscordSRVUtils, they both have leaderboard commands and causes issues and does not display correctly in discord.

  1. The DiscordSRVUtils and DL plugins cannot have the same command active at the same time because they both utilize the same bot through DiscordSRV API. In the next version, I will incorporate functionality to allow for changing the SlashCommand.

the second issue im having, which doesnt seem like it affects functionality but i thought i should report anyway. With DiscordSRVUtils disabled, when using the leaderboard command in the discord server, it seems to correctly create the leader board, by I got this error in my console also, but no error showed in discord [03:35:46 ERROR]: [DiscordSRV] Slash command "/leaderboard" was not acknowledged by DiscordLeaderboards's handler! The command will show as failed on Discord until this is fixed!

  1. The issue you mentioned occurred in the Beta-1.2 version of the plugin. Although it doesn't seem to have any noticeable impact, it will be resolved in the upcoming version.

Thanks for Reporting ! Leaving a Star Will be Grateful <3
also Contact me in Discord KASUN#8971

Id love to leave a spigot review but im still waiting for the issue preventing me using the plugin from being resolved, any updates on the horizen?

commented

i have waited for while for stack up new features and bugfixes to next major update.. since you are waiting ill fix this issue and push it as hotfix today.

commented

i have fixed your issue already working on #20 issue

commented

fixed with beta 1.3