1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-06 10:52:31 +01:00

Merge branch 'feat/offlineMembers' into slowcord

This commit is contained in:
Madeline 2022-07-16 13:42:19 +10:00
commit 0024e9158c
No known key found for this signature in database
GPG Key ID: 1958E017C36F2E47

View File

@ -41,7 +41,7 @@ async function getMembers(guild_id: string, range: [number, number]) {
.map((m) => m.roles) .map((m) => m.roles)
.flat() .flat()
.unique((r: Role) => r.id); .unique((r: Role) => r.id);
member_roles.push(member_roles.slice(member_roles.findIndex(x => x.id == guild_id))[0]); // move @everyone/online to bottom member_roles.push(member_roles.splice(member_roles.findIndex(x => x.id == guild_id))[0]); // move @everyone/online to bottom
const offlineItems = []; const offlineItems = [];