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 TypeMethodDescriptionlong
Deprecated.The Snowflake id of this entity.Deprecated.TheMember
who caused this interaction.getName()
Deprecated.The command name.getType()
Deprecated.TheInteractionType
for this interaction.int
Deprecated.The raw interaction type.getUser()
Deprecated.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
-
Constructor Details
-
Interaction
Deprecated.
-
-
Method Details
-
getIdLong
public long getIdLong()Deprecated.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()Deprecated.The raw interaction type.
It is recommended to usegetType()
instead.- Returns:
- The raw interaction type
-
getType
Deprecated.TheInteractionType
for this interaction.- Returns:
- The
InteractionType
orInteractionType.UNKNOWN
-
getName
Deprecated.The command name.- Returns:
- The command name
-
getUser
Deprecated.TheUser
who caused this interaction.- Returns:
- The
User
-
getMember
Deprecated.TheMember
who caused this interaction.
This is null if the interaction is not from a guild.- Returns:
- The
Member
-
Message.InteractionMetadata