diff --git a/src/client/funcs/play.js b/src/client/funcs/play.js index 5e3294d..b6763ab 100644 --- a/src/client/funcs/play.js +++ b/src/client/funcs/play.js @@ -57,13 +57,13 @@ module.exports = async function play(client, interaction, guild, station) { ); if(!radio.message){ - radio.message = await radio.textChannel.send({ embeds: [embed], components: [buttons] }); + radio.message = await radio.textChannel?.send({ embeds: [embed], components: [buttons] }); } else { if(radio.textChannel.id == radio.message.channel.id){ radio.message.edit({ embeds: [embed], components: [buttons] }); } else { radio.message?.delete(); - radio.message = await radio.textChannel.send({ embeds: [embed], components: [buttons] }); + radio.message = await radio.textChannel?.send({ embeds: [embed], components: [buttons] }); } }