dont request guild members if there are no user ids

This commit is contained in:
ouwou 2022-03-03 23:57:48 -05:00
parent 4503aeabc4
commit 3583a5d251

View File

@ -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;