Method CreateGuildEventAsync
- Namespace
- DSharpPlus.Entities
- Assembly
- DSharpPlus.dll
CreateGuildEventAsync(string, string, DiscordScheduledGuildEventPrivacyLevel, DateTimeOffset, DateTimeOffset?)
Creates an event bound to this channel.
public Task<DiscordScheduledGuildEvent> CreateGuildEventAsync(string name, string description, DiscordScheduledGuildEventPrivacyLevel privacyLevel, DateTimeOffset start, DateTimeOffset? end)
Parameters
namestringThe name of the event, up to 100 characters.
descriptionstringThe description of this event, up to 1000 characters.
privacyLevelDiscordScheduledGuildEventPrivacyLevelThe privacy level. Currently only GuildOnly is supported
startDateTimeOffsetWhen this event starts.
endDateTimeOffset?When this event ends. External events require an end time.
Returns
- Task<DiscordScheduledGuildEvent>
The created event.