Jordan
Jordan
DIAdiscord.js - Imagine a bot
Created by Jordan on 4/27/2024 in #djs-questions
Checking if a user is mobiile
W
38 replies
DIAdiscord.js - Imagine a bot
Created by Jordan on 4/27/2024 in #djs-questions
Checking if a user is mobiile
W
38 replies
DIAdiscord.js - Imagine a bot
Created by Jordan on 4/27/2024 in #djs-questions
Checking if a user is mobiile
🎊
38 replies
DIAdiscord.js - Imagine a bot
Created by Jordan on 4/27/2024 in #djs-questions
Checking if a user is mobiile
GatewayIntentBits.GuildPresences,
38 replies
DIAdiscord.js - Imagine a bot
Created by Jordan on 4/27/2024 in #djs-questions
Checking if a user is mobiile
now that you told me that I got a diff message 😄
38 replies
DIAdiscord.js - Imagine a bot
Created by Jordan on 4/27/2024 in #djs-questions
Checking if a user is mobiile
ah
38 replies
DIAdiscord.js - Imagine a bot
Created by Jordan on 4/27/2024 in #djs-questions
Checking if a user is mobiile
const {Client, GatewayIntentBits, SlashCommandBuilder, EmbedBuilder, ActivityType, Partials, GuildMembers, GuildPresences}=require('discord.js');
38 replies
DIAdiscord.js - Imagine a bot
Created by Jordan on 4/27/2024 in #djs-questions
Checking if a user is mobiile
GuildPresences oh
38 replies
DIAdiscord.js - Imagine a bot
Created by Jordan on 4/27/2024 in #djs-questions
Checking if a user is mobiile
"Cannot determine user status."
38 replies
DIAdiscord.js - Imagine a bot
Created by Jordan on 4/27/2024 in #djs-questions
Checking if a user is mobiile
or phone
38 replies
DIAdiscord.js - Imagine a bot
Created by Jordan on 4/27/2024 in #djs-questions
Checking if a user is mobiile
cant tell if im using pc
38 replies
DIAdiscord.js - Imagine a bot
Created by Jordan on 4/27/2024 in #djs-questions
Checking if a user is mobiile
cant find my shit
38 replies
DIAdiscord.js - Imagine a bot
Created by Jordan on 4/27/2024 in #djs-questions
Checking if a user is mobiile
wish code errored
38 replies
DIAdiscord.js - Imagine a bot
Created by Jordan on 4/27/2024 in #djs-questions
Checking if a user is mobiile
it doesnt error
38 replies
DIAdiscord.js - Imagine a bot
Created by Jordan on 4/27/2024 in #djs-questions
Checking if a user is mobiile
I MIGHT BE COOKING
38 replies
DIAdiscord.js - Imagine a bot
Created by Jordan on 4/27/2024 in #djs-questions
Checking if a user is mobiile
WAIT HOLD ON
38 replies
DIAdiscord.js - Imagine a bot
Created by Jordan on 4/27/2024 in #djs-questions
Checking if a user is mobiile
can you give me a explanination of why I cant get the users device
38 replies
DIAdiscord.js - Imagine a bot
Created by Jordan on 4/27/2024 in #djs-questions
Checking if a user is mobiile
if (!message.guild) return message.channel.send("This command can only be used in a guild.");

const member = message.guild.members.cache.get(message.author.id);
if (!member || !member.presence || !member.presence.clientStatus) {
return message.channel.send("Cannot determine user status.");
}

const userIsOnMobile = member.presence.clientStatus.mobile;
message.channel.send(`${member.displayName} is ${userIsOnMobile ? 'using' : 'not using'} Discord on mobile.`);
if (!message.guild) return message.channel.send("This command can only be used in a guild.");

const member = message.guild.members.cache.get(message.author.id);
if (!member || !member.presence || !member.presence.clientStatus) {
return message.channel.send("Cannot determine user status.");
}

const userIsOnMobile = member.presence.clientStatus.mobile;
message.channel.send(`${member.displayName} is ${userIsOnMobile ? 'using' : 'not using'} Discord on mobile.`);
38 replies
DIAdiscord.js - Imagine a bot
Created by Jordan on 4/27/2024 in #djs-questions
Checking if a user is mobiile
better question where can I find the docs for this
38 replies
DIAdiscord.js - Imagine a bot
Created by Jordan on 4/27/2024 in #djs-questions
Checking if a user is mobiile
ai is shit but its 3am and didnt think anyone would be online
38 replies