Package org.javacord.api.interaction
Class SlashCommandPermissionsBuilder
- java.lang.Object
-
- org.javacord.api.interaction.SlashCommandPermissionsBuilder
-
public class SlashCommandPermissionsBuilder extends Object
-
-
Constructor Summary
Constructors Constructor Description SlashCommandPermissionsBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SlashCommandPermissionsbuild()Builds the slash command permissions.SlashCommandPermissionsBuildersetId(long id)Sets the ID of the slash command permissions.SlashCommandPermissionsBuildersetPermission(boolean permission)Sets the permissions of the slash command option whether the command should be enabled or disabled.SlashCommandPermissionsBuildersetType(SlashCommandPermissionType type)Sets the type of the slash command permissions.
-
-
-
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.
-
setType
public SlashCommandPermissionsBuilder setType(SlashCommandPermissionType type)
Sets the type of the slash command permissions.- Parameters:
type- The type.- 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.
-
-