Fix Embed
This commit is contained in:
parent
9f24d9c2be
commit
1bb4faa4eb
@ -1,11 +1,11 @@
|
|||||||
const { Embed } = require("discord.js");
|
const { EmbedBuilder } = require('discord.js');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
name: "ping",
|
name: "ping",
|
||||||
description: "Returns websocket latency",
|
description: "Returns websocket latency",
|
||||||
|
|
||||||
run: async (client, interaction) => {
|
run: async (client, interaction) => {
|
||||||
const embed = new Embed()
|
const embed = new EmbedBuilder()
|
||||||
.setColor("#FF0000")
|
.setColor("#FF0000")
|
||||||
.setTitle("🏓 Pong!")
|
.setTitle("🏓 Pong!")
|
||||||
.setDescription(`Latency : ${client.ws.ping}ms`)
|
.setDescription(`Latency : ${client.ws.ping}ms`)
|
||||||
|
Loading…
Reference in New Issue
Block a user