Duplicate identifier 'Command'

I'm trying to create a basic slash command, but when I import the Command class from @sapphire/framework, it gives the error:
Duplicate identifier 'Command'
Duplicate identifier 'Command'
What can I do?
Solution:
f1 => restart ts server
Jump to solution
4 Replies
24
242y ago
what is your code?
ホタル
ホタル2y ago
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) {

}
}
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
24
242y ago
f1 => restart ts server
ホタル
ホタル2y ago
thanks
Want results from more Discord servers?
Add your server