updated
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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
|
||||
})
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user