Skip to content

$interactionPing

$interactionPing will return the latency of an interaction.

Usage

$interactionPing

Please note that you require events: ["onInteractionCreate"] to be in your main file

Example(s)

This will return the latency of an interaction:

1
client.command({
2
name: "interactionPing",
3
code: `
4
$addButton[1;Test;primary;testButton;false]
5
Click me!
6
`
7
});
8
9
module.exports = [
10
{
11
name: "testButton",
12
type: "interaction",
13
prototype: "button",
14
code: `
15
$interactionUpdate[This took me: $interactionPing MS!]
16
`
17
}
18
];