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

Commit b3c7630

Browse files
author
jonas747
committed
add threads field to guild
1 parent 5558f00 commit b3c7630

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

structs.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -411,10 +411,13 @@ type Guild struct {
411411
Presences []*Presence `json:"presences"`
412412

413413
// A list of channels in the guild.
414-
// This field is only present in GUILD_CREATE events and websocket
415-
// update events, and thus is only present in state-cached guilds.
414+
// This field is only present in GUILD_CREATE events
416415
Channels []*Channel `json:"channels"`
417416

417+
// All active threads in the guild that current user has permission to view
418+
// This field is only present in GUILD_CREATE events
419+
Threads []*Channel `json:"threads"`
420+
418421
// A list of voice states for the guild.
419422
// This field is only present in GUILD_CREATE events and websocket
420423
// update events, and thus is only present in state-cached guilds.

0 commit comments

Comments
 (0)