msg
holds the parameter member
already, as mentioned above by @Y. Gherbi.
To access member
, simply do message.member
e.g.
//get members that have admin role
const memberRoles = message.member.roles.has(role => role.name === 'ADMINISTRATOR')
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…