Class MessageReferenceImpl
java.lang.Object
com.mewna.catnip.entity.impl.message.MessageReferenceImpl
- All Implemented Interfaces:
Entity
,MessageReference
,RequiresCatnip
- Since:
- 8/19/19.
- Author:
- amy
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionMessageReferenceImpl
(Catnip catnip, String messageId, String channelId, String guildId) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.mewna.catnip.entity.message.MessageReference
guild
-
Constructor Details
-
MessageReferenceImpl
public MessageReferenceImpl() -
MessageReferenceImpl
-
-
Method Details
-
catnip
- Specified by:
catnip
in interfaceRequiresCatnip
-
builder
-
catnip
Description copied from interface:Entity
Returns the catnip instance associated with this entity. -
messageId
Description copied from interface:MessageReference
The id of the message this message reference is from. May be null.- Specified by:
messageId
in interfaceMessageReference
- Returns:
- String representing the message ID.
-
channelId
Description copied from interface:MessageReference
The id of the channel this message reference is from. May be null in the case of inline replies.- Specified by:
channelId
in interfaceMessageReference
- Returns:
- String representing the channel ID.
-
guildId
Description copied from interface:MessageReference
The id of the guild this message reference is from. May be null.- Specified by:
guildId
in interfaceMessageReference
- Returns:
- String representing the guild ID.
-
messageId
- Returns:
this
.
-
channelId
- Returns:
this
.
-
guildId
- Returns:
this
.
-