Files
Moltbot/src/discord
Xinhua Gu c682634188 fix(discord): role-based allowlist never matches (Carbon Role objects stringify to mentions) (#16369)
* fix(discord): role-based allowlist never matches because Carbon Role objects stringify to mentions

Carbon's GuildMember.roles getter returns Role[] objects, not raw ID strings.
String(Role) produces '<@&123456>' which never matches the plain role IDs
in the guild allowlist config.

Use data.rawMember.roles (raw Discord API string array) instead of
data.member.roles (Carbon Role[] objects) for role ID extraction.

Fixes #16207

* Docs: add discord role allowlist changelog entry

---------

Co-authored-by: Shadow <hi@shadowing.dev>
2026-02-15 13:05:46 -06:00
..
2026-01-30 03:16:21 +01:00
2026-01-06 04:51:05 +00:00
2026-02-15 10:24:53 -06:00
2026-02-15 10:24:53 -06:00
2026-02-02 23:45:05 -08:00
2026-02-15 10:24:53 -06:00