Class GuildStickerManagerImpl
java.lang.Object
net.dv8tion.jda.internal.requests.RestActionImpl<Void>
net.dv8tion.jda.internal.requests.restaction.AuditableRestActionImpl<Void>
net.dv8tion.jda.internal.managers.ManagerBase<GuildStickerManager>
net.dv8tion.jda.internal.managers.GuildStickerManagerImpl
- All Implemented Interfaces:
GuildStickerManager
,Manager<GuildStickerManager>
,RestAction<Void>
,AuditableRestAction<Void>
public class GuildStickerManagerImpl
extends ManagerBase<GuildStickerManager>
implements GuildStickerManager
-
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.GuildStickerManager
DESCRIPTION, NAME, TAGS
-
Constructor Summary
ConstructorsConstructorDescriptionGuildStickerManagerImpl
(Guild guild, long guildId, StickerSnowflake sticker) -
Method Summary
Modifier and TypeMethodDescriptiongetGuild()
TheGuild
this Manager'sGuildSticker
is in.long
The ID of the guild this sticker belongs to.reset()
Resets all fields for this Managerreset
(long fields) Resets the fields specified by the provided bit-flag pattern.reset
(long... fields) Resets the fields specified by the provided bit-flag patterns.setDescription
(String description) Sets the description of the sticker.Sets the name of the sticker.setTags
(Collection<String> tags) Sets the tags of the sticker.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.GuildStickerManager
getGuildId, setTags
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
-
GuildStickerManagerImpl
-
-
Method Details
-
getGuild
Description copied from interface:GuildStickerManager
TheGuild
this Manager'sGuildSticker
is in.This is null if
GuildSticker.getManager()
is used on a sticker with an uncached guild.- Specified by:
getGuild
in interfaceGuildStickerManager
- Returns:
- The
Guild
, or null if not present. - See Also:
-
getGuildIdLong
public long getGuildIdLong()Description copied from interface:GuildStickerManager
The ID of the guild this sticker belongs to.- Specified by:
getGuildIdLong
in interfaceGuildStickerManager
- Returns:
- The guild id
-
reset
Description copied from interface:GuildStickerManager
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(GuildStickerManager.NAME | GuildStickerManager.TAGS);
Flag Constants:
- Specified by:
reset
in interfaceGuildStickerManager
- Specified by:
reset
in interfaceManager<GuildStickerManager>
- Overrides:
reset
in classManagerBase<GuildStickerManager>
- Parameters:
fields
- Integer value containing the flags to reset.- Returns:
- GuildStickerManager for chaining convenience
-
reset
Description copied from interface:GuildStickerManager
Resets the fields specified by the provided bit-flag patterns.
Example:manager.reset(GuildStickerManager.NAME, GuildStickerManager.TAGS);
Flag Constants:
- Specified by:
reset
in interfaceGuildStickerManager
- Specified by:
reset
in interfaceManager<GuildStickerManager>
- Overrides:
reset
in classManagerBase<GuildStickerManager>
- Parameters:
fields
- Integer value containing the flags to reset.- Returns:
- GuildStickerManager for chaining convenience
-
reset
Description copied from interface:Manager
Resets all fields for this Manager- Specified by:
reset
in interfaceManager<GuildStickerManager>
- Overrides:
reset
in classManagerBase<GuildStickerManager>
- Returns:
- The current Manager with all settings reset to default
-
setName
Description copied from interface:GuildStickerManager
Sets the name of the sticker.A sticker name must be between 2-30 characters long!
Example:
catDance
ordogWave
- Specified by:
setName
in interfaceGuildStickerManager
- Parameters:
name
- The new name for the sticker (2-30 characters)- Returns:
- GuildStickerManager for chaining convenience
-
setDescription
Description copied from interface:GuildStickerManager
Sets the description of the sticker.A sticker description must be between 2-100 characters long!
- Specified by:
setDescription
in interfaceGuildStickerManager
- Parameters:
description
- The new description for the sticker (2-100 characters)- Returns:
- GuildStickerManager for chaining convenience
-
setTags
Description copied from interface:GuildStickerManager
Sets the tags of the sticker.
These are used for auto-complete when sending a message in the client, and for the sticker picker menu.The combined list of sticker tags must at most be 200 characters long!
Example:
catDance
ordogWave
- Specified by:
setTags
in interfaceGuildStickerManager
- Parameters:
tags
- The new tags for the sticker (up to 200 characters)- Returns:
- GuildStickerManager for chaining convenience
-