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
DiscordScheduledGuildEventreason
stringThe 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
ulongThe Id of the event which should be deleted.
reason
stringThe reason which should be used for the audit log
Returns
- Task