ThourCS
ThourCS
DIAdiscord.js - Imagine an app
Created by ThourCS on 8/19/2023 in #djs-questions
Code Not working
const currentTime = new Date().toLocaleString('en-US', {
weekday: 'long',
hour: 'numeric',
minute: 'numeric',
hour12: true,
timeZone: 'America/Los_Angeles'
});
const currentTime = new Date().toLocaleString('en-US', {
weekday: 'long',
hour: 'numeric',
minute: 'numeric',
hour12: true,
timeZone: 'America/Los_Angeles'
});
I tried this, still same.
53 replies
DIAdiscord.js - Imagine an app
Created by ThourCS on 8/19/2023 in #djs-questions
Code Not working
i want -7 GMT
53 replies
DIAdiscord.js - Imagine an app
Created by ThourCS on 8/19/2023 in #djs-questions
Code Not working
lol
53 replies
DIAdiscord.js - Imagine an app
Created by ThourCS on 8/19/2023 in #djs-questions
Code Not working
but its showing my time
53 replies
DIAdiscord.js - Imagine an app
Created by ThourCS on 8/19/2023 in #djs-questions
Code Not working
ok it shows
53 replies
DIAdiscord.js - Imagine an app
Created by ThourCS on 8/19/2023 in #djs-questions
Code Not working
53 replies
DIAdiscord.js - Imagine an app
Created by ThourCS on 8/19/2023 in #djs-questions
Code Not working
but no data is to be shown
53 replies
DIAdiscord.js - Imagine an app
Created by ThourCS on 8/19/2023 in #djs-questions
Code Not working
it goes online
53 replies
DIAdiscord.js - Imagine an app
Created by ThourCS on 8/19/2023 in #djs-questions
Code Not working
I am close
53 replies
DIAdiscord.js - Imagine an app
Created by ThourCS on 8/19/2023 in #djs-questions
Code Not working
const { Client, GatewayIntentBits } = require('discord.js');

const client = new Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.MessageContent,
GatewayIntentBits.GuildMembers,
],
});

client.on('ready', async () => {
console.log('Logged in as ' + client.user.name);
updatePresence();
});

const updatePresence = () => {
setInterval(() => {
const currentTime = new Date().toLocaleString('en-US', {
weekday: 'long',
hour: 'numeric',
minute: 'numeric',
hour12: true
});

client.user.setPresence({ activities: [{ name: currentTime }], status: 'online' });
}, 60000);
};
const { Client, GatewayIntentBits } = require('discord.js');

const client = new Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.MessageContent,
GatewayIntentBits.GuildMembers,
],
});

client.on('ready', async () => {
console.log('Logged in as ' + client.user.name);
updatePresence();
});

const updatePresence = () => {
setInterval(() => {
const currentTime = new Date().toLocaleString('en-US', {
weekday: 'long',
hour: 'numeric',
minute: 'numeric',
hour12: true
});

client.user.setPresence({ activities: [{ name: currentTime }], status: 'online' });
}, 60000);
};
53 replies
DIAdiscord.js - Imagine an app
Created by ThourCS on 8/19/2023 in #djs-questions
Code Not working
Error: RangeError [BitFieldInvalid]: Invalid bitfield flag or number: [object Object].
53 replies
DIAdiscord.js - Imagine an app
Created by ThourCS on 8/19/2023 in #djs-questions
Code Not working
much better now?
53 replies
DIAdiscord.js - Imagine an app
Created by ThourCS on 8/19/2023 in #djs-questions
Code Not working
const updatePresence = () => {
setInterval(() => {
const currentTime = new Date().toLocaleString('en-US', {
weekday: 'long',
hour: 'numeric',
minute: 'numeric',
hour12: true
});

client.user.setPresence({ activities: [{ name: currentTime }], status: 'online' });
}, 60000);
};
const updatePresence = () => {
setInterval(() => {
const currentTime = new Date().toLocaleString('en-US', {
weekday: 'long',
hour: 'numeric',
minute: 'numeric',
hour12: true
});

client.user.setPresence({ activities: [{ name: currentTime }], status: 'online' });
}, 60000);
};
53 replies
DIAdiscord.js - Imagine an app
Created by ThourCS on 8/19/2023 in #djs-questions
Code Not working
ok one sec
53 replies
DIAdiscord.js - Imagine an app
Created by ThourCS on 8/19/2023 in #djs-questions
Code Not working
is this correct?
53 replies
DIAdiscord.js - Imagine an app
Created by ThourCS on 8/19/2023 in #djs-questions
Code Not working
const Discord = require('discord.js');

const client = new Discord.Client({
intents: {
typing: false,
presences: false
}
});
const Discord = require('discord.js');

const client = new Discord.Client({
intents: {
typing: false,
presences: false
}
});
53 replies
DIAdiscord.js - Imagine an app
Created by ThourCS on 8/19/2023 in #djs-questions
Code Not working
and can u help me fix just my imports?
53 replies
DIAdiscord.js - Imagine an app
Created by ThourCS on 8/19/2023 in #djs-questions
Code Not working
but where do I insert my currentTime in it?
53 replies
DIAdiscord.js - Imagine an app
Created by ThourCS on 8/19/2023 in #djs-questions
Code Not working
I understood that I need to do use this:
client.user.setActivity('activity', { type: ActivityType.Watching });
client.user.setActivity('activity', { type: ActivityType.Watching });
53 replies
DIAdiscord.js - Imagine an app
Created by ThourCS on 8/19/2023 in #djs-questions
Code Not working
np
53 replies