Annotation Interface RequiredPermissions
@ConvertedBy(Converter.class)
@Documented
@Retention(RUNTIME)
@Target({TYPE,METHOD})
public @interface RequiredPermissions
A CommandDoc
Annotation
that lists
required Permission
s a bot must have
to use a command on a Guild
.- Since:
- 2.0
- Author:
- Kaidan Gustave
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
TheDocConverter
for the@RequiredPermissions
annotation. -
Required Element Summary
Modifier and TypeRequired ElementDescriptionnet.dv8tion.jda.api.Permission[]
An array ofPermission
s a bot must have to run the command.
-
Element Details
-
value
net.dv8tion.jda.api.Permission[] valueAn array ofPermission
s a bot must have to run the command.- Returns:
- The array of permissions
-