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
- tokenstring
- The token to use for this application. 
- intentsDiscordIntents
- The intents to connect to the gateway with. 
- serviceCollectionIServiceCollection
- The service collection to base this builder on. 
Returns
- DiscordClientBuilder
- A new DiscordClientBuilder.