@@ -21,32 +21,32 @@ const (
2121
2222// In modern discord docs - otherwise known as generic gateway event.
2323//
24- // https://discord.com/developers/docs /events/gateway#gateway-events
24+ // https://docs. discord.com/developers/events/gateway#gateway-events
2525type EventPacket struct {
2626 Opcode Opcode `json:"op"`
2727 Sequence uint32 `json:"s,omitempty"`
2828 Event EventName `json:"t,omitempty"`
2929 Data json.RawMessage `json:"d"`
3030}
3131
32- // https://discord.com/developers/docs /events/gateway-events#hello
32+ // https://docs. discord.com/developers/events/gateway-events#hello
3333type HelloEventData struct {
3434 HeartbeatInterval uint32 `json:"heartbeat_interval"`
3535}
3636
37- // https://discord.com/developers/docs /events/gateway-events#heartbeat
37+ // https://docs. discord.com/developers/events/gateway-events#heartbeat
3838type HeartbeatEvent struct {
3939 Opcode Opcode `json:"op"`
4040 Sequence uint32 `json:"d"`
4141}
4242
43- // https://discord.com/developers/docs /events/gateway-events#identify
43+ // https://docs. discord.com/developers/events/gateway-events#identify
4444type IdentifyEvent struct {
4545 Opcode Opcode `json:"op"`
4646 Data IdentifyPayloadData `json:"d"`
4747}
4848
49- // https://discord.com/developers/docs /events/gateway-events#identify-identify-structure
49+ // https://docs. discord.com/developers/events/gateway-events#identify-identify-structure
5050type IdentifyPayloadData struct {
5151 Token string `json:"token"`
5252 Intents uint32 `json:"intents"`
@@ -55,14 +55,14 @@ type IdentifyPayloadData struct {
5555 Properties IdentifyPayloadDataProperties `json:"properties"`
5656}
5757
58- // https://discord.com/developers/docs /events/gateway-events#identify-identify-connection-properties
58+ // https://docs. discord.com/developers/events/gateway-events#identify-identify-connection-properties
5959type IdentifyPayloadDataProperties struct {
6060 OS string `json:"os"`
6161 Browser string `json:"browser"`
6262 Device string `json:"device"`
6363}
6464
65- // https://discord.com/developers/docs /events/gateway-events#ready
65+ // https://docs. discord.com/developers/events/gateway-events#ready
6666type ReadyEventData struct {
6767 User User `json:"user"`
6868 Version uint8 `json:"v"` // Version of Discord API version
@@ -73,27 +73,27 @@ type ReadyEventData struct {
7373 // + partial application object (docs)
7474}
7575
76- // https://discord.com/developers/docs /events/gateway-events#resume
76+ // https://docs. discord.com/developers/events/gateway-events#resume
7777type ResumeEvent struct {
7878 Opcode Opcode `json:"op"`
7979 Data ResumeEventData `json:"d"`
8080}
8181
82- // https://discord.com/developers/docs /events/gateway-events#resume-resume-structure
82+ // https://docs. discord.com/developers/events/gateway-events#resume-resume-structure
8383type ResumeEventData struct {
8484 Token string `json:"token"`
8585 SessionID string `json:"session_id"`
8686 Sequence uint32 `json:"seq"` // Last sequence number received
8787}
8888
89- // https://discord.com/developers/docs /events/gateway#get-gateway-bot
89+ // https://docs. discord.com/developers/events/gateway#get-gateway-bot
9090type GatewayBot struct {
9191 URL string `json:"url"`
9292 ShardCount uint16 `json:"shards"`
9393 SessionStartLimit SessionStartLimit `json:"session_start_limit"`
9494}
9595
96- // https://discord.com/developers/docs /events/gateway#session-start-limit-object
96+ // https://docs. discord.com/developers/events/gateway#session-start-limit-object
9797type SessionStartLimit struct {
9898 ResetAfter uint32 `json:"reset_after"`
9999 Total uint16 `json:"total"` // max 1000
@@ -111,7 +111,7 @@ const (
111111 OFFLINE_STATUS StatusType = "offline"
112112)
113113
114- // https://discord.com/developers/docs /events/gateway-events#activity-object-activity-types
114+ // https://docs. discord.com/developers/events/gateway-events#activity-object-activity-types
115115type ActivityType uint8
116116
117117const (
@@ -123,7 +123,7 @@ const (
123123 COMPETING_ACTIVITY_TYPE ActivityType = 5
124124)
125125
126- // https://discord.com/developers/docs /events/gateway-events#activity-object
126+ // https://docs. discord.com/developers/events/gateway-events#activity-object
127127//
128128// Activity only in context of Discord Bot Presence via Gateway.
129129type Activity struct {
@@ -132,13 +132,13 @@ type Activity struct {
132132 URL string `json:"url,omitempty"` // Stream URL, only for Streaming type
133133}
134134
135- // https://discord.com/developers/docs /events/gateway-events#update-presence
135+ // https://docs. discord.com/developers/events/gateway-events#update-presence
136136type UpdatePresenceEvent struct {
137137 Opcode Opcode `json:"op"`
138138 Data UpdatePresenceEventData `json:"d"`
139139}
140140
141- // https://discord.com/developers/docs /events/gateway-events#update-presence-gateway-presence-update-structure
141+ // https://docs. discord.com/developers/events/gateway-events#update-presence-gateway-presence-update-structure
142142type UpdatePresenceEventData struct {
143143 Since * int64 `json:"since"` // Unix time (in milliseconds) of when the client went idle, or null if the client is not idle
144144 Activities []Activity `json:"activities"`
@@ -149,7 +149,7 @@ type UpdatePresenceEventData struct {
149149// Represents the payload for the GUILD_CREATE gateway event.
150150// It embeds the base Guild object and adds fields unique to this event.
151151//
152- // https://discord.com/developers/docs /events/gateway-events#guild-create
152+ // https://docs. discord.com/developers/events/gateway-events#guild-create
153153type CreateGuildEventData struct {
154154 * Guild
155155
0 commit comments