Hide commands from application list
See original GitHub issueHello everyone,
Is there a way how to “hide” commands from the application list when a user does not has the required permissions? I made an group “change-bot” and added RequireOwner
. But the user can still see the command, but cannot execute it. Is there any way to hide it?
Here is the code (if needed)
[Group("change-bot", "Change things of the bot")]
[RequireOwner]
public class ChangeAvatarCommand : InteractionModuleBase<SocketInteractionContext>
{
[SlashCommand("avatar", "Change avatar of the bot")]
public async Task ChangeBotAvatarAsync()
{
await RespondAsync("change-bot avatar command executed.");
}
[SlashCommand("status", "Change status of the bot")]
public async Task ChangeBotStatusAsync()
{
await RespondAsync("change-bot status command executed.");
}
[SlashCommand("game", "Change game of the bot")]
public async Task ChangeBotGameAsync()
{
await RespondAsync("change-bot game command executed.");
}
}
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
How to Hide Commands in Minecraft In The Easiest Ways ...
How to hide commands in minecraft? Go to the setting option than simpaly open the chat settings, and turn off and inactivate the...
Read more >laravel - How to hide default artisan commands from "php ...
If you want to hide the default commands you can override them by creating a command with the same signature then add. protected...
Read more >Is it possible to hide the command list that pops up over ...
Whenever I type a command in chat, it pops up a "commands matching YX" list over my chat. Is it possible to hide...
Read more >How to hide commands in the prompt of Windows 10 from ...
Use the Echo command (@echo off). Share.
Read more >How to hide the complete commandbar props in a list
Edit the list web part in the page and open the "Hide command bar" option. 226553-microsoftteams-image-5.png. If the answer is helpful, please ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
https://github.com/Sylveon76/Mewdeko/blob/main/src/Mewdeko/Services/CommandHandler.cs#L92
Np