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