mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-11-10 02:20:18 +00:00
Edited embed message and delete components when stopping radio
This commit is contained in:
parent
bdc76b73a7
commit
7a93cd001f
@ -17,13 +17,13 @@ module.exports = {
|
|||||||
.setTitle(client.user.username)
|
.setTitle(client.user.username)
|
||||||
.setThumbnail("https://cdn.discordapp.com/emojis/" + client.messageEmojis["stop"].replace(/[^0-9]+/g, ''))
|
.setThumbnail("https://cdn.discordapp.com/emojis/" + client.messageEmojis["stop"].replace(/[^0-9]+/g, ''))
|
||||||
.setColor(client.config.embedColor)
|
.setColor(client.config.embedColor)
|
||||||
.addField(client.messages.nowplayingTitle, "Nothing", true)
|
.addField(client.messages.nowplayingTitle, "-", true)
|
||||||
.setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, ''));
|
.setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, ''));
|
||||||
|
|
||||||
if(!radio.message){
|
if(!radio.message){
|
||||||
radio.message = await radio.textChannel.send({ embeds: [embed] });
|
radio.message = await radio.textChannel.send({ embeds: [embed], components: [] });
|
||||||
} else {
|
} else {
|
||||||
radio.message.edit({ embeds: [embed] });
|
radio.message.edit({ embeds: [embed], components: [] });
|
||||||
}
|
}
|
||||||
|
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user