Skip to content

Disable the commands in unvalid channels #512

@Taz03

Description

@Taz03

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

if (!helper.handleIsHelpThread(event)) {
return;
}

Current Behaviour:-
image

After disabling the command from integration settings:-
image

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions