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