feat: encode images on a separate thread

This commit is contained in:
TresAbhi committed 2023-06-05 17:46:22 +00:00
1 parent 804fa58d27
commit 58c68968e7
18 files changed
+42 -63

No files matched your search

-2
View File
@@ -46,7 +46,5 @@ export default {
),
],
});
console.log("Displaying bot's debug information");
},
} satisfies CommandRegistry;
-4
View File
@@ -171,9 +171,5 @@ export default {
? [positiveEmbed(title, body)]
: [negativeEmbed(title, body)],
});
console.log(
`Displaying ${server}/${id}'s eligibility information for ${clan}`,
);
},
} satisfies CommandRegistry;
-2
View File
@@ -39,7 +39,5 @@ export default {
),
],
});
console.log('Displaying help information');
},
} satisfies CommandRegistry;
-4
View File
@@ -83,10 +83,6 @@ export default {
),
],
});
console.log(
`Displaying inactive members in ${clanInfo[id].name} for ${threshold} days`,
);
},
autocomplete: clanAutocomplete,
-4
View File
@@ -93,10 +93,6 @@ export default {
),
],
});
console.log(
`Displaying ${accountInfo[id].nickname}'s owned tanks in tier ${tier}`,
);
},
autocomplete: usernameAutocomplete,
-2
View File
@@ -75,8 +75,6 @@ export default {
),
],
});
console.log(`Displaying player info for ${accounts[id].nickname}`);
},
autocomplete: usernameAutocomplete,
-2
View File
@@ -59,8 +59,6 @@ export default {
),
],
});
console.log(`Displaying player info for ${accountInfo.nickname}`);
},
autocomplete: usernameAutocomplete,
-2
View File
@@ -50,7 +50,5 @@ export default {
),
],
});
console.log(`Clan search results for "${clan}"`);
},
} satisfies CommandRegistry;
-2
View File
@@ -58,7 +58,5 @@ export default {
),
],
});
console.log(`Player search results for "${name}"`);
},
} satisfies CommandRegistry;
-2
View File
@@ -41,7 +41,5 @@ export default {
),
],
});
console.log(`Tank search results for "${tank}"`);
},
} satisfies CommandRegistry;
-1
View File
@@ -173,7 +173,6 @@ export default {
components: [actionRow],
});
console.log(`Showing stats for ${accountInfo[id].nickname}`);
},
autocomplete: usernameAutocomplete,
-2
View File
@@ -116,8 +116,6 @@ export default {
files: [image],
components: [actionRow],
});
console.log(`Showing stats for ${accountInfo[id].nickname}`);
},
autocomplete: (interaction) => {
-1
View File
@@ -194,7 +194,6 @@ export default {
components: [actionRow],
});
console.log(`Showing daily breakdown for ${accountInfo[id].nickname}`);
},
autocomplete: usernameAutocomplete,
-14
View File
@@ -48,10 +48,6 @@ export default {
],
});
console.warn(
`${interaction.user.username} failed to verify because of no nickname permission.`,
);
return;
}
@@ -83,10 +79,6 @@ export default {
],
});
console.warn(
`${interaction.user.username} failed to verify because of no manage roles permission.`,
);
return;
}
@@ -106,10 +98,6 @@ export default {
),
],
});
console.log(
`${interaction.user.username} verified as ${accountInfo[id].nickname}${clanTag}`,
);
} catch (error) {
await interaction.editReply({
embeds: [
@@ -121,8 +109,6 @@ export default {
),
],
});
console.warn('Failed to verify because of higher permissions.');
}
}
}