client.ping -> client.gateway.ping
This commit is contained in:
parent
b324263a7b
commit
ea221f8962
4 changed files with 7 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue