-
Notifications
You must be signed in to change notification settings - Fork 0
/
custom_events.go
38 lines (33 loc) 路 1.16 KB
/
custom_events.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package event
// GuildReady is a situation-specific GuildCreate event.
// It gets fired during Ready for all available guilds.
// Additionally, it gets fired for all those guilds that become available after
// initially connecting, but were not during Ready.
type GuildReady struct {
*GuildCreate
}
// GuildAvailable is a situation-specific GuildCreate event.
// It gets fired when a guild becomes available, after getting marked
// unavailable during a GuildUnavailableEvent event.
// This event will not be fired for guilds that were already unavailable when
// initially connecting.
type GuildAvailable struct {
*GuildCreate
}
// GuildJoin is a situation-specific GuildCreate event.
// It gets fired when the user/bot joins a guild.
type GuildJoin struct {
*GuildCreate
}
// GuildUnavailable is a situation-specific GuildDeleteEvent event.
// It gets fired if the guild becomes unavailable, e.g. through a discord
// outage.
type GuildUnavailable struct {
*GuildDelete
}
// GuildLeave is a situation-specific GuildDeleteEvent event.
// It gets fired when the user/bot leaves guild, gets kicked/banned from it, or
// the owner deletes it.
type GuildLeave struct {
*GuildDelete
}