Files
Discord.Net/docs/guides/guild_events/intro.md
Ge ee617d8ef3 Fix typos in comments and documentation (#2608)
* Fix typos in comments and documentations

* Fixes more typo
2023-02-26 20:49:16 +01:00

1008 B

uid, title
uid title
Guides.GuildEvents.Intro Introduction to Guild Events

Guild Events

Guild events are a way to host events within a guild. They offer a lot of features and flexibility.

Getting started with guild events

You can access any events within a guild by calling GetEventsAsync on a guild.

var guildEvents = await guild.GetEventsAsync();

If your working with socket guilds you can just use the Events property:

var guildEvents = guild.Events;

There are also new gateway events that you can hook to receive guild scheduled events on.

// Fired when a guild event is cancelled.
client.GuildScheduledEventCancelled += ...

// Fired when a guild event is completed.
client.GuildScheduledEventCompleted += ...

// Fired when a guild event is started.
client.GuildScheduledEventStarted += ...

// Fired when a guild event is created.
client.GuildScheduledEventCreated += ...

// Fired when a guild event is updated.
client.GuildScheduledEventUpdated += ...