mirror of
https://github.com/diamondburned/arikawa.git
synced 2024-11-27 09:12:53 +00:00
gateway: add missing Event suffix to GuildMemberListUpdateEvent
This commit is contained in:
parent
231b4759dc
commit
65afa699ef
|
@ -40,6 +40,7 @@ func init() {
|
||||||
func() ws.Event { return new(GuildMemberRemoveEvent) },
|
func() ws.Event { return new(GuildMemberRemoveEvent) },
|
||||||
func() ws.Event { return new(GuildMemberUpdateEvent) },
|
func() ws.Event { return new(GuildMemberUpdateEvent) },
|
||||||
func() ws.Event { return new(GuildMembersChunkEvent) },
|
func() ws.Event { return new(GuildMembersChunkEvent) },
|
||||||
|
func() ws.Event { return new(GuildMemberListUpdateEvent) },
|
||||||
func() ws.Event { return new(GuildRoleCreateEvent) },
|
func() ws.Event { return new(GuildRoleCreateEvent) },
|
||||||
func() ws.Event { return new(GuildRoleUpdateEvent) },
|
func() ws.Event { return new(GuildRoleUpdateEvent) },
|
||||||
func() ws.Event { return new(GuildRoleDeleteEvent) },
|
func() ws.Event { return new(GuildRoleDeleteEvent) },
|
||||||
|
@ -284,6 +285,12 @@ func (*GuildMembersChunkEvent) Op() ws.OpCode { return dispatchOp }
|
||||||
// EventType implements Event.
|
// EventType implements Event.
|
||||||
func (*GuildMembersChunkEvent) EventType() ws.EventType { return "GUILD_MEMBERS_CHUNK" }
|
func (*GuildMembersChunkEvent) EventType() ws.EventType { return "GUILD_MEMBERS_CHUNK" }
|
||||||
|
|
||||||
|
// Op implements Event. It always returns 0.
|
||||||
|
func (*GuildMemberListUpdateEvent) Op() ws.OpCode { return dispatchOp }
|
||||||
|
|
||||||
|
// EventType implements Event.
|
||||||
|
func (*GuildMemberListUpdateEvent) EventType() ws.EventType { return "GUILD_MEMBER_LIST_UPDATE" }
|
||||||
|
|
||||||
// Op implements Event. It always returns 0.
|
// Op implements Event. It always returns 0.
|
||||||
func (*GuildRoleCreateEvent) Op() ws.OpCode { return dispatchOp }
|
func (*GuildRoleCreateEvent) Op() ws.OpCode { return dispatchOp }
|
||||||
|
|
||||||
|
|
|
@ -390,10 +390,10 @@ type GuildMembersChunkEvent struct {
|
||||||
Nonce string `json:"nonce,omitempty"`
|
Nonce string `json:"nonce,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// GuildMemberListUpdate is a dispatch event. It is an undocumented event. It's
|
// GuildMemberListUpdateEvent is a dispatch event. It is an undocumented event.
|
||||||
// received when the client sends over GuildSubscriptions with the Channels
|
// It's received when the client sends over GuildSubscriptions with the Channels
|
||||||
// field used. The State package does not handle this event.
|
// field used. The State package does not handle this event.
|
||||||
type GuildMemberListUpdate struct {
|
type GuildMemberListUpdateEvent struct {
|
||||||
ID string `json:"id"`
|
ID string `json:"id"`
|
||||||
GuildID discord.GuildID `json:"guild_id"`
|
GuildID discord.GuildID `json:"guild_id"`
|
||||||
MemberCount uint64 `json:"member_count"`
|
MemberCount uint64 `json:"member_count"`
|
||||||
|
|
Loading…
Reference in a new issue