From 4c277d7685a0e66816f62fc52e460d03f93bc78a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dorian=20Oszcz=C4=99da?= Date: Sat, 24 Aug 2024 20:12:48 +0100 Subject: [PATCH] fix: Issues after bump. --- source/library/adapters/dictionaries/adapters/wordnik.ts | 2 +- source/library/commands/handlers/information/guild.ts | 2 +- source/library/services/music.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/library/adapters/dictionaries/adapters/wordnik.ts b/source/library/adapters/dictionaries/adapters/wordnik.ts index 9f9a3b983..bc47c9c79 100644 --- a/source/library/adapters/dictionaries/adapters/wordnik.ts +++ b/source/library/adapters/dictionaries/adapters/wordnik.ts @@ -1,6 +1,6 @@ import type { LearningLanguage } from "logos:constants/languages/learning"; import { DictionaryAdapter } from "logos/adapters/dictionaries/adapter"; -import type { RelationField, RhymeField } from "logos/adapters/dictionaries/dictionary-entry"; +import type { DictionaryEntry, RelationField, RhymeField } from "logos/adapters/dictionaries/dictionary-entry"; import type { Client } from "logos/client"; interface WordnikResult { diff --git a/source/library/commands/handlers/information/guild.ts b/source/library/commands/handlers/information/guild.ts index 0aad0b04d..79a890dd4 100644 --- a/source/library/commands/handlers/information/guild.ts +++ b/source/library/commands/handlers/information/guild.ts @@ -145,7 +145,7 @@ function getProficiencyRoleDistribution(client: Client, guild: Logos.Guild): Pro const roleId = member.roles.filter((roleId) => proficiencyRoleIds.includes(roleId)).at(0); if (roleId !== undefined) { - roleFrequencies[`${roleId}`] += 1; + roleFrequencies[`${roleId}`]! += 1; } else { withoutProficiencyRole += 1; } diff --git a/source/library/services/music.ts b/source/library/services/music.ts index 7efe67aca..94aa18b03 100644 --- a/source/library/services/music.ts +++ b/source/library/services/music.ts @@ -627,7 +627,7 @@ class MusicSession extends EventEmitter { this.queueable.title = track.info.title; } - await this.player.playTrack({ track: track.encoded }); + await this.player.playTrack({ track: { encoded: track.encoded } }); const strings = constants.contexts.nowPlaying({ localise: this.client.localise,