feat(bot-discord): add presence task for dynamic Discord activity#170
feat(bot-discord): add presence task for dynamic Discord activity#170
Conversation
📝 WalkthroughWalkthroughA new 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Tip Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@app-modules/bot-discord/src/Tasks/RichPresence.php`:
- Line 26: Fix the PHPDoc tag typo in the RichPresence docblock by replacing the
invalid "@returns" tag with the correct "@return" tag so the declaration reads
"@return Activity[]"; locate the docblock above the relevant method or property
in the RichPresence class (the comment currently showing "/** `@returns`
Activity[] */") and update it to use "@return" to conform to PHPDoc standards.
| $this->discord()->updatePresence($activities[array_rand($activities)]); | ||
| } | ||
|
|
||
| /** @returns Activity[] */ |
There was a problem hiding this comment.
Typo in PHPDoc tag: @returns → @return.
@returns is not a recognized PHPDoc tag.
Proposed fix
- /** `@returns` Activity[] */
+ /** `@return` Activity[] */📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| /** @returns Activity[] */ | |
| /** `@return` Activity[] */ |
🤖 Prompt for AI Agents
In `@app-modules/bot-discord/src/Tasks/RichPresence.php` at line 26, Fix the
PHPDoc tag typo in the RichPresence docblock by replacing the invalid "@returns"
tag with the correct "@return" tag so the declaration reads "@return
Activity[]"; locate the docblock above the relevant method or property in the
RichPresence class (the comment currently showing "/** `@returns` Activity[] */")
and update it to use "@return" to conform to PHPDoc standards.
Summary by CodeRabbit