/// <summary>
 /// Take over all legacy dialog submission handling with your own handler.
 /// </summary>
 public abstract TConfig ReplaceLegacyDialogSubmissionHandling(KeyedHandlerFactory <IDialogSubmissionHandler> handlerFactory);
Beispiel #2
0
 protected override void ReplaceKeyedHandling <THandler>(KeyedHandlerFactory <THandler> handlerFactory) => ReplaceKeyedHandling <THandler>((r, hs) => handlerFactory(hs));
 /// <summary>
 /// Take over all interactive message handling with your own handler.
 /// </summary>
 public abstract TConfig ReplaceLegacyInteractiveMessageHandling(KeyedHandlerFactory <IInteractiveMessageHandler> handlerFactory);
 /// <summary>
 /// Take over all legacy option providing with your own provider.
 /// </summary>
 public abstract TConfig ReplaceLegacyOptionProviding(KeyedHandlerFactory <IOptionProvider> providerFactory);
 /// <summary>
 /// Take over all view submission handling with your own handler.
 /// </summary>
 public abstract TConfig ReplaceViewSubmissionHandling(KeyedHandlerFactory <IAsyncViewSubmissionHandler> handlerFactory);
 /// <summary>
 /// Take over all slash command handling with your own handler.
 /// </summary>
 public abstract TConfig ReplaceSlashCommandHandling(KeyedHandlerFactory <IAsyncSlashCommandHandler> handlerFactory);
Beispiel #7
0
 public override TConfig ReplaceLegacyDialogSubmissionHandling(KeyedHandlerFactory <IDialogSubmissionHandler> handlerFactory) => Chain(() => ReplaceKeyedHandling(handlerFactory));
 /// <summary>
 /// Take over all block option providing with your own provider.
 /// </summary>
 public abstract TConfig ReplaceBlockOptionProviding(KeyedHandlerFactory <IBlockOptionProvider> providerFactory);
Beispiel #9
0
 public override TConfig ReplaceLegacyOptionProviding(KeyedHandlerFactory <IOptionProvider> providerFactory) => Chain(() => ReplaceKeyedHandling(providerFactory));
Beispiel #10
0
 public override TConfig ReplaceLegacyInteractiveMessageHandling(KeyedHandlerFactory <IInteractiveMessageHandler> handlerFactory) => Chain(() => ReplaceKeyedHandling(handlerFactory));
Beispiel #11
0
 public override TConfig ReplaceSlashCommandHandling(KeyedHandlerFactory <IAsyncSlashCommandHandler> handlerFactory) => Chain(() => ReplaceKeyedHandling(handlerFactory));
Beispiel #12
0
 public override TConfig ReplaceViewSubmissionHandling(KeyedHandlerFactory <IAsyncViewSubmissionHandler> handlerFactory) => Chain(() => ReplaceKeyedHandling(handlerFactory));
Beispiel #13
0
 protected abstract void ReplaceKeyedHandling <THandler>(KeyedHandlerFactory <THandler> handlerFactory) where THandler : class;