public class GuildEmojiEditSpec extends Object implements AuditSpec<discord4j.discordjson.json.GuildEmojiModifyRequest>
GuildEmoji
.Constructor and Description |
---|
GuildEmojiEditSpec() |
Modifier and Type | Method and Description |
---|---|
discord4j.discordjson.json.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
@Nullable public String getReason()
AuditSpec