Yoozi
Yoozi
SIASapphire - Imagine a framework
Created by Yoozi on 6/25/2023 in #sapphire-support
confused
sure
12 replies
SIASapphire - Imagine a framework
Created by Yoozi on 6/25/2023 in #sapphire-support
confused
import { Command } from '@sapphire/framework';
import type { Message } from 'discord.js';

export class PingCommand extends Command {
public constructor(context: Command.Context, options: Command.Options) {
}

public async messageRun(message: Message) {
const msg = await message.channel.send('Ping?');

const content = `Pong from JavaScript! Bot Latency ${Math.round(this.container.client.ws.ping)}ms. API Latency ${
msg.createdTimestamp - message.createdTimestamp
}ms.`;

return msg.edit(content);
}
}
import { Command } from '@sapphire/framework';
import type { Message } from 'discord.js';

export class PingCommand extends Command {
public constructor(context: Command.Context, options: Command.Options) {
}

public async messageRun(message: Message) {
const msg = await message.channel.send('Ping?');

const content = `Pong from JavaScript! Bot Latency ${Math.round(this.container.client.ws.ping)}ms. API Latency ${
msg.createdTimestamp - message.createdTimestamp
}ms.`;

return msg.edit(content);
}
}
12 replies
SIASapphire - Imagine a framework
Created by Yoozi on 6/25/2023 in #sapphire-support
confused
lemme turn on my laptop gimme a sec
12 replies
SIASapphire - Imagine a framework
Created by Yoozi on 6/25/2023 in #sapphire-support
confused
it's the ping cmd from guide kekw
12 replies
SIASapphire - Imagine a framework
Created by Yoozi on 6/25/2023 in #sapphire-support
confused
ik I have been looking for it since forever I couldn't find it
12 replies
SIASapphire - Imagine a framework
Created by Yoozi on 6/19/2023 in #sapphire-support
it's bugging for me
awkward
105 replies
SIASapphire - Imagine a framework
Created by Yoozi on 6/19/2023 in #sapphire-support
it's bugging for me
should I put it in index or the cmd file
105 replies
SIASapphire - Imagine a framework
Created by Yoozi on 6/19/2023 in #sapphire-support
it's bugging for me
like in the options: options yk field?
105 replies
SIASapphire - Imagine a framework
Created by Yoozi on 6/19/2023 in #sapphire-support
it's bugging for me
no I meant like where to put them yk
105 replies
SIASapphire - Imagine a framework
Created by Yoozi on 6/19/2023 in #sapphire-support
it's bugging for me
can you give me an example on how Sapphire options works
105 replies
SIASapphire - Imagine a framework
Created by Yoozi on 6/19/2023 in #sapphire-support
it's bugging for me
i didn't load the listeners
105 replies
SIASapphire - Imagine a framework
Created by Yoozi on 6/19/2023 in #sapphire-support
it's bugging for me
oh
105 replies
SIASapphire - Imagine a framework
Created by Yoozi on 6/19/2023 in #sapphire-support
it's bugging for me
105 replies
SIASapphire - Imagine a framework
Created by Yoozi on 6/19/2023 in #sapphire-support
it's bugging for me
so I tried the message one
105 replies
SIASapphire - Imagine a framework
Created by Yoozi on 6/19/2023 in #sapphire-support
it's bugging for me
it didn't load the slash
105 replies
SIASapphire - Imagine a framework
Created by Yoozi on 6/19/2023 in #sapphire-support
it's bugging for me
yep
105 replies
SIASapphire - Imagine a framework
Created by Yoozi on 6/19/2023 in #sapphire-support
it's bugging for me
kekw
105 replies
SIASapphire - Imagine a framework
Created by Yoozi on 6/19/2023 in #sapphire-support
it's bugging for me
my brain is farting
105 replies
SIASapphire - Imagine a framework
Created by Yoozi on 6/19/2023 in #sapphire-support
it's bugging for me
and it doesn't work I'm trying over here
105 replies
SIASapphire - Imagine a framework
Created by Yoozi on 6/19/2023 in #sapphire-support
it's bugging for me
I have the ping cmd from thr guide
105 replies