Class SlashCommandPermissionsBuilder



  • public class SlashCommandPermissionsBuilder
    extends Object
    • Constructor Detail

      • SlashCommandPermissionsBuilder

        public SlashCommandPermissionsBuilder​()
    • Method Detail

      • setId

        public SlashCommandPermissionsBuilder setId​(long id)
        Sets the ID of the slash command permissions.
        Parameters:
        id - The id.
        Returns:
        The current instance in order to chain call methods.
      • setPermission

        public SlashCommandPermissionsBuilder setPermission​(boolean permission)
        Sets the permissions of the slash command option whether the command should be enabled or disabled.
        Parameters:
        permission - The permission.
        Returns:
        The current instance in order to chain call methods.
      • build

        public SlashCommandPermissions build​()
        Builds the slash command permissions.
        Returns:
        A new instance of the SlashCommandPermissions.