Nixx
Nixx
Explore posts from servers
BBattleMetrics
Created by Nixx on 8/14/2024 in #support-forum
Testing API without Server
Is there any way to test an API without having a server. Reason being is I want to test what Battlemetrics has to offer and whilst I admin a server certain permissions are not accessible to me and I would like to test the API to see what things I could develop.
3 replies
DIAdiscord.js - Imagine an app
Created by Nixx on 8/17/2023 in #djs-questions
.setActivity not working for me
client.on('ready', () => {
client.user.setActivity('activity', { type: ActivityType.Watching });
console.log(`${client.user.tag} has logged on.`)
const channel = client.channels.cache.get('1234');
console.log(`${client.user.tag} Has succesfully connected to ${channel.guild.name} which has ${channel.guild.memberCount} active user(s).`);
});
client.on('ready', () => {
client.user.setActivity('activity', { type: ActivityType.Watching });
console.log(`${client.user.tag} has logged on.`)
const channel = client.channels.cache.get('1234');
console.log(`${client.user.tag} Has succesfully connected to ${channel.guild.name} which has ${channel.guild.memberCount} active user(s).`);
});
For some reason i am getting the error Cannot read properties of null (reading 'setActivity') even though i have used const { Client, GatewayIntentBits, ActivityType } = require('discord.js');
4 replies
DIAdiscord.js - Imagine an app
Created by Nixx on 8/14/2023 in #djs-questions
How to find a specific word in a sentence
As the title says I am trying to find a specific word in a sentence e.g the fox was walking. I want to pull the word fox and give it a variable name to be used else where.
3 replies
DIAdiscord.js - Imagine an app
Created by Nixx on 8/13/2023 in #djs-questions
Creating a word counter with mongodb and discord.js
I am trying to create a word counter which displays the users tag and how many times they have said a specific word whilst the bot is active I have my database setup and linked just unsure how to access data and change it when the event has been fired
5 replies
DIAdiscord.js - Imagine an app
Created by Nixx on 8/12/2023 in #djs-questions
JSON File Counter
I am trying to make a simple word counter in discord.js I have managed to get the bot counting the specific word i want to be counted but how do i permanently store this data in a JSON file and update it when the bot is active.
47 replies
DIAdiscord.js - Imagine an app
Created by Nixx on 8/1/2023 in #djs-questions
Discord.js Visual Studio Code Extensions
Looking for someone to guide me on the best extensions to have installed before starting development.
3 replies