Package net.dv8tion.jda.api.entities
Class MessageActivity
- java.lang.Object
-
- net.dv8tion.jda.api.entities.MessageActivity
-
public class MessageActivity extends java.lang.Object
Represents aMessage
activity.- See Also:
Message.getActivity()
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MessageActivity.ActivityType
An enum representingMessageActivity
types.static class
MessageActivity.Application
Represents theApplication
of a MessageActivity, if it has been set.
-
Constructor Summary
Constructors Constructor Description MessageActivity(MessageActivity.ActivityType type, java.lang.String partyId, MessageActivity.Application application)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageActivity.Application
getApplication()
TheApplication
thisMessageActivity
may have.java.lang.String
getPartyId()
The party id discord uses internally, it may benull
.MessageActivity.ActivityType
getType()
The currentActivityType
-
-
-
Constructor Detail
-
MessageActivity
public MessageActivity(MessageActivity.ActivityType type, java.lang.String partyId, MessageActivity.Application application)
-
-
Method Detail
-
getType
@Nonnull public MessageActivity.ActivityType getType()
The currentActivityType
- Returns:
- the type of the activity, or
UNKNOWN
-
getPartyId
@Nullable public java.lang.String getPartyId()
The party id discord uses internally, it may benull
.- Returns:
- Possibly-null party id
-
getApplication
@Nullable public MessageActivity.Application getApplication()
TheApplication
thisMessageActivity
may have.- Returns:
- A possibly-null
MessageActivity.Application
-
-