mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-20 20:07:03 -04:00
Merge remote-tracking branch 'upstream/dev'
This commit is contained in:
commit
9fbfcb019a
10 changed files with 174 additions and 26 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue