Skip to content

fetch partials in guildMemberUpdate.ts - #7

Merged
vortexsinclair merged 1 commit into
teamboostify:mainfrom
monitry-ltd:main
May 4, 2026
Merged

fetch partials in guildMemberUpdate.ts#7
vortexsinclair merged 1 commit into
teamboostify:mainfrom
monitry-ltd:main

Conversation

@2milliongunguy

@2milliongunguy 2milliongunguy commented May 4, 2026

Copy link
Copy Markdown
Member

bot now fetches full data if newMember and oldMember partials exist

🚀 Summary

  • Added GuildMemberUpdate event handler to track and manage server boosts

✨ Features

  • Automatically fetches full member data when oldMember and newMember are partials, with error handling
  • Detects boost start/end transitions and registers/removes boost records
  • Assigns booster role and level-based roles when a boost starts
  • Removes booster role and level roles when a boost ends
  • Sends notifications to greet channel on new boost with boost count and member info
  • Sends audit logs to log channel for boost start/end events
  • Sends thank-you DM to member when they boost the server

@coderabbitai

coderabbitai Bot commented May 4, 2026

Copy link
Copy Markdown
Contributor

Caution

Review failed

Pull request was closed or merged during review

📝 Walkthrough

Walkthrough

The file src/events/guildMemberUpdate.ts undergoes formatting-only changes: imports are restructured into multi-line destructuring, the execute function signature is wrapped across multiple lines, and embed/object literals are reformatted for readability. No logic, data values, conditions, or behavior are altered.

Changes

GuildMemberUpdate Handler Formatting

Layer / File(s) Summary
Import Restructuring
src/events/guildMemberUpdate.ts (lines 4–10)
roleService named imports are reformatted into a multi-line destructured list; no symbols added or removed.
Handler Signature
src/events/guildMemberUpdate.ts (lines 15–27)
Exported execute function parameter list and initial logic blocks are wrapped across multiple lines for readability; no signature or flow changes.
Embed Object Formatting
src/events/guildMemberUpdate.ts (lines 39–105, 121–144)
Embed construction in onBoostStart (greet and log channels) and onBoostEnd (log embed) are reformatted with multi-line addFields entries and type casts; all field values, titles, colors, and conditions remain unchanged.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

A rabbit hops through formatted lines,
Where imports stretch and code aligns,
No logic changed, just breathing room,
Clean indentation fills the room! 🐰✨

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'fetch partials in guildMemberUpdate.ts' accurately describes the main objective stated in the PR description: fetching full member data when partials exist in guildMemberUpdate.ts.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Tip

💬 Introducing Slack Agent: The best way for teams to turn conversations into code.

Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire org—no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-in—scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

👉 Get started


Review rate limit: 9/10 reviews remaining, refill in 6 minutes.

Comment @coderabbitai help to get the list of available commands and usage tips.

@breadddevv

Copy link
Copy Markdown
Member

THANK YOU

@vortexsinclair
vortexsinclair merged commit ff9f99a into teamboostify:main May 4, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants