public class GuildEmojiEditSpec extends Object implements AuditSpec<GuildEmojiModifyRequest>
GuildEmoji
.Constructor and Description |
---|
GuildEmojiEditSpec() |
Modifier and Type | Method and Description |
---|---|
GuildEmojiModifyRequest |
asRequest() |
String |
getReason()
Returns the current audit log reason set on the spec.
|
GuildEmojiEditSpec |
setName(String name)
Sets the name for the modified
GuildEmoji . |
GuildEmojiEditSpec |
setReason(String reason)
Sets the reason to show in the audit logs when the spec is built.
|
GuildEmojiEditSpec |
setRoles(Set<Snowflake> roles)
Sets the list of roles for which the modified
GuildEmoji will be whitelisted. |
public GuildEmojiEditSpec setName(String name)
GuildEmoji
.name
- The name for the emoji.public GuildEmojiEditSpec setRoles(Set<Snowflake> roles)
GuildEmoji
will be whitelisted.roles
- The set of role identifiers.public GuildEmojiEditSpec setReason(@Nullable String reason)
AuditSpec
setReason
in interface AuditSpec<GuildEmojiModifyRequest>
reason
- The audit log reason.@Nullable public String getReason()
AuditSpec
getReason
in interface AuditSpec<GuildEmojiModifyRequest>
public GuildEmojiModifyRequest asRequest()
asRequest
in interface Spec<GuildEmojiModifyRequest>