Make @davidjcralph happy

const
This commit is contained in:
Isaac
2021-05-18 18:12:07 +01:00
parent 37adac1dd0
commit 8a15f34342
31 changed files with 176 additions and 167 deletions

View File

@@ -18,7 +18,7 @@ module.exports = {
* @returns {PresenceData}
*/
selectPresence: () => {
let length = config.presence.presences.length;
const length = config.presence.presences.length;
if (length === 0) return {};
let num;
@@ -33,7 +33,7 @@ module.exports = {
num = current_presence;
}
let {
const {
activity: name,
status,
type,

View File

@@ -1,7 +1,7 @@
module.exports = {
int2hex: (int) => int.toString(16).toUpperCase(),
some: async (array, func) => {
for (let element of array) {
for (const element of array) {
if (await func(element)) return true;
}
return false;