client.ping -> client.gateway.ping

This commit is contained in:
DjDeveloperr 2021-04-17 13:47:46 +05:30
parent b324263a7b
commit ea221f8962
4 changed files with 7 additions and 10 deletions

View file

@ -60,7 +60,7 @@ client.on('messageCreate', async (msg: Message) => {
console.log(`${msg.author.tag}: ${msg.content}`)
}
if (msg.content === '!ping') {
msg.reply(`Pong! Ping: ${client.ping}ms`)
msg.reply(`Pong! Ping: ${client.gateway.ping}ms`)
} else if (msg.content === '!members') {
const col = await msg.guild?.members.array()
const data = col