1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-10 12:42:44 +01:00

Always display roles separately to online members

This commit is contained in:
Madeline 2022-07-16 13:34:51 +10:00
parent e085b365be
commit 3fb2d15a29

View File

@ -41,6 +41,7 @@ async function getMembers(guild_id: string, range: [number, number]) {
.map((m) => m.roles)
.flat()
.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
const offlineItems = [];