Package org.javacord.api.interaction
Interface MessageInteraction
-
- All Superinterfaces:
DiscordEntity
public interface MessageInteraction extends DiscordEntity
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default DiscordApigetApi()Gets the discord api instance.MessagegetMessage()Gets the original message that the interaction came from.java.lang.StringgetName()Gets the name of the application command of the interaction.InteractionTypegetType()Gets the type of the interaction.UsergetUser()Gets the user who invoked the interaction.-
Methods inherited from interface org.javacord.api.entity.DiscordEntity
getCreationTimestamp, getId, getIdAsString
-
-
-
-
Method Detail
-
getApi
default DiscordApi getApi()
Description copied from interface:DiscordEntityGets the discord api instance.- Specified by:
getApiin interfaceDiscordEntity- Returns:
- The discord api instance.
-
getMessage
Message getMessage()
Gets the original message that the interaction came from.- Returns:
- The original message.
-
getType
InteractionType getType()
Gets the type of the interaction.- Returns:
- The type of the interaction.
-
getName
java.lang.String getName()
Gets the name of the application command of the interaction.- Returns:
- The application command name.
-
getUser
User getUser()
Gets the user who invoked the interaction.- Returns:
- The user invokee.
-
-