как правильно записать Player - declare module '@sapphire/framework' { //…
Jump to turn (6)
- 1как правильно записать Player - declare module '@sapphire/framework' { // eslint
- 2вот полный мой код import { ActivityType, GatewayIntentBits, type Message, Parti
- 3declare module '@sapphire/framework' { // eslint-disable-next-line no-shadow int
- 4All declarations of 'logger' must have identical modifiers.ts(2687) Subsequent p
- 5Type '() => Promise ' is not assignable to type 'typeof import("c:/Projects/berl
- 6Type '() => Promise ' is not assignable to type 'typeof import("c:/Projects/berl
- User
как правильно записать Player - declare module '@sapphire/framework' { // eslint-disable-next-line no-shadow interface SapphireClient { readonly player: Player; readonly config: typeof Config; readonly utils: typeof Utils; // readonly logger: Logger; readonly soundboard: Soundboard; } } или declare module 'discord.js' { interface Client { readonly player: Player; // readonly db: Database; } }
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.