Skip to content

Added a new embed when someone starts boosting#17

Merged
breadddevv merged 2 commits into
mainfrom
changed/dms-boost
Jul 17, 2026
Merged

Added a new embed when someone starts boosting#17
breadddevv merged 2 commits into
mainfrom
changed/dms-boost

Conversation

@breadddevv

@breadddevv breadddevv commented Jul 17, 2026

Copy link
Copy Markdown
Member

🚀 Summary

  • Added richer boost-start DMs with a formatted embed-style component and guild thumbnail.
  • Standardized Discord client and Chalk color typings across events and utilities.

✨ Features

  • Introduced shared DiscordClient and ChalkColors types.

♻️ Improvements

  • Updated event handlers to use the shared client type.
  • Added safer guild channel message sending with permission and error handling.

@coderabbitai

coderabbitai Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Warning

Review limit reached

@breadddevv, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 55 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: e3e7b05f-f81f-4e53-ab0b-030def22e2f1

📥 Commits

Reviewing files that changed from the base of the PR and between a168b76 and c32bcb3.

📒 Files selected for processing (1)
  • src/events/guildMemberUpdate.ts
📝 Walkthrough

Walkthrough

Adds shared ChalkColors and DiscordClient types, applies DiscordClient across Discord event handlers and the exported client, and updates boost-start DMs with components-based formatting plus safe guild message helpers.

Changes

Discord client typing and boost notifications

Layer / File(s) Summary
Shared type definitions
src/base/types/chalk.ts, src/base/types/discord.ts, src/libs/logger.ts
Defines shared Chalk color and Discord client types, and updates the logger’s type import.
Client type propagation
src/index.ts, src/events/*.ts
Replaces inline or direct Discord client types with DiscordClient across the exported client and event handlers.
Boost notification updates
src/events/guildMemberUpdate.ts
Adds guild settings lookup and permission-aware sending, and changes boost DMs to components-based payloads with thumbnails.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Possibly related PRs

Poem

A bunny hops through types so neat,
With Discord clients now complete.
Boost thanks bloom in boxes bright,
Thumbnails sparkle soft and light.
Safe sends guide each message flight!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title matches the boost-start notification change, though it is slightly imprecise because the new message is a components-based payload rather than an embed.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch changed/dms-boost

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.

❤️ Share

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

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@src/events/guildMemberUpdate.ts`:
- Around line 168-188: Update the guild-member boost notification flow to reuse
the existing top-level guild variable instead of refetching and shadowing it. In
the ContainerBuilder construction, only add the thumbnail accessory when
guild.iconURL() returns a valid URL; do not pass an empty string to setURL,
while preserving the existing message and DM behavior.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: d56780fd-51c5-4f11-a09e-8fbc3fe0cc81

📥 Commits

Reviewing files that changed from the base of the PR and between c1ed1d6 and a168b76.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (12)
  • src/base/types/chalk.ts
  • src/base/types/discord.ts
  • src/events/activityUpdate.ts
  • src/events/clientReady.ts
  • src/events/guildMemberUpdate.ts
  • src/events/helpautocomplete.ts
  • src/events/interactionCreate.ts
  • src/events/onServerAdd.ts
  • src/events/roleCleanup.ts
  • src/events/setupResponse.ts
  • src/index.ts
  • src/libs/logger.ts

Comment thread src/events/guildMemberUpdate.ts Outdated
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
@breadddevv
breadddevv merged commit 8b2b379 into main Jul 17, 2026
2 of 4 checks passed
@breadddevv
breadddevv deleted the changed/dms-boost branch July 17, 2026 21:16
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.

1 participant