docs: update AGENTS-BOT.md and README.md with Stopwatch features & guidelines
All checks were successful
Auto Build and Push Docker Image / build (push) Successful in 3s

This commit is contained in:
sarah
2026-08-03 19:00:53 +02:00
parent f7b3347d66
commit 9ca4f9044f
2 changed files with 2 additions and 0 deletions

View File

@@ -157,3 +157,4 @@ if (process.env.AUTO_DEPLOY !== 'false') {
10. **Role Menu Error Handling:** Always wrap `member.roles.add` and `member.roles.remove` in `try/catch` blocks in interaction listeners to handle permission/hierarchy errors gracefully.
11. **Select Menu Emoji Handling:** Never pass an empty string `''` to `setEmoji()`. Only call `setEmoji()` when a valid, non-empty emoji string is provided.
12. **Team Application Owner Support:** When checking bot owner status, check `process.env.BOT_OWNER_ID` or test if `client.application.owner` is a `Team` object with `owner.members.has(userId)`.
13. **Stopwatch Duplicate Prevention & Custom Start Time:** When creating stopwatches, perform a case-insensitive name uniqueness check per user/guild (`LOWER(name)`). Validate custom start times (`startzeit`) to ensure they do not lie in the future.