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
token
stringThe token to use for this application.
intents
DiscordIntentsThe intents to connect to the gateway with.
serviceCollection
IServiceCollectionThe service collection to base this builder on.
Returns
- DiscordClientBuilder
A new DiscordClientBuilder.