Class GuildWelcomeScreenManagerImpl
java.lang.Object
net.dv8tion.jda.internal.requests.RestActionImpl<Void>
net.dv8tion.jda.internal.requests.restaction.AuditableRestActionImpl<Void>
net.dv8tion.jda.internal.managers.ManagerBase<GuildWelcomeScreenManager>
net.dv8tion.jda.internal.managers.GuildWelcomeScreenManagerImpl
- All Implemented Interfaces:
GuildWelcomeScreenManager
,Manager<GuildWelcomeScreenManager>
,RestAction<Void>
,AuditableRestAction<Void>
public class GuildWelcomeScreenManagerImpl
extends ManagerBase<GuildWelcomeScreenManager>
implements GuildWelcomeScreenManager
-
Field Summary
Fields inherited from class net.dv8tion.jda.internal.requests.RestActionImpl
LOG
Fields inherited from interface net.dv8tion.jda.api.requests.restaction.AuditableRestAction
MAX_REASON_LENGTH
Fields inherited from interface net.dv8tion.jda.api.managers.GuildWelcomeScreenManager
CHANNELS, DESCRIPTION, ENABLED
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRemoves all welcome channels.getGuild()
TheGuild
this Manager'sGuildWelcomeScreen
is in.Returns an immutable list of the welcome channels
These channels are those which are being modified, not the ones currently shown on Discordreset()
Resets all fields for this Managerreset
(long fields) Resets the fields specified by the provided bit-flag pattern.reset
(long... fields) Resets the specified fields.setDescription
(String description) Sets the description of the welcome screen.setEnabled
(boolean enabled) Sets the enabled state of the welcome screen.setWelcomeChannels
(Collection<? extends GuildWelcomeScreen.Channel> channels) Sets the welcome channels of the welcome screen.Methods inherited from class net.dv8tion.jda.internal.managers.ManagerBase
complete, deadline, isPermissionChecksEnabled, queue, setCheck, setPermissionChecksEnabled, timeout
Methods inherited from class net.dv8tion.jda.internal.requests.restaction.AuditableRestActionImpl
reason
Methods inherited from class net.dv8tion.jda.internal.requests.RestActionImpl
getCheck, getDefaultFailure, getDefaultSuccess, getDefaultTimeout, getJDA, handleResponse, isPassContext, priority, setDefaultFailure, setDefaultSuccess, setDefaultTimeout, setErrorMapper, setPassContext, submit
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.dv8tion.jda.api.requests.restaction.AuditableRestAction
reason
Methods inherited from interface net.dv8tion.jda.api.managers.GuildWelcomeScreenManager
setWelcomeChannels
Methods inherited from interface net.dv8tion.jda.api.requests.RestAction
addCheck, and, and, complete, complete, completeAfter, delay, delay, delay, delay, flatMap, flatMap, getCheck, getJDA, map, mapToResult, onErrorFlatMap, onErrorFlatMap, onErrorMap, onErrorMap, onSuccess, queue, queue, queue, queueAfter, queueAfter, queueAfter, queueAfter, queueAfter, queueAfter, submit, submit, submitAfter, submitAfter, zip
-
Constructor Details
-
GuildWelcomeScreenManagerImpl
-
-
Method Details
-
getGuild
Description copied from interface:GuildWelcomeScreenManager
TheGuild
this Manager'sGuildWelcomeScreen
is in.- Specified by:
getGuild
in interfaceGuildWelcomeScreenManager
- Returns:
- The parent
Guild
-
reset
Description copied from interface:GuildWelcomeScreenManager
Resets the fields specified by the provided bit-flag pattern. You can specify a combination by using a bitwise OR concat of the flag constants.
Example:manager.reset(GuildWelcomeScreenManager.DESCRIPTION | GuildWelcomeScreenManager.CHANNELS);
Flag Constants:
- Specified by:
reset
in interfaceGuildWelcomeScreenManager
- Specified by:
reset
in interfaceManager<GuildWelcomeScreenManager>
- Overrides:
reset
in classManagerBase<GuildWelcomeScreenManager>
- Parameters:
fields
- Integer value containing the flags to reset.- Returns:
- GuildWelcomeScreenManager for chaining convenience
-
reset
Description copied from interface:GuildWelcomeScreenManager
Resets the specified fields.
Example:manager.reset(GuildWelcomeScreenManager.DESCRIPTION, GuildWelcomeScreenManager.CHANNELS);
Flag Constants:
- Specified by:
reset
in interfaceGuildWelcomeScreenManager
- Specified by:
reset
in interfaceManager<GuildWelcomeScreenManager>
- Overrides:
reset
in classManagerBase<GuildWelcomeScreenManager>
- Parameters:
fields
- Integer value containing the flags to reset.- Returns:
- GuildWelcomeScreenManager for chaining convenience
-
reset
Description copied from interface:Manager
Resets all fields for this Manager- Specified by:
reset
in interfaceManager<GuildWelcomeScreenManager>
- Overrides:
reset
in classManagerBase<GuildWelcomeScreenManager>
- Returns:
- The current Manager with all settings reset to default
-
setEnabled
Description copied from interface:GuildWelcomeScreenManager
Sets the enabled state of the welcome screen.- Specified by:
setEnabled
in interfaceGuildWelcomeScreenManager
- Parameters:
enabled
-True
if the welcome screen should be enabled- Returns:
- GuildWelcomeScreenManager for chaining convenience
-
setDescription
Description copied from interface:GuildWelcomeScreenManager
Sets the description of the welcome screen.The description must not be longer than 140
- Specified by:
setDescription
in interfaceGuildWelcomeScreenManager
- Parameters:
description
- The new description of the welcome screen, ornull
to remove the description- Returns:
- GuildWelcomeScreenManager for chaining convenience
-
getWelcomeChannels
Description copied from interface:GuildWelcomeScreenManager
Returns an immutable list of the welcome channels
These channels are those which are being modified, not the ones currently shown on Discord- Specified by:
getWelcomeChannels
in interfaceGuildWelcomeScreenManager
- Returns:
- An immutable list of the welcome channels to be set by the manager
-
clearWelcomeChannels
Description copied from interface:GuildWelcomeScreenManager
Removes all welcome channels.- Specified by:
clearWelcomeChannels
in interfaceGuildWelcomeScreenManager
- Returns:
- GuildWelcomeScreenManager for chaining convenience
-
setWelcomeChannels
@Nonnull public GuildWelcomeScreenManager setWelcomeChannels(@Nonnull Collection<? extends GuildWelcomeScreen.Channel> channels) Description copied from interface:GuildWelcomeScreenManager
Sets the welcome channels of the welcome screen.The order of the
Collection
defines in what order the channels appear on Discord.- Specified by:
setWelcomeChannels
in interfaceGuildWelcomeScreenManager
- Parameters:
channels
- The new welcome channels to use, can be an empty list to remove all welcome channels.- Returns:
- GuildWelcomeScreenManager for chaining convenience
- See Also:
-