-
-
Notifications
You must be signed in to change notification settings - Fork 101
Description
Is your feature request related to a problem? Please describe.
Not really a problem, just an enhancement. I saw many commands have usage in specific channel and it managed in the code that in which channel it is visible. Which makes the code longer and hard to understand and maintain.
Describe the solution you'd like
Use discord Integration settings to manage where the command can be used. This way we can make the code concise and won't loose any functionality.
This also comes with some benefits like right now the bot will send a message saying something along the lines of the commands can't be used here, but if a command is blocked from discord integration settings it won't be even visible in unnecessary channels
Additional context
TJ-Bot/application/src/main/java/org/togetherjava/tjbot/commands/help/ChangeHelpCategoryCommand.java
Lines 74 to 76 in e7e98f0
if (!helper.handleIsHelpThread(event)) { | |
return; | |
} |