public class StoreChannelEditSpec extends Object implements AuditSpec<discord4j.discordjson.json.ChannelModifyRequest>
StoreChannel
settings.Constructor and Description |
---|
StoreChannelEditSpec() |
Modifier and Type | Method and Description |
---|---|
discord4j.discordjson.json.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
@Nullable public String getReason()
AuditSpec