Exemplo n.º 1
0
 public MmccInfoCommands(ICommandResponder responder, IDiscordRestInteractionAPI interactionApi, IDiscordRestChannelAPI channelApi, IButtonHandlerRepository handlerRepository, IDiscordRestWebhookAPI webhookApi, IInteractionResponder interactionResponder)
 {
     _responder            = responder;
     _interactionApi       = interactionApi;
     _channelApi           = channelApi;
     _handlerRepository    = handlerRepository;
     _webhookApi           = webhookApi;
     _interactionResponder = interactionResponder;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HttpCatCommands"/> class.
 /// </summary>
 /// <param name="webhookAPI">The webhook API.</param>
 /// <param name="context">The command context.</param>
 public HttpCatCommands
 (
     IDiscordRestWebhookAPI webhookAPI,
     InteractionContext context
 )
 {
     _webhookAPI = webhookAPI;
     _context    = context;
 }
Exemplo n.º 3
0
 public InteractionResponder(IDiscordRestWebhookAPI webhookApi, DiscordSettings discordSettings, IDiscordRestInteractionAPI interactionApi)
 {
     _webhookApi      = webhookApi;
     _discordSettings = discordSettings;
     _interactionApi  = interactionApi;
 }