teenxdom
teenxdom
DIAdiscord.js - Imagine an app
Created by theonezawaq on 4/4/2024 in #djs-questions
status activites
did you figure out how to get the details of the status, like what song someone is listening to on spotify for example
7 replies
DIAdiscord.js - Imagine an app
Created by teenxdom on 7/1/2024 in #djs-questions
Status Checking
for example if i want it to say Listening to spotify, then the track name
29 replies
DIAdiscord.js - Imagine an app
Created by teenxdom on 7/1/2024 in #djs-questions
Status Checking
@Amgelo thank you so much, im just wondering is there anyway to get the details of an activity?
29 replies
DIAdiscord.js - Imagine an app
Created by teenxdom on 7/1/2024 in #djs-questions
Status Checking
No description
29 replies
DIAdiscord.js - Imagine an app
Created by teenxdom on 7/1/2024 in #djs-questions
Status Checking
its activityies
29 replies
DIAdiscord.js - Imagine an app
Created by teenxdom on 7/1/2024 in #djs-questions
Status Checking
i got it
29 replies
DIAdiscord.js - Imagine an app
Created by teenxdom on 7/1/2024 in #djs-questions
Status Checking
wait
29 replies
DIAdiscord.js - Imagine an app
Created by teenxdom on 7/1/2024 in #djs-questions
Status Checking
if i do message.member.presence.activity it says undefined
29 replies
DIAdiscord.js - Imagine an app
Created by teenxdom on 7/1/2024 in #djs-questions
Status Checking
which in this case is spotify
29 replies
DIAdiscord.js - Imagine an app
Created by teenxdom on 7/1/2024 in #djs-questions
Status Checking
i got message.member.presence.status to show dnd but i cant figure out how to show the activity
29 replies
DIAdiscord.js - Imagine an app
Created by teenxdom on 7/1/2024 in #djs-questions
Status Checking
Idek how to do that
29 replies
DIAdiscord.js - Imagine an app
Created by teenxdom on 7/1/2024 in #djs-questions
Status Checking
Alright I’ll try that soon
29 replies
DIAdiscord.js - Imagine an app
Created by teenxdom on 7/1/2024 in #djs-questions
Status Checking
Do I do message.member.presence?
29 replies
DIAdiscord.js - Imagine an app
Created by teenxdom on 7/1/2024 in #djs-questions
Status Checking
It was sent in a guild
29 replies
DIAdiscord.js - Imagine an app
Created by teenxdom on 7/1/2024 in #djs-questions
Status Checking
@Mark
29 replies
DIAdiscord.js - Imagine an app
Created by teenxdom on 7/1/2024 in #djs-questions
Status Checking
const { Client, GatewayIntentBits} = require('discord.js');
const client = new Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildPresences,
],
});


const channelId = '1242672359760990258';
const messageId = '1257535916067786752';

async function checkStatus() {
const userId = '240066558829920256';
try {
const channel = await client.channels.fetch(channelId);
const message = await channel.messages.fetch(messageId);
const author = message.author;
const status = message.author.presence
console.log(`${status}`)
console.log(`The author of the message with ID ${messageId} is ${author.tag}`);
} catch (error) {
console.error('Error fetching message:', error);
}
}

client.once('ready', () => {
console.log('Bot is ready!');
checkStatus();
setInterval(checkStatus, 6000);
});

// Replace with your bot token
const token = 'example';
client.login(token);
const { Client, GatewayIntentBits} = require('discord.js');
const client = new Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildPresences,
],
});


const channelId = '1242672359760990258';
const messageId = '1257535916067786752';

async function checkStatus() {
const userId = '240066558829920256';
try {
const channel = await client.channels.fetch(channelId);
const message = await channel.messages.fetch(messageId);
const author = message.author;
const status = message.author.presence
console.log(`${status}`)
console.log(`The author of the message with ID ${messageId} is ${author.tag}`);
} catch (error) {
console.error('Error fetching message:', error);
}
}

client.once('ready', () => {
console.log('Bot is ready!');
checkStatus();
setInterval(checkStatus, 6000);
});

// Replace with your bot token
const token = 'example';
client.login(token);
29 replies
DIAdiscord.js - Imagine an app
Created by teenxdom on 7/1/2024 in #djs-questions
Status Checking
let me find it agian
29 replies
DIAdiscord.js - Imagine an app
Created by teenxdom on 7/1/2024 in #djs-questions
Status Checking
it keeps saying my presence is undefined
29 replies
DIAdiscord.js - Imagine an app
Created by teenxdom on 7/1/2024 in #djs-questions
Status Checking
Alright thank you
29 replies