Lumii
Lumii
DIAdiscord.js - Imagine an app
Created by Lumii on 5/8/2025 in #djs-questions
Commands won't show up in DMs
It Just Works...
19 replies
DIAdiscord.js - Imagine an app
Created by Lumii on 5/8/2025 in #djs-questions
Commands won't show up in DMs
Well, I couldn't figure out how to fix this or w/e, but deleting that line of code fixed it and it started working!
19 replies
DIAdiscord.js - Imagine an app
Created by Lumii on 5/8/2025 in #djs-questions
Commands won't show up in DMs
5|discord_core | [DIAGNOSTIC] Detected discord.js version: 14.19.3
5|discord_core | [DIAGNOSTIC] Type of IntegrationType: undefined
5|discord_core | TypeError: Cannot read properties of undefined (reading 'GuildInstall')
5|discord_core | at Object.<anonymous> (/home/fchuser/discordbackend/core.js:52:47)
5|discord_core | at Module._compile (node:internal/modules/cjs/loader:1356:14)
5|discord_core | at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
5|discord_core | at Module.load (node:internal/modules/cjs/loader:1197:32)
5|discord_core | at Module._load (node:internal/modules/cjs/loader:1013:12)
5|discord_core | at Object.<anonymous> (/usr/local/lib/node_modules/pm2/lib/ProcessContainerFork.js:33:23)
5|discord_core | at Module._compile (node:internal/modules/cjs/loader:1356:14)
5|discord_core | at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
5|discord_core | at Module.load (node:internal/modules/cjs/loader:1197:32)
5|discord_core | at Module._load (node:internal/modules/cjs/loader:1013:12)
5|discord_core | [DIAGNOSTIC] Detected discord.js version: 14.19.3
5|discord_core | [DIAGNOSTIC] Type of IntegrationType: undefined
5|discord_core | TypeError: Cannot read properties of undefined (reading 'GuildInstall')
5|discord_core | at Object.<anonymous> (/home/fchuser/discordbackend/core.js:52:47)
5|discord_core | at Module._compile (node:internal/modules/cjs/loader:1356:14)
5|discord_core | at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
5|discord_core | at Module.load (node:internal/modules/cjs/loader:1197:32)
5|discord_core | at Module._load (node:internal/modules/cjs/loader:1013:12)
5|discord_core | at Object.<anonymous> (/usr/local/lib/node_modules/pm2/lib/ProcessContainerFork.js:33:23)
5|discord_core | at Module._compile (node:internal/modules/cjs/loader:1356:14)
5|discord_core | at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
5|discord_core | at Module.load (node:internal/modules/cjs/loader:1197:32)
5|discord_core | at Module._load (node:internal/modules/cjs/loader:1013:12)
19 replies
DIAdiscord.js - Imagine an app
Created by Lumii on 5/8/2025 in #djs-questions
Commands won't show up in DMs
Oh, actually, it's because my bot has stopped working entirely - it's crashing on startup
19 replies
DIAdiscord.js - Imagine an app
Created by Lumii on 5/8/2025 in #djs-questions
Commands won't show up in DMs
This application is also a bot that runs in a couple servers, so I'm also wondering if that could be causing interference?
19 replies
DIAdiscord.js - Imagine an app
Created by Lumii on 5/8/2025 in #djs-questions
Commands won't show up in DMs
I updated it with this code and restarted my discord, but it still isn't working in dms with others.
19 replies
DIAdiscord.js - Imagine an app
Created by Lumii on 5/8/2025 in #djs-questions
Commands won't show up in DMs
const gififyMessageCommand = new ContextMenuCommandBuilder()
.setName('Gif-ify Image')
.setType(ApplicationCommandType.Message) // Specify it's a Message context menu command
.setContexts([InteractionContextType.Guild, InteractionContextType.BotDM, InteractionContextType.PrivateChannel])
.setIntegrationTypes([IntegrationType.GuildInstall, IntegrationType.UserInstall]);

const commands = [
setupCommand.toJSON(),
resetCommand.toJSON(), // Add the reset command here
gififyMessageCommand.toJSON() // Add the new Message Context Menu command
];
const gififyMessageCommand = new ContextMenuCommandBuilder()
.setName('Gif-ify Image')
.setType(ApplicationCommandType.Message) // Specify it's a Message context menu command
.setContexts([InteractionContextType.Guild, InteractionContextType.BotDM, InteractionContextType.PrivateChannel])
.setIntegrationTypes([IntegrationType.GuildInstall, IntegrationType.UserInstall]);

const commands = [
setupCommand.toJSON(),
resetCommand.toJSON(), // Add the reset command here
gififyMessageCommand.toJSON() // Add the new Message Context Menu command
];
Like this?
19 replies
DIAdiscord.js - Imagine an app
Created by Lumii on 5/8/2025 in #djs-questions
Commands won't show up in DMs
Oh! Let me check..
19 replies
DIAdiscord.js - Imagine an app
Created by Lumii on 5/8/2025 in #djs-questions
Commands won't show up in DMs
It shows up in my dms with the bot but not other users.
19 replies
DIAdiscord.js - Imagine an app
Created by Lumii on 5/8/2025 in #djs-questions
Commands won't show up in DMs
It takes an image and changes its file extension to .gif so that it can be saved in the discord gif favorites folder easily.
19 replies
DIAdiscord.js - Imagine an app
Created by Lumii on 5/8/2025 in #djs-questions
Commands won't show up in DMs
No description
19 replies
DIAdiscord.js - Imagine an app
Created by Lumii on 5/8/2025 in #djs-questions
Commands won't show up in DMs
npm list discord.js returns 14.19.3
19 replies
DIAdiscord.js - Imagine an app
Created by Lumii on 5/8/2025 in #djs-questions
Commands won't show up in DMs
npm node -v returns 9.2.0
19 replies
DIAdiscord.js - Imagine an app
Created by Lumii on 5/8/2025 in #djs-questions
Commands won't show up in DMs
// ADD: New "Gif-ify Image" Message Context Menu Command
const gififyMessageCommand = new ContextMenuCommandBuilder()
.setName('Gif-ify Image')
.setType(ApplicationCommandType.Message); // Specify it's a Message context menu command

const commands = [
setupCommand.toJSON(),
resetCommand.toJSON(), // Add the reset command here
gififyMessageCommand.toJSON() // Add the new Message Context Menu command
];
// ADD: New "Gif-ify Image" Message Context Menu Command
const gififyMessageCommand = new ContextMenuCommandBuilder()
.setName('Gif-ify Image')
.setType(ApplicationCommandType.Message); // Specify it's a Message context menu command

const commands = [
setupCommand.toJSON(),
resetCommand.toJSON(), // Add the reset command here
gififyMessageCommand.toJSON() // Add the new Message Context Menu command
];
19 replies