mirror of
https://github.com/System-End/Vencord.git
synced 2026-04-19 19:45:09 +00:00
MessageLatency: fix bot check (#3523)
This commit is contained in:
parent
e857f6806f
commit
26074b7f18
1 changed files with 1 additions and 1 deletions
|
|
@ -98,7 +98,7 @@ export default definePlugin({
|
|||
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;
|
||||
if (message.author.bot) return null;
|
||||
|
||||
let isDiscordKotlin = false;
|
||||
let delta = SnowflakeUtils.extractTimestamp(id) - SnowflakeUtils.extractTimestamp(nonce); // milliseconds
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue