Wording
This commit is contained in:
parent
44be8355e3
commit
4b6a413f85
|
@ -52,7 +52,7 @@ export const data = new SlashCommandBuilder()
|
|||
|
||||
export async function execute(interaction: ChatInputCommandInteraction) {
|
||||
// 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 {
|
||||
if (dt.isBanned(interaction.guild?.id!, interaction.user.id)) {
|
||||
return interaction.reply({
|
||||
|
|
|
@ -48,11 +48,7 @@ export async function execute(interaction: ChatInputCommandInteraction) {
|
|||
});
|
||||
}
|
||||
|
||||
|
||||
const result = dt.addBan(
|
||||
guildId,
|
||||
confessionId
|
||||
);
|
||||
const result = dt.addBan(guildId, confessionId);
|
||||
|
||||
try {
|
||||
return result
|
||||
|
|
Loading…
Reference in a new issue