Package net.dv8tion.jda.api.entities
Class Message.Interaction
java.lang.Object
net.dv8tion.jda.api.entities.Message.Interaction
- All Implemented Interfaces:
ISnowflake
- Enclosing interface:
- Message
Represents an
Interaction provided with a Message.-
Constructor Details
-
Interaction
-
-
Method Details
-
getIdLong
public long getIdLong()Description copied from interface:ISnowflakeThe Snowflake id of this entity. This is unique to every entity and will never change.- Specified by:
getIdLongin interfaceISnowflake- Returns:
- Long containing the Id.
-
getTypeRaw
public int getTypeRaw()The raw interaction type.
It is recommended to usegetType()instead.- Returns:
- The raw interaction type
-
getType
TheInteractionTypefor this interaction.- Returns:
- The
InteractionTypeorInteractionType.UNKNOWN
-
getName
The command name.- Returns:
- The command name
-
getUser
TheUserwho caused this interaction.- Returns:
- The
User
-
getMember
TheMemberwho caused this interaction.
This is null if the interaction is not from a guild.- Returns:
- The
Member
-