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; }
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); }
public static Button RegisterWith(this Button button, IButtonHandlerRepository repository) { repository.Register(button); return(button); }