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 anInteractionprovided 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 longgetIdLong()The Snowflake id of this entity.MembergetMember()TheMemberwho caused this interaction.java.lang.StringgetName()The command name.InteractionTypegetType()TheInteractionTypefor this interaction.intgetTypeRaw()The raw interaction type.UsergetUser()TheUserwho 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: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
@Nonnull public InteractionType getType()
TheInteractionTypefor this interaction.- Returns:
- The
InteractionTypeorInteractionType.UNKNOWN
-
getName
@Nonnull public java.lang.String getName()
The command name.- Returns:
- The command name
-
-