Merge branch 'develop' into feature/258-fix-tests

This commit is contained in:
Ethan Lane 2024-05-01 18:23:06 +01:00
commit 74cdd04d27
17 changed files with 9001 additions and 4933 deletions

View file

@ -15,6 +15,8 @@ export default class Bunny extends Command {
public override async execute(interaction: CommandInteraction) {
if (!interaction.isChatInputCommand()) return;
await interaction.deferReply();
const subreddits = [
'rabbits',
'bunnieswithhats',
@ -37,9 +39,9 @@ export default class Bunny extends Command {
.setURL(`https://reddit.com${result.Result!.Permalink}`)
.setFooter({ text: `r/${selectedSubreddit} · ${result.Result!.Ups} upvotes`});
await interaction.reply({ embeds: [ embed ]});
await interaction.editReply({ embeds: [ embed ]});
} else {
await interaction.reply("There was an error running this command.");
await interaction.editReply("There was an error running this command.");
}
}
}

View file

@ -7,7 +7,7 @@ export default class Unmute extends Command {
constructor() {
super();
super.CommandBuilder = new SlashCommandBuilder()
this.CommandBuilder = new SlashCommandBuilder()
.setName("unmute")
.setDescription("(DEPRECATED) Unmute a member in the server with an optional reason")
.setDefaultMemberPermissions(PermissionsBitField.Flags.ModerateMembers)