Auto909
DIAdiscord.js - Imagine an app
•Created by Auto909 on 7/11/2023 in #djs-questions
does any one know how to get discord to display your bots command for auto complete
ok thank you
17 replies
DIAdiscord.js - Imagine an app
•Created by Auto909 on 7/11/2023 in #djs-questions
does any one know how to get discord to display your bots command for auto complete
yes my commands are messageCreate
17 replies
DIAdiscord.js - Imagine an app
•Created by Auto909 on 7/11/2023 in #djs-questions
does any one know how to get discord to display your bots command for auto complete
i apologize i am new to this but i believe mine are slash commands as an example one of my commands is /add (what you want to add)
17 replies
DIAdiscord.js - Imagine an app
•Created by Auto909 on 7/11/2023 in #djs-questions
does any one know how to get discord to display your bots command for auto complete
im not sure what you mean by that but when you go to type /consent by the time you get to /con you can hit tab and it will auto fill it for you in the picture you can also click on the bots image and it will show you all of there commands
17 replies
DIAdiscord.js - Imagine an app
•Created by Auto909 on 7/11/2023 in #djs-questions
does any one know how to get discord to display your bots command for auto complete
my discord.js is 14.11.0 and my node -v is v18.16.1
17 replies
DIAdiscord.js - Imagine an app
•Created by Auto909 on 7/11/2023 in #djs-questions
does any one know how to get discord to display your bots command for auto complete
17 replies
DIAdiscord.js - Imagine an app
•Created by Auto909 on 7/10/2023 in #djs-questions
bot is online but not resieving messages
yes oml i have been trying to figure this out for the past couple of hours thank you so much your a savior
23 replies
DIAdiscord.js - Imagine an app
•Created by Auto909 on 7/10/2023 in #djs-questions
bot is online but not resieving messages
ohh i read it wrong lol
23 replies
DIAdiscord.js - Imagine an app
•Created by Auto909 on 7/10/2023 in #djs-questions
bot is online but not resieving messages
this is what i have
const { Client, GatewayIntentBits } = require('discord.js');
const client = new Client({
intents: GatewayIntentBits.GuildMessages
});
let todoList = {};
let staffList = {
auto909: true
};
client.on('ready', () => {
console.log(
if (message.author.bot) return; const args = message.content.trim().split(/ +/g); const command = args[0].toLowerCase(); switch (command) { case '/add': const item = args.slice(1).join(' '); if (!todoList[message.guild.id]) todoList[message.guild.id] = {}; todoList[message.guild.id][item] = { stage: 'Not Started', assignee: 'None' }; message.channel.send(
Bot is ready as: ${client.user.tag}
);
});
client.on('messageCreate', message => {
console.log(Message received: ${message.content}
);
if (message.author.bot) return; const args = message.content.trim().split(/ +/g); const command = args[0].toLowerCase(); switch (command) { case '/add': const item = args.slice(1).join(' '); if (!todoList[message.guild.id]) todoList[message.guild.id] = {}; todoList[message.guild.id][item] = { stage: 'Not Started', assignee: 'None' }; message.channel.send(
Added item: ${item}
);
break;
yada yada yada.....23 replies
DIAdiscord.js - Imagine an app
•Created by Auto909 on 7/10/2023 in #djs-questions
bot is online but not resieving messages
so correct me if im wrong
const { Client, GatewayIntentBits } = require('discord.js');
const client = new Client({
intents: GatewayIntentBits.GuildMessages
});
23 replies
DIAdiscord.js - Imagine an app
•Created by Auto909 on 7/10/2023 in #djs-questions
bot is online but not resieving messages
I then changed it to what i have now and it worked
23 replies
DIAdiscord.js - Imagine an app
•Created by Auto909 on 7/10/2023 in #djs-questions
bot is online but not resieving messages
what i used for this was
const client = new Discord.Client({
intents: [
'GUILDS',
'GUILD_MESSAGES',
'GUILD_MESSAGE_REACTIONS'
]
});
23 replies
DIAdiscord.js - Imagine an app
•Created by Auto909 on 7/10/2023 in #djs-questions
bot is online but not resieving messages
this was there error
as i said i am new to coding
C:\Users\Lavis\Desktop\myBot>node bot.js
C:\Users\Lavis\Desktop\myBot\node_modules\discord.js\src\util\BitField.js:172
throw new DiscordjsRangeError(ErrorCodes.BitFieldInvalid, bit);
^
RangeError [BitFieldInvalid]: Invalid bitfield flag or number: GUILDS.
at IntentsBitField.resolve (C:\Users\Lavis\Desktop\myBot\node_modules\discord.js\src\util\BitField.js:172:11)
at C:\Users\Lavis\Desktop\myBot\node_modules\discord.js\src\util\BitField.js:167:54
at Array.map (<anonymous>)
at IntentsBitField.resolve (C:\Users\Lavis\Desktop\myBot\node_modules\discord.js\src\util\BitField.js:167:40)
at new BitField (C:\Users\Lavis\Desktop\myBot\node_modules\discord.js\src\util\BitField.js:33:38)
at new IntentsBitField (C:\Users\Lavis\Desktop\myBot\node_modules\discord.js\src\util\IntentsBitField.js:9:1)
at Client._validateOptions (C:\Users\Lavis\Desktop\myBot\node_modules\discord.js\src\client\Client.js:494:25)
at new Client (C:\Users\Lavis\Desktop\myBot\node_modules\discord.js\src\client\Client.js:78:10)
at Object.<anonymous> (C:\Users\Lavis\Desktop\myBot\bot.js:2:16)
at Module._compile (node:internal/modules/cjs/loader:1256:14) {
code: 'BitFieldInvalid'
}
Node.js v18.16.1
23 replies
DIAdiscord.js - Imagine an app
•Created by Auto909 on 7/10/2023 in #djs-questions
bot is online but not resieving messages
this is my client when i tried to add guildmessages it kept giving me errors
23 replies
DIAdiscord.js - Imagine an app
•Created by Auto909 on 7/10/2023 in #djs-questions
bot is online but not resieving messages
const client = new Discord.Client({
intents: 76864
});
23 replies
DIAdiscord.js - Imagine an app
•Created by Auto909 on 7/10/2023 in #djs-questions
bot is online but not resieving messages
23 replies
DIAdiscord.js - Imagine an app
•Created by Auto909 on 7/10/2023 in #djs-questions
bot is online but not resieving messages
there no error message or anything this is all that happens
23 replies
DIAdiscord.js - Imagine an app
•Created by Auto909 on 7/10/2023 in #djs-questions
bot is online but not resieving messages
my discord.js is 14.11.0 and my node -v is v18.16.1
23 replies