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
All checks were successful
Auto Build and Push Docker Image / build (push) Successful in 3s
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user