Sha256: 34ed011b62c9fd018b7bd108a7491d660c67ab0af18e1625bd4ff13b0441e24a
Contents?: true
Size: 520 Bytes
Versions: 2
Compression:
Stored size: 520 Bytes
Contents
module DiscordBot class Client # Guild module module Guilds # Members module module Members # Get guild members list def get_guild_members(guild_id:) # define params for request headers = { 'Content-Type' => 'application/json', 'Authorization' => "Bot #{bot_token}", 'User-Agent' => user_agent } # make request self.class.get("/guilds/#{guild_id}/members", query: {}, headers: headers).parsed_response end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
discord_bot-0.2.1 | lib/discord_bot/client/guilds/members.rb |
discord_bot-0.2.0 | lib/discord_bot/client/guilds/members.rb |