Annotation Interface RequireSelfPermissions


@Retention(RUNTIME) @Target(TYPE) public @interface RequireSelfPermissions
Specifies the Discord Permissions that the bot itself must possess in the current channel or guild to successfully handle the annotated command.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    net.dv8tion.jda.api.Permission[]
    An array of Permissions required by the bot.
  • Element Details

    • value

      net.dv8tion.jda.api.Permission[] value
      An array of Permissions required by the bot.
      Returns:
      The required self-permissions.