Package org.javacord.core.entity.message
Class MessageAuthorImpl
- java.lang.Object
-
- org.javacord.core.entity.message.MessageAuthorImpl
-
- All Implemented Interfaces:
Formattable
,DiscordEntity
,MessageAuthor
,Nameable
public class MessageAuthorImpl extends Object implements MessageAuthor
The implementation ofMessageAuthor
.
-
-
Constructor Summary
Constructors Constructor Description MessageAuthorImpl(Message message, Long webhookId, com.fasterxml.jackson.databind.JsonNode data)
Creates a new message author.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
DiscordApi
getApi()
Icon
getAvatar()
Optional<String>
getDiscriminator()
long
getId()
Message
getMessage()
String
getName()
int
hashCode()
boolean
isUser()
boolean
isWebhook()
String
toString()
-
Methods inherited from interface org.javacord.api.entity.DiscordEntity
getCreationTimestamp, getCreationTimestamp, getIdAsString
-
Methods inherited from interface org.javacord.api.entity.message.MessageAuthor
asUser, asWebhook, canAddNewReactionsInTextChannel, canAddNewReactionsToMessage, canAttachFilesToTextChannel, canBanUserFromServer, canBanUsersFromServer, canChangeOwnNicknameOnServer, canConnectToVoiceChannel, canCreateChannelsOnServer, canCreateInstantInviteToTextChannel, canDeafenMembersOnServer, canDeleteMessage, canEmbedLinksInTextChannel, canKickUserFromServer, canKickUsersFromServer, canManageEmojisOnServer, canManageMessagesInTextChannel, canManageNicknamesOnServer, canManageRolesOnServer, canManageServer, canMentionEveryoneInTextChannel, canMoveMembersOnServer, canMuteMembersOnServer, canMuteUsersInVoiceChannel, canReadMessageHistoryOfTextChannel, canRemoveReactionsOfOthersInTextChannel, canSeeAllChannelsInCategory, canSeeChannel, canUseExternalEmojisInTextChannel, canUseTtsInTextChannel, canViewAuditLogOfServer, canWriteInTextChannel, getDiscriminatedName, getDisplayName, isBotOwner, isServerAdmin, isYourself
-
-
-
-
Method Detail
-
getApi
public DiscordApi getApi()
- Specified by:
getApi
in interfaceDiscordEntity
-
getId
public long getId()
- Specified by:
getId
in interfaceDiscordEntity
-
getMessage
public Message getMessage()
- Specified by:
getMessage
in interfaceMessageAuthor
-
getDiscriminator
public Optional<String> getDiscriminator()
- Specified by:
getDiscriminator
in interfaceMessageAuthor
-
getAvatar
public Icon getAvatar()
- Specified by:
getAvatar
in interfaceMessageAuthor
-
isUser
public boolean isUser()
- Specified by:
isUser
in interfaceMessageAuthor
-
isWebhook
public boolean isWebhook()
- Specified by:
isWebhook
in interfaceMessageAuthor
-
-