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
name
stringThe name of the event, up to 100 characters.
description
stringThe description of this event, up to 1000 characters.
privacyLevel
DiscordScheduledGuildEventPrivacyLevelThe privacy level. Currently only GuildOnly is supported
start
DateTimeOffsetWhen this event starts.
end
DateTimeOffset?When this event ends. External events require an end time.
Returns
- Task<DiscordScheduledGuildEvent>
The created event.