Merge remote-tracking branch 'upstream/dev'

This commit is contained in:
thororen1234 2024-05-27 21:15:25 -04:00
commit 9fbfcb019a
10 changed files with 174 additions and 26 deletions

View file

@ -97,6 +97,9 @@ export default definePlugin({
// Message wasn't received through gateway
if (!isNonNullish(nonce)) return null;
// Bots basically never send a nonce, and if someone does do it then it's usually not a snowflake
if (message.bot) return null;
let isDiscordKotlin = false;
let delta = SnowflakeUtils.extractTimestamp(id) - SnowflakeUtils.extractTimestamp(nonce); // milliseconds
if (!showMillis) {