Interface SlashCommandPermissionsBuilderDelegate
-
public interface SlashCommandPermissionsBuilderDelegate
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SlashCommandPermissionsbuild()Builds the slash command permissions.voidsetId(long id)Sets the ID of the slash command permissions.voidsetPermission(boolean permission)Sets the permissions of the slash command option whether the command should be enabled or disabled.voidsetType(SlashCommandPermissionType type)Sets the type of the slash command permissions.
-
-
-
Method Detail
-
setId
void setId(long id)
Sets the ID of the slash command permissions.- Parameters:
id- The id.
-
setType
void setType(SlashCommandPermissionType type)
Sets the type of the slash command permissions.- Parameters:
type- The type.
-
setPermission
void setPermission(boolean permission)
Sets the permissions of the slash command option whether the command should be enabled or disabled.- Parameters:
permission- The permission.
-
build
SlashCommandPermissions build()
Builds the slash command permissions.- Returns:
- A new instance of the SlashCommandPermissions.
-
-