Skip to content

Commit

Permalink
Added GuildClient:getGuilds() (#315)
Browse files Browse the repository at this point in the history
* Added GuildClient:getGuilds()

* Update CHANGELOG.md
  • Loading branch information
RiskoZoSlovenska authored Oct 25, 2021
1 parent 2786df5 commit f6aea20
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@
- Added GuildClient mixin methods:
- `getGuildShardId`
- `getGuild` (technically not new)
- `getGuilds`
- `getGuildCounts`
- `getGuildPreview`
- `modifyGuild`
Expand Down
4 changes: 4 additions & 0 deletions libs/client/GuildClient.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f6aea20

Please sign in to comment.