Answer the question
In order to leave comments, you need to log in
The problem is in presence.status, what's wrong?
Status is not working for me
here is the code:
let embed = new Discord.MessageEmbed()
.setTitle(message.author.tag) // в тайтле имя автора
let status = ''
switch (message.author.presence.status) {
case 'online':
status = 'онлайн :green_circle:'; break;
case 'idle':
status = 'нет на месте :orange_circle:'; break;
case 'offline':
status = 'нет в сети :black_circle:'; break;
case 'dnd':
status = 'не беспокоить :red_circle:'; break;
}
embed.setDescription(`**Ваш дискорд айди: **${message.author.id}
**Ваш статус: **${status}
**Дата создания аккаунта: **${message.author.createdAt.toLocaleDateString()}
**Дата входа на сервер: **${message.member.joinedAt.toLocaleDateString()}
`)
.setColor('BLACK')
.setThumbnail(message.author.avatarURL())
message.channel.send(embed) /
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question