Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
adding role problem - discord.js - Imagine ❄
d-I❄
discord.js - Imagine ❄
•
3y ago
•
6 replies
Speed
adding role problem
my code
:
interaction
.guild
.members
.cache
.get
(match
[1
]
.toString
(
)
)
.roles
.add
(role
)
(with match
[1
] being a user ID
)
my error
:
TypeError
: Cannot read properties of undefined
(reading
'roles
'
)
discord.js - Imagine ❄
Join
Support server for discord.js, a Node.js module to interact with Discord's apps API.
57,915
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
reaction role not adding role (again)
d-I❄
discord.js - Imagine ❄ / djs-questions
3y ago
Role Creation Problem
d-I❄
discord.js - Imagine ❄ / djs-questions
13mo ago
📃Unremoveable Role Problem📃
d-I❄
discord.js - Imagine ❄ / djs-questions
2y ago