small changes

This commit is contained in:
Marius Begby committed 2023-09-07 11:58:57 +02:00
1 parent 1220ef171f
commit 6fb370147e
3 files changed
+14 -15

No files matched your search

-1
View File
@@ -31,7 +31,6 @@ class LyricsAutocomplete extends BaseAutocompleteInteraction {
const genius = lyricsExtractor();
const lyricsResult: LyricsData = (await genius.search(query).catch(() => null)) as LyricsData;
// TODO: Update TS Type for lyricsResult and create response object type
let response: ApplicationCommandOptionChoiceData<string>[] = [];
if (!lyricsResult) {
+1 -2
View File
@@ -49,8 +49,7 @@ class ShardsCommand extends BaseSlashCommandInteraction {
(process.memoryUsage().heapUsed / 1024 / 1024).toFixed(2)
);
// TODO: Create shardInfo type
const shardInfo = {
const shardInfo: ShardInfo = {
shardId: shardClient.shard!.ids[0],
memUsage: nodeProcessMemUsageInMb,
guildCount: shardClient.guilds.cache.size,