d2m username colors #107

Open
mschae wants to merge 8 commits from mschae/out-of-your-element:role-colors into main
Showing only changes of commit 819a7d4169 - Show all commits

fix unsorted roles after startup

mschae23 2026-11-13 00:36:02 +01:00
Signed by untrusted user: mschae
GPG key ID: A87721D300DE88AB

View file

@ -93,6 +93,10 @@ async function onPacket(client, message, listen) {
client.channels.set(thread.id, thread)
}
for (const guild of client.guilds.values()) {
guild.roles.sort((a, b) => b.position - a.position)
}
if (listen === "full") {
try {
// Wait for guilds to be connected and homeserver to be online. If this is the last guild, a different code path is used to trigger the homeserver check.