Table of Contents

Method DeleteEventAsync

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.dll

DeleteEventAsync(DiscordScheduledGuildEvent, string?)

Deletes an exising scheduled event in this guild.

public Task DeleteEventAsync(DiscordScheduledGuildEvent guildEvent, string? reason = null)

Parameters

guildEvent DiscordScheduledGuildEvent
reason string

The reason which should be used for the audit log

Returns

Task

DeleteEventAsync(ulong, string?)

Deletes an exising scheduled event in this guild.

public Task DeleteEventAsync(ulong guildEventId, string? reason = null)

Parameters

guildEventId ulong

The Id of the event which should be deleted.

reason string

The reason which should be used for the audit log

Returns

Task