This commit is contained in:
powermaker450 2024-10-13 19:12:11 -04:00
parent 44be8355e3
commit 4b6a413f85
2 changed files with 2 additions and 6 deletions

View file

@ -52,7 +52,7 @@ export const data = new SlashCommandBuilder()
export async function execute(interaction: ChatInputCommandInteraction) { export async function execute(interaction: ChatInputCommandInteraction) {
// TODO: This all works as intended, but I'd like for it so be a reusable function // TODO: This all works as intended, but I'd like for it so be a reusable function
// instead because all of this is reused in src/main.ts:56 // instead because all of this is used in src/main.ts
try { try {
if (dt.isBanned(interaction.guild?.id!, interaction.user.id)) { if (dt.isBanned(interaction.guild?.id!, interaction.user.id)) {
return interaction.reply({ return interaction.reply({

View file

@ -48,11 +48,7 @@ export async function execute(interaction: ChatInputCommandInteraction) {
}); });
} }
const result = dt.addBan(guildId, confessionId);
const result = dt.addBan(
guildId,
confessionId
);
try { try {
return result return result