Interface UserContextMenuCommandEvent
-
- All Superinterfaces:
ApplicationCommandEvent,Event
public interface UserContextMenuCommandEvent extends ApplicationCommandEvent
A user context menu command event.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default UserContextMenuInteractiongetUserContextMenuInteraction()Gets the created interaction as UserContextMenuInteraction, if the interaction is of this type.default java.util.Optional<UserContextMenuInteraction>getUserContextMenuInteractionWithCommandId(long commandId)Gets the created interaction as UserContextMenuInteraction, if the interaction is of this type and the command id equals the given command id.-
Methods inherited from interface org.javacord.api.event.interaction.ApplicationCommandEvent
getInteraction
-
-
-
-
Method Detail
-
getUserContextMenuInteraction
default UserContextMenuInteraction getUserContextMenuInteraction()
Gets the created interaction as UserContextMenuInteraction, if the interaction is of this type.- Returns:
- The interaction.
-
getUserContextMenuInteractionWithCommandId
default java.util.Optional<UserContextMenuInteraction> getUserContextMenuInteractionWithCommandId(long commandId)
Gets the created interaction as UserContextMenuInteraction, if the interaction is of this type and the command id equals the given command id.- Parameters:
commandId- The command it to match.- Returns:
- The interaction.
-
-