d2m username colors #107
1 changed files with 4 additions and 0 deletions
fix unsorted roles after startup
commit
819a7d4169
|
|
@ -93,6 +93,10 @@ async function onPacket(client, message, listen) {
|
||||||
client.channels.set(thread.id, thread)
|
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") {
|
if (listen === "full") {
|
||||||
try {
|
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.
|
// 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.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue