Aquafy
Aquafy
DIAdiscord.js - Imagine an app
Created by Aquafy on 8/5/2023 in #djs-questions
trying to create a message counting bot
sent
5 replies
DIAdiscord.js - Imagine an app
Created by Aquafy on 8/5/2023 in #djs-questions
trying to create a message counting bot
basically, the user sends one command which starts the bot so it tracks messages sent in a certain channel, then after a set time that the user sets, it stops and shows how many messages the user setn
5 replies
DIAdiscord.js - Imagine an app
Created by Aquafy on 8/3/2023 in #djs-questions
trying to set up a bot but it doesnt work
how nice alr
31 replies
DIAdiscord.js - Imagine an app
Created by Aquafy on 8/3/2023 in #djs-questions
trying to set up a bot but it doesnt work
@luna🌈 i dont have a config.json file
31 replies
DIAdiscord.js - Imagine an app
Created by Aquafy on 8/3/2023 in #djs-questions
trying to set up a bot but it doesnt work
ill look through that thanks
31 replies
DIAdiscord.js - Imagine an app
Created by Aquafy on 8/3/2023 in #djs-questions
trying to set up a bot but it doesnt work
quick question, after I make a slash command, how would I update the bot so it allows people to use the command?
31 replies
DIAdiscord.js - Imagine an app
Created by Aquafy on 8/3/2023 in #djs-questions
trying to set up a bot but it doesnt work
thank you so much!
31 replies
DIAdiscord.js - Imagine an app
Created by Aquafy on 8/3/2023 in #djs-questions
trying to set up a bot but it doesnt work
yay its online now 😄
31 replies
DIAdiscord.js - Imagine an app
Created by Aquafy on 8/3/2023 in #djs-questions
trying to set up a bot but it doesnt work
alr found it sorry
31 replies
DIAdiscord.js - Imagine an app
Created by Aquafy on 8/3/2023 in #djs-questions
trying to set up a bot but it doesnt work
31 replies
DIAdiscord.js - Imagine an app
Created by Aquafy on 8/3/2023 in #djs-questions
trying to set up a bot but it doesnt work
in oauth right?
31 replies
DIAdiscord.js - Imagine an app
Created by Aquafy on 8/3/2023 in #djs-questions
trying to set up a bot but it doesnt work
Error: Used disallowed intents
at WebSocketShard.onClose (C:\Users\marcr\OneDrive\Desktop\New Giveaway bot\node_modules\@discordjs\ws\dist\index.js:1132:18)
at connection.onclose (C:\Users\marcr\OneDrive\Desktop\New Giveaway bot\node_modules\@discordjs\ws\dist\index.js:676:17)
at callListener (C:\Users\marcr\OneDrive\Desktop\New Giveaway bot\node_modules\ws\lib\event-target.js:290:14)
at WebSocket.onClose (C:\Users\marcr\OneDrive\Desktop\New Giveaway bot\node_modules\ws\lib\event-target.js:220:9)
at WebSocket.emit (node:events:514:28)
at WebSocket.emitClose (C:\Users\marcr\OneDrive\Desktop\New Giveaway bot\node_modules\ws\lib\websocket.js:258:10)
at TLSSocket.socketOnClose (C:\Users\marcr\OneDrive\Desktop\New Giveaway bot\node_modules\ws\lib\websocket.js:1264:15)
at TLSSocket.emit (node:events:526:35)
at node:net:323:12
at TCP.done (node:_tls_wrap:588:7)
Error: Used disallowed intents
at WebSocketShard.onClose (C:\Users\marcr\OneDrive\Desktop\New Giveaway bot\node_modules\@discordjs\ws\dist\index.js:1132:18)
at connection.onclose (C:\Users\marcr\OneDrive\Desktop\New Giveaway bot\node_modules\@discordjs\ws\dist\index.js:676:17)
at callListener (C:\Users\marcr\OneDrive\Desktop\New Giveaway bot\node_modules\ws\lib\event-target.js:290:14)
at WebSocket.onClose (C:\Users\marcr\OneDrive\Desktop\New Giveaway bot\node_modules\ws\lib\event-target.js:220:9)
at WebSocket.emit (node:events:514:28)
at WebSocket.emitClose (C:\Users\marcr\OneDrive\Desktop\New Giveaway bot\node_modules\ws\lib\websocket.js:258:10)
at TLSSocket.socketOnClose (C:\Users\marcr\OneDrive\Desktop\New Giveaway bot\node_modules\ws\lib\websocket.js:1264:15)
at TLSSocket.emit (node:events:526:35)
at node:net:323:12
at TCP.done (node:_tls_wrap:588:7)
31 replies
DIAdiscord.js - Imagine an app
Created by Aquafy on 8/3/2023 in #djs-questions
trying to set up a bot but it doesnt work
error: new Error("Used disallowed intents") ^
31 replies
DIAdiscord.js - Imagine an app
Created by Aquafy on 8/3/2023 in #djs-questions
trying to set up a bot but it doesnt work
oh, yea i see that
31 replies
DIAdiscord.js - Imagine an app
Created by Aquafy on 8/3/2023 in #djs-questions
trying to set up a bot but it doesnt work
ok
31 replies
DIAdiscord.js - Imagine an app
Created by Aquafy on 8/3/2023 in #djs-questions
trying to set up a bot but it doesnt work
and heres the error message i got
31 replies
DIAdiscord.js - Imagine an app
Created by Aquafy on 8/3/2023 in #djs-questions
trying to set up a bot but it doesnt work
C:\Users\marcr\OneDrive\Desktop\New Giveaway bot\node_modules\discord.js\src\client\Client.js:492
throw new DiscordjsTypeError(ErrorCodes.ClientMissingIntents);
^

TypeError [ClientMissingIntents]: Valid intents must be provided for the Client.
at Client._validateOptions (C:\Users\marcr\OneDrive\Desktop\New Giveaway bot\node_modules\discord.js\src\client\Client.js:492:13)
at new Client (C:\Users\marcr\OneDrive\Desktop\New Giveaway bot\node_modules\discord.js\src\client\Client.js:78:10)
at Object.<anonymous> (C:\Users\marcr\OneDrive\Desktop\New Giveaway bot\index.js:13:13)
at Module._compile (node:internal/modules/cjs/loader:1256:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
at Module.load (node:internal/modules/cjs/loader:1119:32)
at Module._load (node:internal/modules/cjs/loader:960:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47 {
code: 'ClientMissingIntents'
}

Node.js v18.17.0
C:\Users\marcr\OneDrive\Desktop\New Giveaway bot\node_modules\discord.js\src\client\Client.js:492
throw new DiscordjsTypeError(ErrorCodes.ClientMissingIntents);
^

TypeError [ClientMissingIntents]: Valid intents must be provided for the Client.
at Client._validateOptions (C:\Users\marcr\OneDrive\Desktop\New Giveaway bot\node_modules\discord.js\src\client\Client.js:492:13)
at new Client (C:\Users\marcr\OneDrive\Desktop\New Giveaway bot\node_modules\discord.js\src\client\Client.js:78:10)
at Object.<anonymous> (C:\Users\marcr\OneDrive\Desktop\New Giveaway bot\index.js:13:13)
at Module._compile (node:internal/modules/cjs/loader:1256:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
at Module.load (node:internal/modules/cjs/loader:1119:32)
at Module._load (node:internal/modules/cjs/loader:960:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47 {
code: 'ClientMissingIntents'
}

Node.js v18.17.0
31 replies
DIAdiscord.js - Imagine an app
Created by Aquafy on 8/3/2023 in #djs-questions
trying to set up a bot but it doesnt work
(of course without the token)
31 replies
DIAdiscord.js - Imagine an app
Created by Aquafy on 8/3/2023 in #djs-questions
trying to set up a bot but it doesnt work
const { Client, GatewayIntentBits } = require('discord.js');

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

const Discord = require('discord.js');
const bot = new Discord.Client();
const token = '';
const PREFIX = '';

bot.on('ready', () => {
console.log('i am online')


})
bot.login(token)
const { Client, GatewayIntentBits } = require('discord.js');

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

const Discord = require('discord.js');
const bot = new Discord.Client();
const token = '';
const PREFIX = '';

bot.on('ready', () => {
console.log('i am online')


})
bot.login(token)
31 replies
DIAdiscord.js - Imagine an app
Created by Aquafy on 8/3/2023 in #djs-questions
trying to set up a bot but it doesnt work
code:
31 replies