#Membercount Array issue

1 messages · Page 1 of 1 (latest)

errant ruin
#

We can Talk here.

cold smelt
#

ok

errant ruin
#

So, Let me send the part with all of the stuff

#
const arrayOfStatus = [
    `SU/AJ Communuity`,
    `you.`,
    `Netflix`,
    `Youtube`,
    `Twitch`,
    `Disney Plus`,
    `TikTok`,
    `#〢gamer-chat`,
    `#〢memes`,
    `#〢announcements`,
    `#〢content-posts`,
    `your mom.`,
    `for Tasks!`,
    `Toilet Flushes`,
    `Megalovania`,
    `People Poop`,
    `from the closet`,
    `from the window`,
    `you sleep`,
    `you cry.`,
    `from under da bed`, saber.guilds.cache.get('890248799094710272').memberCount + `Members!`,
]

saber.on('ready', async function() {
    saber.user.setActivity({ name: 'Waking Up...', type: "PLAYING" });
    setInterval(() => {
        saber.user.setActivity({ name: `${arrayOfStatus[Math.floor(Math.random() * arrayOfStatus.length)]}`, type: "WATCHING" })
    }, 20000)
    console.log('-- loaded client display --');
    console.log(`-- ${saber.user.tag} has logged onto the Discord API (${saber.ws.ping}ms) -- `)
    StatusHook.send(`${saber.user.tag} Enabled. || Client Status Updated `);
});
cold smelt
errant ruin
#

TypeError: Cannot read properties of undefined (reading 'memberCount')
    at Object.<anonymous> (C:\Users\Administrator\Desktop\SU-AJ Bot\index.js:87:49)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:79:12)
    at node:internal/main/run_main_module:17:47
errant ruin
cold smelt
errant ruin
errant ruin
#

VSC Error

wheat prism
#

Send that line

errant ruin
wheat prism
#

Don't add spaces

errant ruin
#

It formats to that

#

I can't change it

cold smelt
#
const arrayOfStatus = [
    `SU/AJ Communuity`,
    `you.`,
    `Netflix`,
    `Youtube`,
    `Twitch`,
    `Disney Plus`,
    `TikTok`,
    `#〢gamer-chat`,
    `#〢memes`,
    `#〢announcements`,
    `#〢content-posts`,
    `your mom.`,
    `for Tasks!`,
    `Toilet Flushes`,
    `Megalovania`,
    `People Poop`,
    `from the closet`,
    `from the window`,
    `you sleep`,
    `you cry.`,
    `from under da bed`, 
    `${saver.guilds.cache.get('890248799094710272')?.memberCount} Members!`,
]
errant ruin
#

I'll try it

cold smelt
# errant ruin

also friendly tip. dont use template literals unless you want to add a code and string in the same line

#

if its only a string, just do ""