diff --git a/SlashCommands/fun/8ball.js b/SlashCommands/fun/8ball.js index 0403690..d9398aa 100644 --- a/SlashCommands/fun/8ball.js +++ b/SlashCommands/fun/8ball.js @@ -36,6 +36,6 @@ module.exports = { .setTimestamp() .setTitle("8ball") .addField(`${questionToSend}`,`${Responses[Math.floor(Math.random() * Responses.length)]}`) - interaction.followUp({ embeds: [embed]}); + interaction.reply({ embeds: [embed]}); }, }; \ No newline at end of file diff --git a/SlashCommands/fun/gorb.js b/SlashCommands/fun/gorb.js index 7792d78..9070158 100644 --- a/SlashCommands/fun/gorb.js +++ b/SlashCommands/fun/gorb.js @@ -27,27 +27,27 @@ module.exports = { const string = interaction.options.getString('type'); if(string == null){ - interaction.followUp({ files: ['./images/gorb.jpg'] }) + await interaction.reply({ files: ['./images/gorb.jpg'] }) } - if(string === 'cs'){ - interaction.followUp({ files: ['./images/gorbcs.jpg'] }) - } - - if(string === 'party'){ - interaction.followUp({ files: ['./images/gorbcelebration.png'] }) - } - - if(string === 'christmas'){ - interaction.followUp({ files: ['./images/gorbchristmas.png'] }) + if(string == 'cs'){ + await interaction.reply({ files: ['./images/gorbcs.jpg'] }) } - if(string === 'storm'){ - interaction.followUp({ files: ['./images/gorbstorm.png'] }) + if(string == 'party'){ + await interaction.reply({ files: ['./images/gorbcelebration.png'] }) + } + + if(string == 'christmas'){ + await interaction.reply({ files: ['./images/gorbchristmas.png'] }) + } + + if(string == 'storm'){ + await interaction.reply({ files: ['./images/gorbstorm.png'] }) } if(string == 'large'){ - interaction.followUp({ files: ['./images/gorblarge.png'] }) + await interaction.reply({ files: ['./images/gorblarge.png'] }) } diff --git a/SlashCommands/fun/torch.js b/SlashCommands/fun/torch.js index 995bb3a..2a87b64 100644 --- a/SlashCommands/fun/torch.js +++ b/SlashCommands/fun/torch.js @@ -11,6 +11,6 @@ module.exports = { * @param {String[]} args */ run: async (client, interaction, args) => { - interaction.followUp({ files: ['https://c.tenor.com/N8A8lQ3g0YIAAAAd/chaseatlanticgifs-sarahmcfadyen.gif'] }); + interaction.reply({ files: ['https://c.tenor.com/N8A8lQ3g0YIAAAAd/chaseatlanticgifs-sarahmcfadyen.gif'] }); }, }; \ No newline at end of file diff --git a/SlashCommands/general/buy.js b/SlashCommands/general/buy.js index 17d5065..8074519 100644 --- a/SlashCommands/general/buy.js +++ b/SlashCommands/general/buy.js @@ -16,7 +16,7 @@ module.exports = { .setColor('GREEN') .setFooter(`Called By: ${interaction.user.tag}`) .addField('You can purchase from below!','https://hulluniunion.com/shop?aid=304') - interaction.followUp({ embeds: [embed] }); + interaction.reply({ embeds: [embed] }); }, }; diff --git a/SlashCommands/general/freeside.js b/SlashCommands/general/freeside.js index 568d734..997d6f3 100644 --- a/SlashCommands/general/freeside.js +++ b/SlashCommands/general/freeside.js @@ -17,6 +17,6 @@ module.exports = { .setFooter(`Called By: ${interaction.user.tag}`) .setDescription('Freeside is the student run and maintained linux cluster within the University Of Hull Computer Science Department providing Linux administration experience, mentoring and technical advice alongside other peer-led support. It is completely free to all students to join, irrespective of degree pathway.') .addField('You can join them from below!','https://discord.com/invite/qAZ8dAp') - interaction.followUp({ embeds: [embed] }); + interaction.reply({ embeds: [embed] }); }, }; \ No newline at end of file diff --git a/SlashCommands/general/links.js b/SlashCommands/general/links.js index 8ca8948..e467c7f 100644 --- a/SlashCommands/general/links.js +++ b/SlashCommands/general/links.js @@ -16,6 +16,6 @@ module.exports = { .setColor('GREEN') .setFooter(`Called By: ${interaction.user.tag}`) .addField('Find us here:','https://hullcss.org/links') - interaction.followUp({ embeds: [embed]}); + interaction.reply({ embeds: [embed]}); }, }; \ No newline at end of file diff --git a/SlashCommands/general/ping.js b/SlashCommands/general/ping.js index ca0819c..8ca5937 100644 --- a/SlashCommands/general/ping.js +++ b/SlashCommands/general/ping.js @@ -23,6 +23,6 @@ module.exports = { .setTitle("Pong!") .setDescription(`${client.ws.ping} ping to host`) .addField('Uptime', ` ${days}days ${hours}hrs ${minutes}min ${seconds}sec`, true) - interaction.followUp({ embeds: [embed]}); + interaction.reply({ embeds: [embed]}); }, }; \ No newline at end of file diff --git a/SlashCommands/general/robsoc.js b/SlashCommands/general/robsoc.js index f4fecda..d3dd3c5 100644 --- a/SlashCommands/general/robsoc.js +++ b/SlashCommands/general/robsoc.js @@ -17,6 +17,6 @@ module.exports = { .setFooter(`Called By: ${interaction.user.tag}`) .setDescription('Robotics Society are a society where you can gain skills in building an actual robot, or get help with your assignments or exams, but they also run social nights where they go out to do stuff.') .addField('You can join them from below!','https://discord.gg/cMP5CavnK4') - interaction.followUp({ embeds: [embed]}); + interaction.reply({ embeds: [embed]}); }, }; \ No newline at end of file diff --git a/events/interactionCreate.js b/events/interactionCreate.js index 39a2c3d..13b6fdf 100644 --- a/events/interactionCreate.js +++ b/events/interactionCreate.js @@ -4,8 +4,6 @@ const discord = require("discord.js") client.on("interactionCreate", async (interaction) => { // Slash Command Handling if (interaction.isCommand()) { - await interaction.deferReply({ ephemeral: false }).catch(() => {}); - const cmd = client.slashCommands.get(interaction.commandName); if (!cmd) return interaction.followUp({ content: "An error has occured " });