public class StoreChannelEditSpec extends Object implements AuditSpec<ChannelModifyRequest>
StoreChannel
settings.Constructor and Description |
---|
StoreChannelEditSpec() |
Modifier and Type | Method and Description |
---|---|
ChannelModifyRequest |
asRequest() |
String |
getReason()
Returns the current audit log reason set on the spec.
|
StoreChannelEditSpec |
setName(String name)
Sets the name for the
StoreChannel . |
StoreChannelEditSpec |
setPermissionOverwrites(Set<? extends PermissionOverwrite> permissionOverwrites)
Sets the permission overwrites for the
StoreChannel . |
StoreChannelEditSpec |
setPosition(int position)
Sets the position for the
StoreChannel . |
StoreChannelEditSpec |
setReason(String reason)
Sets the reason to show in the audit logs when the spec is built.
|
public StoreChannelEditSpec setName(String name)
StoreChannel
.name
- The new name of the category.public StoreChannelEditSpec setPosition(int position)
StoreChannel
.position
- The raw position for the category.public StoreChannelEditSpec setPermissionOverwrites(Set<? extends PermissionOverwrite> permissionOverwrites)
StoreChannel
.permissionOverwrites
- The Set<PermissionOverwrite>
which contains overwrites for the category.public StoreChannelEditSpec setReason(@Nullable String reason)
AuditSpec
setReason
in interface AuditSpec<ChannelModifyRequest>
reason
- The audit log reason.@Nullable public String getReason()
AuditSpec
getReason
in interface AuditSpec<ChannelModifyRequest>
public ChannelModifyRequest asRequest()
asRequest
in interface Spec<ChannelModifyRequest>