S-IAF
Join ServerSapphire - Imagine a framework
sapphire-support
Duplicate identifier 'Command'
JYAGPJust Your Average Genshin Player1/11/2023
I'm trying to create a basic slash command, but when I import the
What can I do?
Command
class from @sapphire/framework, it gives the error: Duplicate identifier 'Command'
What can I do?

AOAnswer Overflow1/11/2023
2241/11/2023
what is your code?
JYAGPJust Your Average Genshin Player1/11/2023
I haven't even filled much in yet, but this is the code
import { Command } from "@sapphire/framework";
export class Ping extends Command {
public constructor(context: Command.Context, options: Command.Options) {
super(context, {
...options,
description: 'Latency'
})
}
public override registerApplicationCommands(registry: Command.Registry) {
}
}
Solution
2241/11/2023
f1 => restart ts server
JYAGPJust Your Average Genshin Player1/11/2023
thanks
AOAnswer Overflow1/11/2023