Class ButtonInteractionEvent

All Implemented Interfaces:
ISnowflake, GenericEvent, IDeferrableCallback, IMessageEditCallback, IModalCallback, IReplyCallback, ButtonInteraction, ComponentInteraction, Interaction

public class ButtonInteractionEvent extends GenericComponentInteractionCreateEvent implements ButtonInteraction
Indicates that a custom Button on one of the bots messages was clicked by a user.

This fires when a user clicks one of the custom buttons attached to a bot or webhook message.

To receive these events, you must unset the Interactions Endpoint URL in your application dashboard. You can simply remove the URL for this endpoint in your settings at the Discord Developers Portal.