mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-03 06:28:53 +00:00
small changes
This commit is contained in:
1 parent
1220ef171f
commit
6fb370147e
3 files changed
+14
-15
No files matched your search
@@ -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) {
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user