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:ISnowflake
The Snowflake id of this entity. This is unique to every entity and will never change.- Specified by:
getIdLong
in 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
TheInteractionType
for this interaction.- Returns:
- The
InteractionType
orInteractionType.UNKNOWN
-
getName
The command name.- Returns:
- The command name
-
getUser
TheUser
who caused this interaction.- Returns:
- The
User
-
getMember
TheMember
who caused this interaction.
This is null if the interaction is not from a guild.- Returns:
- The
Member
-