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 guildStoreChannelsettings.- See Also:
- Modify Channel
-
-
Constructor Summary
Constructors Constructor Description LegacyStoreChannelEditSpec()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description discord4j.discordjson.json.ChannelModifyRequestasRequest()StringgetReason()Returns the current audit log reason set on the spec.LegacyStoreChannelEditSpecsetName(String name)Sets the name for theStoreChannel.LegacyStoreChannelEditSpecsetPermissionOverwrites(Set<? extends PermissionOverwrite> permissionOverwrites)Sets the permission overwrites for theStoreChannel.LegacyStoreChannelEditSpecsetPosition(int position)Sets the position for theStoreChannel.LegacyStoreChannelEditSpecsetReason(String reason)Sets the reason to show in the audit logs when the spec is built.
-
-
-
Method Detail
-
setName
public LegacyStoreChannelEditSpec setName(String name)
Sets the name for theStoreChannel.- Parameters:
name- The new name of the category.- Returns:
- This spec.
-
setPosition
public LegacyStoreChannelEditSpec setPosition(int position)
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
public LegacyStoreChannelEditSpec setReason(@Nullable String reason)
Description copied from interface:LegacyAuditSpecSets the reason to show in the audit logs when the spec is built.- Specified by:
setReasonin interfaceLegacyAuditSpec<discord4j.discordjson.json.ChannelModifyRequest>- Parameters:
reason- The audit log reason.- Returns:
- This spec.
-
getReason
@Nullable public String getReason()
Description copied from interface:LegacyAuditSpecReturns the current audit log reason set on the spec.- Specified by:
getReasonin interfaceLegacyAuditSpec<discord4j.discordjson.json.ChannelModifyRequest>- Returns:
- The current audit log reason.
-
asRequest
public discord4j.discordjson.json.ChannelModifyRequest asRequest()
- Specified by:
asRequestin interfaceLegacySpec<discord4j.discordjson.json.ChannelModifyRequest>
-
-