Method CreateDefault
- Namespace
- DSharpPlus
- Assembly
- DSharpPlus.dll
CreateDefault(string, DiscordIntents, IServiceCollection?)
Creates a new DiscordClientBuilder without sharding, using the specified token.
public static DiscordClientBuilder CreateDefault(string token, DiscordIntents intents, IServiceCollection? serviceCollection = null)
Parameters
tokenstringThe token to use for this application.
intentsDiscordIntentsThe intents to connect to the gateway with.
serviceCollectionIServiceCollectionThe service collection to base this builder on.
Returns
- DiscordClientBuilder
A new DiscordClientBuilder.