Mute/tempbans, etc. durations are 1 second off in bot's messages and DMs
See original GitHub issueIssue
Every mute, temp-ban or anything that has a time (when displayed) always 1 second off.
Example
@ERROR was muted for 2 days (1 day, 23 hours).
The (1 day, 23 hours) isn’t required

Issue Analytics
- State:
- Created a year ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
Frequently Asked Questions - Midjourney Documentation
DMing the Bot (Direct Messaging). Q: How do I DM the bot? A: The easiest way to initiate a DM conversation with the...
Read more >How to Disable Direct Messages on Discord - YouTube
How to disable direct messages on Discord? In this tutorial, I show you how to turn off direct messages in Discord on a...
Read more >Discord bot editing messages too slow - Stack Overflow
Deleting messages falls under a separate, higher rate limit so that bots are able to ... //syntax: await wait(1000); to "pause" for 1...
Read more >User Guide | PluralKit
PluralKit's user guide contains a walkthrough of the bot's features, as well as how to use them.
Read more >Rate limiting for bots - Teams | Microsoft Learn
Rate limiting is a method to limit messages to a certain maximum frequency. As a general principle, your application must limit the number...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

To give some context, the duration in parentheses is calculated after the infraction is added to the database. In a very rare case we had some latency and a 10 minute mute was applied 6 minutes after it was added to the database. In that case we were told the mute will last 4 minutes, which is correct.
That said, it doesn’t seem like a very compelling reason to keep this behavior. I’m ok with just using the supplied duration as-is, or maybe we could add a check to make sure the delta is no greater than a few seconds to account for edge cases.