refactor: ♻️ Fix more code smells
I have fixed some more code smells
This commit is contained in:
parent
01024c7702
commit
555b97d2c5
8 changed files with 6 additions and 4 deletions
|
@ -142,5 +142,6 @@ export default {
|
|||
await interaction?.editReply({
|
||||
embeds: [interactionEmbed],
|
||||
});
|
||||
return;
|
||||
},
|
||||
};
|
||||
|
|
|
@ -190,5 +190,6 @@ export default {
|
|||
});
|
||||
});
|
||||
});
|
||||
return;
|
||||
},
|
||||
};
|
||||
|
|
|
@ -23,8 +23,7 @@ export default {
|
|||
});
|
||||
|
||||
if (!channelCounter) {
|
||||
logger.debug("No counters found in channel.");
|
||||
return false;
|
||||
return logger.debug("No counters found in channel.");
|
||||
}
|
||||
|
||||
if (
|
||||
|
|
|
@ -25,5 +25,4 @@ export const execute = async (oldMessage: Message, newMessage: Message) => {
|
|||
if (author?.bot) return logger?.silly(`Message update event fired by bot`);
|
||||
|
||||
await counter(newMessage);
|
||||
return;
|
||||
};
|
||||
|
|
|
@ -38,5 +38,4 @@ export default async (message: Message) => {
|
|||
.catch((error) => {
|
||||
logger.error(error);
|
||||
});
|
||||
return;
|
||||
};
|
||||
|
|
|
@ -33,4 +33,5 @@ export const register = async (client: Client) => {
|
|||
logger.info("🔧 All commands loaded");
|
||||
}
|
||||
}
|
||||
return;
|
||||
};
|
||||
|
|
|
@ -49,4 +49,5 @@ export const register = async (client: Client) => {
|
|||
logger.info("📡 All events loaded");
|
||||
}
|
||||
}
|
||||
return;
|
||||
};
|
||||
|
|
|
@ -21,4 +21,5 @@ export const start = async (client: Client) => {
|
|||
});
|
||||
})
|
||||
);
|
||||
return;
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue