RangeError: URL and custom id are mutually exclusive

const row = new ActionRowBuilder()
.addComponents(
new ButtonBuilder()
.setCustomId('primary')
.setLabel('인증하기')
.setURL(`http://${domain}:3000/auth/${interaction.user.id}`)
.setStyle(ButtonStyle.Primary)
,
const row = new ActionRowBuilder()
.addComponents(
new ButtonBuilder()
.setCustomId('primary')
.setLabel('인증하기')
.setURL(`http://${domain}:3000/auth/${interaction.user.id}`)
.setStyle(ButtonStyle.Primary)
,
Can I Set Link on the button style is Primary? it's return the error as this thread title;
5 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
duck
duck2y ago
no links are only available on Link style buttons
계정 버림
계정 버림OP2y ago
Oh, Okay So I changed that value to Link but still same error
duck
duck2y ago
Link style buttons do not have custom ids
계정 버림
계정 버림OP2y ago
Ohh I got it fixed it!! thank uu
Want results from more Discord servers?
Add your server