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,