public class GuildManager
extends net.dv8tion.jda.core.managers.impl.ManagerBase
Guild.
Example
manager.setName("Official JDA Guild")
.setIcon(null)
.queue();
manager.reset(GuildManager.NAME | GuildManager.ICON)
.setName("Minn's Meme Den")
.setExplicitContentLevel(Guild.ExplicitContentLevel.HIGH)
.queue();
Guild.getManager()AuditableRestAction.EmptyRestAction<T>| Modifier and Type | Field | Description |
|---|---|---|
static long |
AFK_CHANNEL |
Used to reset the afk channel field
|
static long |
AFK_TIMEOUT |
Used to reset the afk timeout field
|
static long |
EXPLICIT_CONTENT_LEVEL |
Used to reset the explicit content level field
|
static long |
ICON |
Used to reset the icon field
|
static long |
MFA_LEVEL |
Used to reset the mfa level field
|
static long |
NAME |
Used to reset the name field
|
static long |
NOTIFICATION_LEVEL |
Used to reset the default notification level field
|
static long |
REGION |
Used to reset the region field
|
static long |
SPLASH |
Used to reset the splash field
|
static long |
SYSTEM_CHANNEL |
Used to reset the system channel field
|
static long |
VERIFICATION_LEVEL |
Used to reset the verification level field
|
DEFAULT_FAILURE, DEFAULT_SUCCESS, LOG| Constructor | Description |
|---|---|
GuildManager(Guild guild) |
reason, setCheckcomplete, isPermissionChecksEnabled, queue, setPermissionChecksEnabledequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomplete, completeAfter, getJDA, isPassContext, queue, queue, queueAfter, queueAfter, queueAfter, queueAfter, queueAfter, queueAfter, setPassContext, submit, submit, submitAfter, submitAfterpublic static final long NAME
public static final long REGION
public static final long ICON
public static final long SPLASH
public static final long AFK_CHANNEL
public static final long AFK_TIMEOUT
public static final long SYSTEM_CHANNEL
public static final long MFA_LEVEL
public static final long NOTIFICATION_LEVEL
public static final long EXPLICIT_CONTENT_LEVEL
public static final long VERIFICATION_LEVEL
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 GuildManager reset(long fields)
manager.reset(GuildManager.NAME | GuildManager.ICON);
Flag Constants:
reset in class net.dv8tion.jda.core.managers.impl.ManagerBasefields - Integer value containing the flags to reset.@CheckReturnValue public GuildManager reset(long... fields)
manager.reset(GuildManager.NAME, GuildManager.ICON);
Flag Constants:
reset in class net.dv8tion.jda.core.managers.impl.ManagerBasefields - Integer values containing the flags to reset.@CheckReturnValue public GuildManager reset()
reset in class net.dv8tion.jda.core.managers.impl.ManagerBase@CheckReturnValue public GuildManager setName(java.lang.String name)
Guild.name - The new name for this Guildjava.lang.IllegalArgumentException - If the provided name is null or not between 2-100 characters long@CheckReturnValue public GuildManager setRegion(Region region)
region - The new region for this Guildjava.lang.IllegalArgumentException - If the provided region is a VIP Region but the guild does not support VIP regions.
Use Guild#getFeatures() to check if VIP regions are supported.Region.isVip(),
Guild.getFeatures()@CheckReturnValue public GuildManager setIcon(Icon icon)
icon - The new icon for this Guild
or null to reset@CheckReturnValue public GuildManager setSplash(Icon splash)
@CheckReturnValue public GuildManager setAfkChannel(VoiceChannel afkChannel)
VoiceChannel of this Guild.afkChannel - The new afk channel for this Guild
or null to resetjava.lang.IllegalArgumentException - If the provided channel is not from this guild@CheckReturnValue public GuildManager setSystemChannel(TextChannel systemChannel)
TextChannel of this Guild.systemChannel - The new system channel for this Guild
or null to resetjava.lang.IllegalArgumentException - If the provided channel is not from this guild@CheckReturnValue public GuildManager setAfkTimeout(Guild.Timeout timeout)
timeout - The new afk timeout for this Guildjava.lang.IllegalArgumentException - If the provided timeout is null@CheckReturnValue public GuildManager setVerificationLevel(Guild.VerificationLevel level)
Verification Level of this Guild.level - The new Verification Level for this Guildjava.lang.IllegalArgumentException - If the provided level is null or UNKNOWN@CheckReturnValue public GuildManager setDefaultNotificationLevel(Guild.NotificationLevel level)
Notification Level of this Guild.level - The new Notification Level for this Guildjava.lang.IllegalArgumentException - If the provided level is null or UNKNOWN@CheckReturnValue public GuildManager setRequiredMFALevel(Guild.MFALevel level)
level - The new MFA Level for this Guildjava.lang.IllegalArgumentException - If the provided level is null or UNKNOWN@CheckReturnValue public GuildManager setExplicitContentLevel(Guild.ExplicitContentLevel level)
Explicit Content Level of this Guild.level - The new MFA Level for this Guildjava.lang.IllegalArgumentException - If the provided level is null or UNKNOWN