Package com.mewna.catnip.entity.misc
Interface Emoji.CustomEmoji
- All Superinterfaces:
 Emoji,Entity,GuildEntity,HasGuild,HasNullableName,Snowflake,Timestamped
- All Known Implementing Classes:
 CustomEmojiImpl
- Enclosing interface:
 - Emoji
 
- 
Nested Class Summary
Nested classes/interfaces inherited from interface com.mewna.catnip.entity.misc.Emoji
Emoji.ActivityEmoji, Emoji.CustomEmoji, Emoji.UnicodeEmojiNested classes/interfaces inherited from interface com.mewna.catnip.entity.partials.Timestamped
Timestamped.TimestampStyle - 
Method Summary
Modifier and TypeMethodDescriptiondefault booleancustom()Whether this emoji iscustom.default StringA string that may be sent in a message and will render this emoji, if the user has permission to.default StringA string that may be added as a reaction to a message, if the user has permission to.default io.reactivex.rxjava3.core.Maybe<Guild>guild()Guild that owns this emoji, ornullif it has no guild.default StringguildId()ID of guild that owns this emoji, ornullif it has no guild.longID of guild that owns this emoji, or0if it has no guild.default Stringid()ID of this emoji, or null if it has no ID.default booleanChecks whether or not this emoji is the provided emoji string.Methods inherited from interface com.mewna.catnip.entity.misc.Emoji
animated, managed, name, requiresColons, roles, unicode, userMethods inherited from interface com.mewna.catnip.entity.partials.Snowflake
creationTime, creationTimestamp, idAsLongMethods inherited from interface com.mewna.catnip.entity.partials.Timestamped
asDiscordTimestamp, parseTimestamp 
- 
Method Details
- 
id
Description copied from interface:EmojiID of this emoji, or null if it has no ID.
Always null forunicodeemoji. - 
guild
Guild that owns this emoji, ornullif it has no guild.NOTE: This may be null in the case of a reaction, because the data may not be available to get the id for the emoji!
- Specified by:
 guildin interfaceGuildEntity- Returns:
 - String representing the ID.
 
 - 
guildId
ID of guild that owns this emoji, ornullif it has no guild.NOTE: This may be null in the case of a reaction, because the data may not be available to get the id for the emoji!
 - 
guildIdAsLong
@CheckReturnValue long guildIdAsLong()ID of guild that owns this emoji, or0if it has no guild.NOTE: This may be null in the case of a reaction, because the data may not be available to get the id for the emoji!
- Specified by:
 guildIdAsLongin interfaceHasGuild- Returns:
 - Long representing the ID.
 
 - 
custom
@CheckReturnValue default boolean custom()Description copied from interface:EmojiWhether this emoji iscustom. - 
forMessage
Description copied from interface:EmojiA string that may be sent in a message and will render this emoji, if the user has permission to.- Specified by:
 forMessagein interfaceEmoji- Returns:
 - A string that yields this emoji when inside a message.
 
 - 
forReaction
Description copied from interface:EmojiA string that may be added as a reaction to a message, if the user has permission to.- Specified by:
 forReactionin interfaceEmoji- Returns:
 - A string that yields this emoji when added as a reaction.
 
 - 
is
Description copied from interface:EmojiChecks whether or not this emoji is the provided emoji string.
If this emoji isunicode, it'snameis compared for equality with the provided string.
If this emoji iscustom, the following checks, in order, are applied:idequalityforMessage()equalityEmoji.forReaction()forReaction()} equality
 
 -