Class GuildWelcomeScreenImpl.ChannelImpl
java.lang.Object
net.dv8tion.jda.internal.entities.GuildWelcomeScreenImpl.ChannelImpl
- All Implemented Interfaces:
GuildWelcomeScreen.Channel
,ISnowflake
,SerializableData
- Enclosing class:
GuildWelcomeScreenImpl
public static class GuildWelcomeScreenImpl.ChannelImpl
extends Object
implements GuildWelcomeScreen.Channel
POJO for the recommended channels information provided by a welcome screen.
Recommended channels are shown in the welcome screen after joining a server.
Recommended channels are shown in the welcome screen after joining a server.
- See Also:
-
Field Summary
Fields inherited from interface net.dv8tion.jda.api.entities.GuildWelcomeScreen.Channel
MAX_DESCRIPTION_LENGTH
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns theGuildChannel
that is linked to this recommended channel.The description of this recommended channel shown in the welcome screen.getEmoji()
The emoji that is used for this recommended channel.getGuild()
long
The id of this recommended channel.toData()
SerializedDataObject
for this object.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.dv8tion.jda.api.entities.ISnowflake
getId, getTimeCreated
-
Constructor Details
-
ChannelImpl
-
-
Method Details
-
getGuild
Description copied from interface:GuildWelcomeScreen.Channel
- Specified by:
getGuild
in interfaceGuildWelcomeScreen.Channel
- Returns:
- The Guild, or
null
-
getIdLong
public long getIdLong()Description copied from interface:GuildWelcomeScreen.Channel
The id of this recommended channel.- Specified by:
getIdLong
in interfaceGuildWelcomeScreen.Channel
- Specified by:
getIdLong
in interfaceISnowflake
- Returns:
- The id of this recommended channel
-
getChannel
Description copied from interface:GuildWelcomeScreen.Channel
Returns theGuildChannel
that is linked to this recommended channel.
This will benull
if the linked channel was deleted, or if the welcome screen comes from aninvite guild
.- Specified by:
getChannel
in interfaceGuildWelcomeScreen.Channel
- Returns:
- The
GuildChannel
that is linked to this recommended channel ornull
-
getDescription
Description copied from interface:GuildWelcomeScreen.Channel
The description of this recommended channel shown in the welcome screen.- Specified by:
getDescription
in interfaceGuildWelcomeScreen.Channel
- Returns:
- The description of this recommended channel
-
getEmoji
Description copied from interface:GuildWelcomeScreen.Channel
The emoji that is used for this recommended channel.
This will returnnull
if no emoji was setThe emoji will always be from this guild, if not a unicode emoji
CustomEmoji.isAnimated()
will always returnfalse
if:- This welcome screen came from an
invite's guild
CacheFlag.EMOJI
is disabled
- Specified by:
getEmoji
in interfaceGuildWelcomeScreen.Channel
- Returns:
- The emoji that is used for this recommended channel or
null
- This welcome screen came from an
-
toData
Description copied from interface:SerializableData
SerializedDataObject
for this object.- Specified by:
toData
in interfaceSerializableData
- Returns:
DataObject
-