Package discord4j.core.spec
Class CategoryEditSpec
- java.lang.Object
-
- discord4j.core.spec.CategoryEditSpec
-
-
Constructor Summary
Constructors Constructor Description CategoryEditSpec()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 theCategory
.CategoryEditSpec
setPermissionOverwrites(Set<? extends PermissionOverwrite> permissionOverwrites)
Sets the permission overwrites for theCategory
.CategoryEditSpec
setPosition(int position)
Sets the position for theCategory
.CategoryEditSpec
setReason(String reason)
Sets the reason to show in the audit logs when the spec is built.
-
-
-
Method Detail
-
setName
public CategoryEditSpec setName(String name)
Sets the name for theCategory
.- Parameters:
name
- The new name of the category.- Returns:
- This spec.
-
setPosition
public CategoryEditSpec setPosition(int position)
Sets the position for theCategory
.- Parameters:
position
- The raw position for the category.- Returns:
- This spec.
-
setPermissionOverwrites
public CategoryEditSpec setPermissionOverwrites(Set<? extends PermissionOverwrite> permissionOverwrites)
Sets the permission overwrites for theCategory
.- Parameters:
permissionOverwrites
- TheSet<PermissionOverwrite>
which contains overwrites for the category.- Returns:
- This spec.
-
setReason
public CategoryEditSpec setReason(@Nullable String reason)
Description copied from interface:AuditSpec
Sets the reason to show in the audit logs when the spec is built.
-
getReason
@Nullable public String getReason()
Description copied from interface:AuditSpec
Returns the current audit log reason set on the spec.
-
-