Spiralio
Spiralio
DIAdiscord.js - Imagine an app
Created by Spiralio on 9/4/2024 in #djs-questions
Local image not rendering in embed
No description
7 replies
DIAdiscord.js - Imagine an app
Created by Spiralio on 5/22/2023 in #djs-questions
DMs not receiving
Can someone explain to me why this code doesn't let the bot receive DM messages? It can receive all other messages in guilds, but not DMs.
const { Client, GatewayIntentBits } = require('discord.js');

const client = new Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.GuildMessageReactions,
GatewayIntentBits.GuildMessageTyping,
GatewayIntentBits.DirectMessages,
GatewayIntentBits.DirectMessageReactions,
GatewayIntentBits.DirectMessageTyping,
],
partials: [
'CHANNEL', // Required to receive DMs
]
});

client.on('messageCreate', (msg) => {
console.log(msg)
})
const { Client, GatewayIntentBits } = require('discord.js');

const client = new Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.GuildMessageReactions,
GatewayIntentBits.GuildMessageTyping,
GatewayIntentBits.DirectMessages,
GatewayIntentBits.DirectMessageReactions,
GatewayIntentBits.DirectMessageTyping,
],
partials: [
'CHANNEL', // Required to receive DMs
]
});

client.on('messageCreate', (msg) => {
console.log(msg)
})
6 replies
DIAdiscord.js - Imagine an app
Created by Spiralio on 11/30/2022 in #djs-questions
Permissions overwrite for channels
4 replies
DIAdiscord.js - Imagine an app
Created by Spiralio on 8/31/2022 in #djs-questions
Did Discord change something about roles?
Hello! My bot was working find up until about a week ago, when any feature involving roles suddenly stopped working well. Did Discord change something?
5 replies
DIAdiscord.js - Imagine an app
Created by Spiralio on 6/15/2022 in #djs-questions
Discord bot very slow at random times
Hi everyone, sorry about the vague title, but here are the details. I have a bot in a discord server with 40k members. On average, a ping command returns around 200 - 300 ms (calculated by the difference between when the message event is received and when the message is sent). However, at random points, it can take up to 10 seconds for seemingly no reason. This is what I know: - The slow down happens when the bot is sending the message, not during the calculations prior - The bot sends out many messages all the time to log user events - The bot is not verified Is it possible that the bot is reaching some sort of message sending limit? Is there any other troubleshooting I should do to prevent this from happening? Thanks!
17 replies