This commit is contained in:
DeSqBlocki
2025-02-09 00:34:42 +01:00
parent e74aef15b9
commit 156098b011
5 changed files with 69 additions and 8 deletions
+2 -2
View File
@@ -42,12 +42,12 @@ async function getChannel(interaction) {
})
return interaction.editReply({
content: `#${res.channel} previously set for Event: ${event}`,
content: `<#${res.channel}> was previously set for Event: ${event}`,
flags: MessageFlags.Ephemeral
})
} catch (error) {
return interaction.editReply({
content: `**[ERROR]:** There was an error updating the database: ${error}`,
content: `**[ERROR]:** ${event} is currently not set to any channel`,
flags: MessageFlags.Ephemeral
}).then(setTimeout(() => {
interaction.deleteReply()
+2 -3
View File
@@ -1,4 +1,4 @@
const { SlashCommandBuilder, Events, MessageFlags } = require('discord.js')
const { SlashCommandBuilder, MessageFlags } = require('discord.js')
module.exports = {
data: new SlashCommandBuilder()
@@ -13,11 +13,10 @@ module.exports = {
}
const streamer = 'x__hel__x'
interaction.client.emit('TwitchLive', streamer)
interaction.client.emit('Twitch/Live', streamer)
await interaction.reply({
content: "Done!",
flags: MessageFlags.Ephemeral
})
}
}