Package discord4j.core.spec
Class StoreChannelEditSpec
- java.lang.Object
-
- discord4j.core.spec.StoreChannelEditSpec
-
- All Implemented Interfaces:
AuditSpec<discord4j.discordjson.json.ChannelModifyRequest>
,Spec<discord4j.discordjson.json.ChannelModifyRequest>
public class StoreChannelEditSpec extends Object implements AuditSpec<discord4j.discordjson.json.ChannelModifyRequest>
Spec used to modify a guildStoreChannel
settings.- See Also:
- Modify Channel
-
-
Constructor Summary
Constructors Constructor Description StoreChannelEditSpec()
-
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.StoreChannelEditSpec
setName(String name)
Sets the name for theStoreChannel
.StoreChannelEditSpec
setPermissionOverwrites(Set<? extends PermissionOverwrite> permissionOverwrites)
Sets the permission overwrites for theStoreChannel
.StoreChannelEditSpec
setPosition(int position)
Sets the position for theStoreChannel
.StoreChannelEditSpec
setReason(String reason)
Sets the reason to show in the audit logs when the spec is built.
-
-
-
Method Detail
-
setName
public StoreChannelEditSpec setName(String name)
Sets the name for theStoreChannel
.- Parameters:
name
- The new name of the category.- Returns:
- This spec.
-
setPosition
public StoreChannelEditSpec setPosition(int position)
Sets the position for theStoreChannel
.- Parameters:
position
- The raw position for the category.- Returns:
- This spec.
-
setPermissionOverwrites
public StoreChannelEditSpec setPermissionOverwrites(Set<? extends PermissionOverwrite> permissionOverwrites)
Sets the permission overwrites for theStoreChannel
.- Parameters:
permissionOverwrites
- TheSet<PermissionOverwrite>
which contains overwrites for the category.- Returns:
- This spec.
-
setReason
public StoreChannelEditSpec 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.
-
-