Beispiel #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;
 }
Beispiel #2
0
 public ButtonInteractionCreateResponder(
     IButtonHandlerRepository handlerRepository,
     IDiscordPermissionsService permissionsService,
     IColourPalette colourPalette,
     ILogger <ButtonInteractionCreateResponder> logger,
     IInteractionResponder interactionResponder
     )
 {
     _handlerRepository    = handlerRepository;
     _permissionsService   = permissionsService;
     _colourPalette        = colourPalette;
     _logger               = logger;
     _interactionResponder = interactionResponder;
 }
 public static HandleableButton RegisterWith(this HandleableButton handleableButton, IButtonHandlerRepository repository)
 {
     repository.Register(handleableButton);
     return(handleableButton);
 }
Beispiel #4
0
 public static Button RegisterWith(this Button button, IButtonHandlerRepository repository)
 {
     repository.Register(button);
     return(button);
 }