Table of Contents

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 string

The token to use for this application.

intents DiscordIntents

The intents to connect to the gateway with.

serviceCollection IServiceCollection

The service collection to base this builder on.

Returns

DiscordClientBuilder

A new DiscordClientBuilder.