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
Deprecated.
Represents an
Interaction provided with a Message.-
Constructor Summary
ConstructorsConstructorDescriptionInteraction(long id, int type, String name, User user, Member member) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionlongDeprecated.The Snowflake id of this entity.Deprecated.TheMemberwho caused this interaction.getName()Deprecated.The command name.getType()Deprecated.TheInteractionTypefor this interaction.intDeprecated.The raw interaction type.getUser()Deprecated.TheUserwho caused this interaction.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.dv8tion.jda.api.entities.ISnowflake
getId, getTimeCreated
-
Constructor Details
-
Interaction
Deprecated.
-
-
Method Details
-
getIdLong
public long getIdLong()Deprecated.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()Deprecated.The raw interaction type.
It is recommended to usegetType()instead.- Returns:
- The raw interaction type
-
getType
Deprecated.TheInteractionTypefor this interaction.- Returns:
- The
InteractionTypeorInteractionType.UNKNOWN
-
getName
Deprecated.The command name.- Returns:
- The command name
-
getUser
Deprecated.TheUserwho caused this interaction.- Returns:
- The
User
-
getMember
Deprecated.TheMemberwho caused this interaction.
This is null if the interaction is not from a guild.- Returns:
- The
Member
-
Message.InteractionMetadata