public class GuildManager
extends java.lang.Object
GuildManagerUpdatable
instance.
This decoration allows to modify a single field by automatically building an update RestAction
Constructor and Description |
---|
GuildManager(Guild guild) |
public GuildManager(Guild guild)
public Guild getGuild()
Guild
object of this Manager.
Useful if this Manager was returned via a create functionGuild
of this Manager@CheckReturnValue public AuditableRestAction<java.lang.Void> setName(java.lang.String name)
Guild
.
More information can be found here
!
For information on possible ErrorResponses
by the returned RestAction
see #update()
name
- The new name for this Guild
AuditableRestAction
#update()
GuildManagerUpdatable.getNameField()
,
GuildManagerUpdatable.update()
@CheckReturnValue public AuditableRestAction<java.lang.Void> setRegion(Region region)
Region
of this Guild
.
More information can be found here
!
For information on possible ErrorResponses
by the returned RestAction
see #update()
region
- The new region for this Guild
AuditableRestAction
#update()
GuildManagerUpdatable.getRegionField()
,
GuildManagerUpdatable.update()
@CheckReturnValue public AuditableRestAction<java.lang.Void> setIcon(Icon icon)
Icon
of this Guild
.
More information can be found here
!
For information on possible ErrorResponses
by the returned RestAction
see #update()
icon
- The new icon for this Guild
AuditableRestAction
#update()
GuildManagerUpdatable.getIconField()
,
GuildManagerUpdatable.update()
@CheckReturnValue public AuditableRestAction<java.lang.Void> setSplash(Icon splash)
Icon
of this Guild
.
More information can be found here
!
For information on possible ErrorResponses
by the returned RestAction
see #update()
splash
- The new splash for this Guild
AuditableRestAction
#update()
GuildManagerUpdatable.getSplashField()
,
GuildManagerUpdatable.update()
@CheckReturnValue public AuditableRestAction<java.lang.Void> setAfkChannel(VoiceChannel afkChannel)
VoiceChannel
of this Guild
.
More information can be found here
!
For information on possible ErrorResponses
by the returned RestAction
see #update()
afkChannel
- The new afk channel for this Guild
AuditableRestAction
#update()
GuildManagerUpdatable.getAfkChannelField()
,
GuildManagerUpdatable.update()
@CheckReturnValue public AuditableRestAction<java.lang.Void> setSystemChannel(TextChannel systemChannel)
TextChannel
of this Guild
.
More information can be found here
!
For information on possible ErrorResponses
by the returned RestAction
see #update()
systemChannel
- The new system channel for this Guild
AuditableRestAction
#update()
GuildManagerUpdatable.getSystemChannelField()
,
GuildManagerUpdatable.update()
@CheckReturnValue public AuditableRestAction<java.lang.Void> setAfkTimeout(Guild.Timeout timeout)
Timeout
of this Guild
.
More information can be found here
!
For information on possible ErrorResponses
by the returned RestAction
see #update()
timeout
- The new afk timeout for this Guild
AuditableRestAction
#update()
GuildManagerUpdatable.getAfkTimeoutField()
,
GuildManagerUpdatable.update()
@CheckReturnValue public AuditableRestAction<java.lang.Void> setVerificationLevel(Guild.VerificationLevel level)
Verification Level
of this Guild
.
More information can be found here
!
For information on possible ErrorResponses
by the returned RestAction
see #update()
level
- The new Verification Level for this Guild
AuditableRestAction
#update()
GuildManagerUpdatable.getVerificationLevelField()
,
GuildManagerUpdatable.update()
@CheckReturnValue public AuditableRestAction<java.lang.Void> setDefaultNotificationLevel(Guild.NotificationLevel level)
Notification Level
of this Guild
.
More information can be found here
!
For information on possible ErrorResponses
by the returned RestAction
see #update()
level
- The new Notification Level for this Guild
AuditableRestAction
#update()
GuildManagerUpdatable.getDefaultNotificationLevelField()
,
GuildManagerUpdatable.update()
@CheckReturnValue public AuditableRestAction<java.lang.Void> setRequiredMFALevel(Guild.MFALevel level)
MFA Level
of this Guild
.
More information can be found here
!
For information on possible ErrorResponses
by the returned RestAction
see #update()
level
- The new MFA Level for this Guild
AuditableRestAction
#update()
GuildManagerUpdatable.getRequiredMFALevelField()
,
GuildManagerUpdatable.update()
@CheckReturnValue public AuditableRestAction<java.lang.Void> setExplicitContentLevel(Guild.ExplicitContentLevel level)
Explicit Content Level
of this Guild
.
More information can be found here
!
For information on possible ErrorResponses
by the returned RestAction
see #update()
level
- The new MFA Level for this Guild
AuditableRestAction
#update()
java.lang.IllegalArgumentException
- If the provided level is null
or UNKNOWN
GuildManagerUpdatable.getRequiredMFALevelField()
,
GuildManagerUpdatable.update()