I'm working on my bot, and i can't get it to respond, i am offline so im testing on me, but here is my js
if (member[message.guild.id].id.user.presence.status === "offline") {
client.channel.get(status[message.guild.id]).send("Offline");
}
When it refers to member its a json file and here is its value if this helps
{"719634604008538192":{"id":"638368326996983848","bot":false,"username":"丂んムW刀 りの乇丂","discriminator":"2435","avatar":"afbec0b7cc719ba3d103a60bf72e220e","lastMessageChannelID":"719969405034954834","flags":0,"createdTimestamp":1572269269466,"defaultAvatarURL":"https://cdn.discordapp.com/embed/avatars/0.png","tag":"丂んムW刀 りの乇丂#2435","avatarURL":"https://cdn.discordapp.com/avatars/638368326996983848/afbec0b7cc719ba3d103a60bf72e220e.webp","displayAvatarURL":"https://cdn.discordapp.com/avatars/638368326996983848/afbec0b7cc719ba3d103a60bf72e220e.webp"}}
i don't get no error's i think it just the if statement not being true, can some one help me plz
Aucun commentaire:
Enregistrer un commentaire