From f6aea20be3050c55f005c8a990fcb2138fec5bbd Mon Sep 17 00:00:00 2001 From: RiskoZoSlovenska Date: Mon, 25 Oct 2021 18:07:34 -0400 Subject: [PATCH] Added GuildClient:getGuilds() (#315) * Added GuildClient:getGuilds() * Update CHANGELOG.md --- CHANGELOG.md | 1 + libs/client/GuildClient.lua | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8cacffa4..90a94a6f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -211,6 +211,7 @@ - Added GuildClient mixin methods: - `getGuildShardId` - `getGuild` (technically not new) + - `getGuilds` - `getGuildCounts` - `getGuildPreview` - `modifyGuild` diff --git a/libs/client/GuildClient.lua b/libs/client/GuildClient.lua index 1e861b8b..b3b63f09 100644 --- a/libs/client/GuildClient.lua +++ b/libs/client/GuildClient.lua @@ -33,6 +33,10 @@ function Client:getGuild(guildId) return self.state:getGuild(guildId) end +function Client:getGuilds() + return self.state:getGuilds() +end + function Client:getGuildPreview(guildId) guildId = checkSnowflake(guildId) local data, err = self.api:getGuildPreview(guildId)