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
guildEventDiscordScheduledGuildEventreasonstringThe reason which should be used for the audit log
Returns
DeleteEventAsync(ulong, string?)
Deletes an exising scheduled event in this guild.
public Task DeleteEventAsync(ulong guildEventId, string? reason = null)
Parameters
guildEventIdulongThe Id of the event which should be deleted.
reasonstringThe reason which should be used for the audit log