Module '"@sapphire/framework"' has no exported member 'CommandDeniedPayload'.main in your package.json?dist/index.js
CommandDeniedPayload@sapphire/framework3.0.0-next.1f76366.03.3.5-next.425fd0a.0const client = new SapphireClient({
caseInsensitiveCommands: true,
caseInsensitivePrefixes: true,
defaultCooldown: {
delay: 2000,
scope: BucketScope.User,
filteredUsers: envParseArray('OWNERS'),
},
defaultPrefix: ['omega'],
enableLoaderTraceLoggings: true,
intents: [
'GUILDS',
'GUILD_MESSAGES',
],
loadMessageCommandListeners: true,
});[8:07:31 PM] File change detected. Starting incremental compilation...
[8:07:32 PM] Found 0 errors. Watching for file changes.
2022-05-17 20:07:34 - INFO - Logging in.
2022-05-17 20:07:35 - INFO - ApplicationCommandRegistries: Initializing...
2022-05-17 20:07:35 - INFO - Logged in.
2022-05-17 20:07:35 - INFO - ApplicationCommandRegistries: Took 368ms to initialize.import type { Message } from 'discord.js';
import { ApplyOptions } from '@sapphire/decorators';
import { Command, CommandOptions } from '@sapphire/framework';
import { send } from '@sapphire/plugin-editable-commands';
@ApplyOptions<CommandOptions>({
name: 'pong',
description: 'ping pong'
})
export class UserCommand extends Command {
public async messageRun(message: Message) {
const msg = await send(message, 'Ping?');
const content = `Pong! Bot Latency ${Math.round(this.container.client.ws.ping)}ms. API Latency ${
(msg.editedTimestamp || msg.createdTimestamp) - (message.editedTimestamp || message.createdTimestamp)
}ms.`;
return await send(message, content);
}
}