Package discord4j.core.spec.legacy
Class LegacyGuildEmojiEditSpec
java.lang.Object
discord4j.core.spec.legacy.LegacyGuildEmojiEditSpec
- All Implemented Interfaces:
LegacyAuditSpec<discord4j.discordjson.json.GuildEmojiModifyRequest>
,LegacySpec<discord4j.discordjson.json.GuildEmojiModifyRequest>
public class LegacyGuildEmojiEditSpec
extends Object
implements LegacyAuditSpec<discord4j.discordjson.json.GuildEmojiModifyRequest>
LegacySpec used to modify an existing
GuildEmoji
.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondiscord4j.discordjson.json.GuildEmojiModifyRequest
Returns the current audit log reason set on the spec.Sets the name for the modifiedGuildEmoji
.Sets the reason to show in the audit logs when the spec is built.Sets the list of roles for which the modifiedGuildEmoji
will be whitelisted.
-
Constructor Details
-
LegacyGuildEmojiEditSpec
public LegacyGuildEmojiEditSpec()
-
-
Method Details
-
setName
Sets the name for the modifiedGuildEmoji
.- Parameters:
name
- The name for the emoji.- Returns:
- This spec.
-
setRoles
Sets the list of roles for which the modifiedGuildEmoji
will be whitelisted.- Parameters:
roles
- The set of role identifiers.- 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.GuildEmojiModifyRequest>
- 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.GuildEmojiModifyRequest>
- Returns:
- The current audit log reason.
-
asRequest
public discord4j.discordjson.json.GuildEmojiModifyRequest asRequest()- Specified by:
asRequest
in interfaceLegacySpec<discord4j.discordjson.json.GuildEmojiModifyRequest>
-