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) |
Modifier and Type | Method and Description |
---|---|
Guild |
getGuild()
The
Guild object of this Manager. |
JDA |
getJDA()
The
JDA instance of this Manager |
AuditableRestAction<java.lang.Void> |
setAfkChannel(VoiceChannel afkChannel)
Sets the AFK
VoiceChannel of this Guild . |
AuditableRestAction<java.lang.Void> |
setAfkTimeout(Guild.Timeout timeout)
|
AuditableRestAction<java.lang.Void> |
setDefaultNotificationLevel(Guild.NotificationLevel level)
Sets the
Notification Level of this Guild . |
AuditableRestAction<java.lang.Void> |
setIcon(Icon icon)
|
AuditableRestAction<java.lang.Void> |
setName(java.lang.String name)
Sets the name of this
Guild . |
AuditableRestAction<java.lang.Void> |
setRegion(Region region)
|
AuditableRestAction<java.lang.Void> |
setRequiredMFALevel(Guild.MFALevel level)
|
AuditableRestAction<java.lang.Void> |
setSplash(Icon splash)
|
AuditableRestAction<java.lang.Void> |
setVerificationLevel(Guild.VerificationLevel level)
Sets the
Verification Level of this 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 Managerpublic 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()
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()
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()
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()
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()
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()
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()
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()
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()