Skip to content

Add support for Lead Moderator badge#564

Draft
Copilot wants to merge 2 commits intomasterfrom
copilot/fix-lead-mod-role-issue
Draft

Add support for Lead Moderator badge#564
Copilot wants to merge 2 commits intomasterfrom
copilot/fix-lead-mod-role-issue

Conversation

Copy link
Contributor

Copilot AI commented Jan 20, 2026

Twitch's Lead Moderator role uses a distinct moderator_lead badge instead of the standard moderator badge, causing Lead Moderators to be incorrectly identified as non-moderators.

Changes

Updated badge checking in extractUserInfo() to recognize both badge types:

// Before
isMod: badges.some((badge) => badge.set_id === 'moderator'),

// After  
isMod: badges.some((badge) => badge.set_id === 'moderator' || badge.set_id === 'moderator_lead'),

This ensures all moderator privileges and permissions work correctly for Lead Moderators throughout the codebase.

Original prompt

This section details on the original issue you should resolve

<issue_title>lead mod role</issue_title>
<issue_description>Lead Moderator Role has been added to Twitch. For some reason, dotabod does not work with this role. Can this be fixed?</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: Geczy <1036968+Geczy@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix dotabod functionality for lead moderator role Add support for Lead Moderator badge Jan 20, 2026
Copilot AI requested a review from Geczy January 20, 2026 15:05
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.

lead mod role

2 participants

Comments