/// <summary>
 /// Take over all legacy dialog submission handling with your own handler.
 /// </summary>
 public abstract TConfig ReplaceLegacyDialogSubmissionHandling(KeyedHandlerFactory <IDialogSubmissionHandler> handlerFactory);
Exemple #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);
Exemple #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);
Exemple #9
0
 public override TConfig ReplaceLegacyOptionProviding(KeyedHandlerFactory <IOptionProvider> providerFactory) => Chain(() => ReplaceKeyedHandling(providerFactory));
Exemple #10
0
 public override TConfig ReplaceLegacyInteractiveMessageHandling(KeyedHandlerFactory <IInteractiveMessageHandler> handlerFactory) => Chain(() => ReplaceKeyedHandling(handlerFactory));
Exemple #11
0
 public override TConfig ReplaceSlashCommandHandling(KeyedHandlerFactory <IAsyncSlashCommandHandler> handlerFactory) => Chain(() => ReplaceKeyedHandling(handlerFactory));
Exemple #12
0
 public override TConfig ReplaceViewSubmissionHandling(KeyedHandlerFactory <IAsyncViewSubmissionHandler> handlerFactory) => Chain(() => ReplaceKeyedHandling(handlerFactory));
Exemple #13
0
 protected abstract void ReplaceKeyedHandling <THandler>(KeyedHandlerFactory <THandler> handlerFactory) where THandler : class;