summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/discord/discord.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/discord/discord.hpp b/src/discord/discord.hpp
index 63f8bd5..dfe82cd 100644
--- a/src/discord/discord.hpp
+++ b/src/discord/discord.hpp
@@ -155,6 +155,8 @@ public:
// send op 8 to get member data for unknown members
template<typename Iter>
void RequestMembers(Snowflake guild_id, Iter begin, Iter end) {
+ if (std::distance(begin, end) == 0) return;
+
RequestGuildMembersMessage obj;
obj.GuildID = guild_id;
obj.Presences = false;