From 6c2fb008eb532ef32da6eb3a715251fd9e31ba75 Mon Sep 17 00:00:00 2001 From: Maximilian von Lindern Date: Sat, 29 May 2021 21:41:22 +0200 Subject: [PATCH] gateway: Rename RequestGuildMembersData.GuildID to GuildIDs for consistency --- gateway/commands.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gateway/commands.go b/gateway/commands.go index fc3591c..aedefe4 100644 --- a/gateway/commands.go +++ b/gateway/commands.go @@ -78,8 +78,10 @@ func (g *Gateway) HeartbeatCtx(ctx context.Context) error { } type RequestGuildMembersData struct { - GuildID []discord.GuildID `json:"guild_id"` - UserIDs []discord.UserID `json:"user_ids,omitempty"` + // GuildIDs contains the ids of the guilds to request data from. Multiple + // guilds can only be requested when using user accounts. + GuildIDs []discord.GuildID `json:"guild_id"` + UserIDs []discord.UserID `json:"user_ids,omitempty"` Query string `json:"query"` Limit uint `json:"limit"`