Method AddInteractivityExtension
- Namespace
- DSharpPlus.Interactivity.Extensions
- Assembly
- DSharpPlus.Interactivity.dll
AddInteractivityExtension(IServiceCollection, InteractivityConfiguration?)
Adds interactivity to the present service collection.
public static IServiceCollection AddInteractivityExtension(this IServiceCollection services, InteractivityConfiguration? configuration = null)
Parameters
services
IServiceCollectionThe service collection to enable interactivity for.
configuration
InteractivityConfigurationA configuration instance. Default configuration values will be used if none is provided.
Returns
- IServiceCollection
The service collection for chaining.