Table of Contents

Method CreateExternalScheduledEventAsync

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

CreateExternalScheduledEventAsync(string, DateTimeOffset, DateTimeOffset, string, string, Optional<Stream>, string)

Creates a scheduled event with type External.

public Task<DiscordScheduledEvent> CreateExternalScheduledEventAsync(string name, DateTimeOffset scheduledStartTime, DateTimeOffset scheduledEndTime, string location, string description = null, Optional<Stream> coverImage = default, string reason = null)

Parameters

name string

The name.

scheduledStartTime DateTimeOffset

The scheduled start time.

scheduledEndTime DateTimeOffset

The scheduled end time.

location string

The location of the external event.

description string

The description.

coverImage Optional<Stream>

The cover image.

reason string

The reason.

Returns

Task<DiscordScheduledEvent>

A scheduled event.

Exceptions

NotFoundException

Thrown when the guild does not exist.

BadRequestException

Thrown when an invalid parameter was provided.

ServerErrorException

Thrown when Discord is unable to process the request.