Chat Channel Commands not always displaying it's output
granny opened this issue ยท 0 comments
Expected behavior
When DiscordChatChannelConsoleCommandEnabled
is set to true
and a valid command (DiscordChatChannelConsoleCommandWhitelist
) is sent by a user with valid permissions (DiscordChatChannelConsoleCommandRolesAllowed
/DiscordChatChannelConsoleCommandWhitelistBypassRoles
) into a registered chat channel (Channels
) using the prefix set using DiscordChatChannelConsoleCommandPrefix
, the bot should respond with the output of the command.
Actual behavior
Some commands will show their outputs while a majority of others will not.
Steps to reproduce
In a registered chat channel, send the following command: <prefix> minecraft:help
. You will not see an output in the chat channel, but you will in the console.
In a registered chat channel, send the following command: <prefix> bukkit:help
. You will see an output in the chat channel and console.
Server software and version
No response
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.
- I didn't actually check any of these things
Anything else
Vankka notes:
some stuff doesn't go to the commandsender provided to the command, eg. Minecraft, Adventure if it detects it's the console or a instance of Player
(https://github.com/KyoriPowered/adventure-platform/blob/609e417163b1ba3671f5df4efd215ffe6fa79715/platform-bukkit/src/main/java/net/kyori/adventure/platform/bukkit/BukkitAudiencesImpl.java#L112)
Ascension uses Paper's feedback forwarding sender api which solves both (I think)