utility.lookupinvite: default gdm avatar accuracy

This commit is contained in:
Cynthia Foxwell 2023-05-29 20:09:32 -06:00
parent 6480550286
commit 66c59292f5

View file

@ -528,7 +528,9 @@ lookupinvite.callback = async function (msg, line) {
}` }`
: "https://discord.com" + : "https://discord.com" +
DEFAULT_GROUP_DM_AVATARS[ DEFAULT_GROUP_DM_AVATARS[
Number(invite.channel.id) % DEFAULT_GROUP_DM_AVATARS.length (Math.floor(Number(invite.channel.id) / Math.pow(2, 22)) +
1420070400000) %
DEFAULT_GROUP_DM_AVATARS.length
], ],
}; };
} else if (invite.type == 2) { } else if (invite.type == 2) {