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
public static class Message.Interaction extends java.lang.Object implements ISnowflake
Represents anInteraction
provided with aMessage
.
-
-
Constructor Summary
Constructors Constructor Description Interaction(long id, int type, java.lang.String name, User user, Member member)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getIdLong()
The Snowflake id of this entity.Member
getMember()
TheMember
who caused this interaction.java.lang.String
getName()
The command name.InteractionType
getType()
TheInteractionType
for this interaction.int
getTypeRaw()
The raw interaction type.User
getUser()
TheUser
who caused this interaction.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.dv8tion.jda.api.entities.ISnowflake
getId, getTimeCreated
-
-
-
-
Method Detail
-
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
@Nonnull public InteractionType getType()
TheInteractionType
for this interaction.- Returns:
- The
InteractionType
orInteractionType.UNKNOWN
-
getName
@Nonnull public java.lang.String getName()
The command name.- Returns:
- The command name
-
-