Table of Contents
API reference

Method CreateLobbyAsync

Namespace
DisCatSharp
Assembly
DisCatSharp.dll

CreateLobbyAsync(Dictionary<string, string>?, IEnumerable<DiscordLobbyMemberUpdate>?, int?, CancellationToken)

Creates a bot-managed lobby with at most 25 initial members.

public Task<DiscordLobby> CreateLobbyAsync(Dictionary<string, string>? metadata = null, IEnumerable<DiscordLobbyMemberUpdate>? members = null, int? idleTimeoutSeconds = null, CancellationToken cancellationToken = default)

Parameters

metadata Dictionary<string, string>

Optional lobby metadata.

members IEnumerable<DiscordLobbyMemberUpdate>

Optional initial members.

idleTimeoutSeconds int?

Optional idle timeout in seconds.

cancellationToken CancellationToken

A cancellation token.

Returns

Task<DiscordLobby>

The created lobby.