public class GuildEditSpec extends Object implements AuditSpec<discord4j.discordjson.json.GuildModifyRequest>
Guild
.Constructor and Description |
---|
GuildEditSpec() |
Modifier and Type | Method and Description |
---|---|
discord4j.discordjson.json.GuildModifyRequest |
asRequest() |
String |
getReason()
Returns the current audit log reason set on the spec.
|
GuildEditSpec |
setAfkChannelId(Snowflake afkChannelId)
|
GuildEditSpec |
setAfkTimeout(int afkTimeout)
Sets the AFK timeout, in seconds, for this
Guild . |
GuildEditSpec |
setBanner(Image banner)
Sets the banner image to display for the modified
Guild . |
GuildEditSpec |
setDefaultMessageNotificationsLevel(Guild.NotificationLevel notificationsLevel)
Sets the default message notification level for the modified
Guild . |
GuildEditSpec |
setIcon(Image icon)
Sets the image icon to display for the modified
Guild . |
GuildEditSpec |
setName(String name)
Sets the modified
Guild name. |
GuildEditSpec |
setOwnerId(Snowflake ownerId)
Sets the new owner ID for this
Guild . |
GuildEditSpec |
setReason(String reason)
Sets the reason to show in the audit logs when the spec is built.
|
GuildEditSpec |
setRegion(Region region)
Sets the voice region for the modified
Guild . |
GuildEditSpec |
setSplash(Image splash)
Sets the splash image to display for the modified
Guild . |
GuildEditSpec |
setVerificationLevel(Guild.VerificationLevel verificationLevel)
Sets the verification level required before a member can send messages in the modified
Guild . |
public GuildEditSpec setName(String name)
Guild
name.name
- the guild namepublic GuildEditSpec setRegion(Region region)
Guild
.region
- The voice region for the guild.public GuildEditSpec setVerificationLevel(Guild.VerificationLevel verificationLevel)
Guild
.verificationLevel
- The verification level for the guild.public GuildEditSpec setDefaultMessageNotificationsLevel(Guild.NotificationLevel notificationsLevel)
Guild
.notificationsLevel
- The default notification level for the guild.public GuildEditSpec setAfkChannelId(@Nullable Snowflake afkChannelId)
afkChannelId
- The identifier for the AFK channel.public GuildEditSpec setAfkTimeout(int afkTimeout)
Guild
.afkTimeout
- The AFK timeout, in seconds.public GuildEditSpec setIcon(@Nullable Image icon)
Guild
.icon
- The icon for the guild.public GuildEditSpec setOwnerId(Snowflake ownerId)
Guild
. Used to transfer guild ownership if this client is the owner.ownerId
- The identifier for the new guild owner.public GuildEditSpec setSplash(@Nullable Image splash)
Guild
. Used in VIP guilds.splash
- The image for the guild.public GuildEditSpec setBanner(@Nullable Image banner)
Guild
. Used in VERIFIED guilds.banner
- The image for the guild.public GuildEditSpec setReason(@Nullable String reason)
AuditSpec
@Nullable public String getReason()
AuditSpec