Package discord4j.core.spec.legacy
Class LegacyStoreChannelEditSpec
java.lang.Object
discord4j.core.spec.legacy.LegacyStoreChannelEditSpec
- All Implemented Interfaces:
LegacyAuditSpec<discord4j.discordjson.json.ChannelModifyRequest>
,LegacySpec<discord4j.discordjson.json.ChannelModifyRequest>
public class LegacyStoreChannelEditSpec
extends Object
implements LegacyAuditSpec<discord4j.discordjson.json.ChannelModifyRequest>
LegacySpec used to modify a guild
StoreChannel
settings.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondiscord4j.discordjson.json.ChannelModifyRequest
Returns the current audit log reason set on the spec.Sets the name for theStoreChannel
.setPermissionOverwrites
(Set<? extends PermissionOverwrite> permissionOverwrites) Sets the permission overwrites for theStoreChannel
.setPosition
(int position) Sets the position for theStoreChannel
.Sets the reason to show in the audit logs when the spec is built.
-
Constructor Details
-
LegacyStoreChannelEditSpec
public LegacyStoreChannelEditSpec()
-
-
Method Details
-
setName
Sets the name for theStoreChannel
.- Parameters:
name
- The new name of the category.- Returns:
- This spec.
-
setPosition
Sets the position for theStoreChannel
.- Parameters:
position
- The raw position for the category.- Returns:
- This spec.
-
setPermissionOverwrites
public LegacyStoreChannelEditSpec 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
Description copied from interface:LegacyAuditSpec
Sets the reason to show in the audit logs when the spec is built.- Specified by:
setReason
in interfaceLegacyAuditSpec<discord4j.discordjson.json.ChannelModifyRequest>
- Parameters:
reason
- The audit log reason.- Returns:
- This spec.
-
getReason
Description copied from interface:LegacyAuditSpec
Returns the current audit log reason set on the spec.- Specified by:
getReason
in interfaceLegacyAuditSpec<discord4j.discordjson.json.ChannelModifyRequest>
- Returns:
- The current audit log reason.
-
asRequest
public discord4j.discordjson.json.ChannelModifyRequest asRequest()- Specified by:
asRequest
in interfaceLegacySpec<discord4j.discordjson.json.ChannelModifyRequest>
-