Para hacer que mi bot envíe un mensaje de DM al hacer clic en el botón, aquí está mi código:
if(button.id === "onBtn"){ button.clicker.send('ok') } });Puedes usar esto:
client.on('clickButton', async (button) => { if(button.id === "btn1"){ await button.reply.defer() await button.message.channel.send("button green") } })Pero realmente debería proporcionar un código completo para comprender mejor su problema.