Skip to content
This repository was archived by the owner on Mar 5, 2023. It is now read-only.

Commit 6827e8f

Browse files
committed
trying to easyjson on guild creates
1 parent 9563fa0 commit 6827e8f

File tree

5 files changed

+1901
-2
lines changed

5 files changed

+1901
-2
lines changed

events.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99
// handled by AddHandler/EventHandler.
1010
// DO NOT ADD ANYTHING BUT EVENT HANDLER STRUCTS TO THIS FILE.
1111
//go:generate go run tools/cmd/eventhandlers/main.go
12+
//go:generate easyjson -no_std_marshalers events.go
1213

1314
// Connect is the data for a Connect event.
1415
// This is a sythetic event and is not dispatched by Discord.
@@ -109,6 +110,7 @@ func (cp *ChannelPinsUpdate) GetChannelID() int64 {
109110
}
110111

111112
// GuildCreate is the data for a GuildCreate event.
113+
//easyjson:json
112114
type GuildCreate struct {
113115
*Guild
114116
}

0 commit comments

Comments
 (0)