Role in SlashCommand showing @Undefined
I'm making a slash command where role is a required parameter but when I try using it, it is auto filled with @ Undefined.

data: new SlashCommandBuilder()
.setName('addtolineup')
.setDescription('Adds a Reserve Driver to Race Lineup')
.addUserOption(option =>
option.setName('driver')
.setDescription('The Driver who is getting added to a team')
.setRequired(true))
.addRoleOption(option =>
option.setName('constructor')
.setDescription('Constructor Role')
.setRequired(true)),