I'd like my bot to send a message and then edit it once per minute with the following value:
client.users.cache.size
I tried the following code, but unfortunately, it did not work.
const timejkdfg = new MessageEmbed().setTitle("testing").addField(":", client.users.cache.size);
message.channel.send(timejkdfg).then((msggg) => {
const timejk1dfg = new MessageEmbed().setTitle("testing").addField(":", client.users.cache.size);
setInterval(function () {
msggg.edit(`${timejk1dfg}`);
}, 60000);
});
Instead of showing the number of users cached, it shows "[object Object]".