EssentialsX

EssentialsX

2M Downloads

Allow the use of non-standard Discord Text Channels

Tails32 opened this issue ยท 1 comments

commented

Feature description

As reported in #5923 it is currently not possible to use Discord threads (or forum posts) for chat bridging, logging and command functionality. My investigation shows this might be due to the explicit use of TextChannel instead of GuildMessageChannel. If I provide a channel ID for the Discord plugin to use, I would expect for the plugin to work no matter which type of text channel it is, as they all provide the same capabilities as far as I am aware.

How the feature is useful

Discord servers and their structure can vary greatly due to various reasons. Changing the plugin to accept threads and forum posts as text channels for command use, chat bridging and logging would allow more flexibility. It would also cause less confusion during setup for users unfamiliar with the difference between a regular text channel and a thread or post since this is not pointed out clearly in the error messages.

commented

As mentioned above, I have already looked into this, but I am not a Java developer nor do I currently have the necessary environment set up to work on this. I've consulted the javadoc of dv8tion's JDA and found GuildMessageChannel with the following description:

Represents all message channels present in guilds.
This includes channels that are not included in StandardGuildMessageChannel, such as ThreadChannel.

I had hoped this might be useful to implement this feature request.