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
Add a link
Reference in a new issue