From 72d0054d258e94b3b245216c50904d65fd03c92e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Sun, 5 Sep 2021 02:36:52 +0300 Subject: [PATCH] Made interaction nullable when replying in play function --- src/client/funcs/play.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/funcs/play.js b/src/client/funcs/play.js index 0d9551a..8b4c764 100644 --- a/src/client/funcs/play.js +++ b/src/client/funcs/play.js @@ -80,7 +80,7 @@ module.exports = async function play(interaction, guild, client, url, Discord) { message.play = client.messages.play.replace("%radio.station.name%", radio.station.name); - interaction.reply({ + interaction?.reply({ content: client.messageEmojis["play"] + message.play, ephemeral: true });