Ejemplo n.º 1
0
 internal override void Handle(DiscordSocketClient client, DiscordInteraction interaction)
 {
     if (OnSelect != null)
     {
         Task.Run(() => OnSelect.Invoke(this, new FormSelectMenuEventArgs(client, interaction)));
     }
 }
Ejemplo n.º 2
0
 internal void TriggerClick(DiscordSocketClient client, DiscordInteraction interaction)
 {
     if (OnClick != null)
     {
         Task.Run(() => OnClick.Invoke(this, new FormInteractionEventArgs(client, interaction)));
     }
 }
Ejemplo n.º 3
0
        internal FormInteractionEventArgs(DiscordSocketClient client, DiscordInteraction interaction)
        {
            _client = client;
            _id     = interaction.Id;
            _appId  = interaction.ApplicationId;
            _token  = interaction.Token;

            Member = interaction.Member;
            User   = interaction.User;
        }
Ejemplo n.º 4
0
 public DiscordInteractionEventArgs(DiscordInteraction interaction)
 {
     Interaction = interaction;
 }