Table of Contents

Method CreateScheduledGuildEventAsync

Namespace
DSharpPlus
Assembly
DSharpPlus.Rest.dll

CreateScheduledGuildEventAsync(ulong, string, string, ulong?, DiscordScheduledGuildEventType, DiscordScheduledGuildEventPrivacyLevel, DateTimeOffset, DateTimeOffset?, Stream?, string)

Creates a new scheduled guild event.

public Task<DiscordScheduledGuildEvent> CreateScheduledGuildEventAsync(ulong guildId, string name, string description, ulong? channelId, DiscordScheduledGuildEventType type, DiscordScheduledGuildEventPrivacyLevel privacyLevel, DateTimeOffset start, DateTimeOffset? end, Stream? image = null, string location = null)

Parameters

guildId ulong

The guild to create an event on.

name string

The name of the event, up to 100 characters.

description string

The description of the event, up to 1000 characters.

channelId ulong?

The channel the event will take place in, if applicable.

type DiscordScheduledGuildEventType

The type of event. If External, a end time must be specified.

privacyLevel DiscordScheduledGuildEventPrivacyLevel

The privacy level of the event.

start DateTimeOffset

When the event starts. Must be in the future and before the end date, if specified.

end DateTimeOffset?

When the event ends. Required for External

image Stream

The image of event.

location string

Where this location takes place.

Returns

Task<DiscordScheduledGuildEvent>

The created event.