#Subcommand Permissions

1 messages · Page 1 of 1 (latest)

feral zenithBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

glacial swift
#

One way is to manually check it inside respective run()

median kestrel
#

Do you mean to ask if discord api offers any such feature?

#

If yes, I don't think it does.
You can just use basic if checks in the code

glacial swift
#

Check for default_member_permission property or similar, but that's for slash commands 🤔

You can use Preconditions

#

Else check permissions inside run()