Speed
DIAdiscord.js - Imagine an app
•Created by Speed on 7/5/2023 in #djs-questions
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')
7 replies