Skip to content

feat: Add autorole on boot for members without roles#48

Merged
alepouna merged 1 commit into
masterfrom
features/autorole-on-boot
Feb 28, 2026
Merged

feat: Add autorole on boot for members without roles#48
alepouna merged 1 commit into
masterfrom
features/autorole-on-boot

Conversation

@alepouna

Copy link
Copy Markdown
Member

Description

Added a new utility that automatically assigns a default role to members who don't have any roles when the bot starts up.

Essentially:

  • Runs on the ready event when the bot boots/starts
  • Fetches all members in the guild
  • Checks each member to see if they only have the @everyone role (no other roles)
  • Assigns role ID 808792283515191326 to qualifying members

Note: The role ID is hardcoded as mentioned - there's another PR (#36) that will make these constants, so this is intentional for now.

Discord Username

alepouna

- Create new utility that runs on bot ready event
- Assigns role ID 808792283515191326 to all members with no roles (only @everyone)
- Skips bot accounts
- Follows existing error handling patterns with catch(console.error)
@alepouna alepouna self-assigned this Jan 29, 2026
@alepouna alepouna added the enhancement New feature or request label Jan 29, 2026
@alepouna alepouna requested a review from Dynamic6448 January 29, 2026 22:43
@alepouna alepouna merged commit 25ca804 into master Feb 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants