Deleted & Will Never Return
Deleted & Will Never Return
DIAdiscord.js - Imagine an app
Created by Deleted & Will Never Return on 8/26/2023 in #djs-questions
DJS RPC
const RPC = require("discord-rpc");
const rpc = new RPC.Client({ transport: "ipc" });
const {
RPC_CLIENT_ID,
API_KEY,
EPIC_USERNAME,
BUTTONS,
} = require("./settings/config.json");
// MY CODE

rpc.login({
clientId: RPC_CLIENT_ID,
});
const RPC = require("discord-rpc");
const rpc = new RPC.Client({ transport: "ipc" });
const {
RPC_CLIENT_ID,
API_KEY,
EPIC_USERNAME,
BUTTONS,
} = require("./settings/config.json");
// MY CODE

rpc.login({
clientId: RPC_CLIENT_ID,
});
❯ node index
C:\Users\admin\Desktop\Files\FNStatsRPC\node_modules\discord-rpc\src\transports\ipc.js:32
reject(new Error('Could not connect'));
^

Error: Could not connect
at Socket.onerror (C:\Users\admin\Desktop\Files\FNStatsRPC\node_modules\discord-rpc\src\transports\ipc.js:32:16)
❯ node index
C:\Users\admin\Desktop\Files\FNStatsRPC\node_modules\discord-rpc\src\transports\ipc.js:32
reject(new Error('Could not connect'));
^

Error: Could not connect
at Socket.onerror (C:\Users\admin\Desktop\Files\FNStatsRPC\node_modules\discord-rpc\src\transports\ipc.js:32:16)
7 replies
DIAdiscord.js - Imagine an app
Created by Deleted & Will Never Return on 8/19/2023 in #djs-questions
DiscordJS & Discords Voice Notes
I was wondering if it’s possible for bots to detect voice notes, if so, my initial plan is to make some sort of like Historical Notes Storage system to download the file, then put it in another channel stating who made said voice note.
10 replies
DIAdiscord.js - Imagine an app
Created by Deleted & Will Never Return on 8/17/2023 in #djs-questions
Bots setting Vanity
Is it possible to use just an endpoint to set the vanity via a command on a bot, or is there a built in feature to djs to enable this function?
8 replies
DIAdiscord.js - Imagine an app
Created by Deleted & Will Never Return on 7/27/2023 in #djs-questions
Bot not responding to prefix or anything but is online
My code below is what I am using and my prefix is: ! using
"dependencies": {
"discord.js": "^14.11.0"
}
"dependencies": {
"discord.js": "^14.11.0"
}
client.on('messageCreate', (message) => {
if (!message.content.startsWith(PREFIX) || message.author.bot) return;

const args = message.content.slice(PREFIX.length).trim().split(/ +/);
const command = args.shift().toLowerCase();

if (command === 'help') {
showHelp(message);
} else if (command === 'monitor') {
monitorFolder(message, args);
} else if (command === 'stopmonitor') {
stopMonitoringFolder(message, args);
} else if (command === 'setinterval') {
setIntervalForFolder(message, args);
}
});
client.on('messageCreate', (message) => {
if (!message.content.startsWith(PREFIX) || message.author.bot) return;

const args = message.content.slice(PREFIX.length).trim().split(/ +/);
const command = args.shift().toLowerCase();

if (command === 'help') {
showHelp(message);
} else if (command === 'monitor') {
monitorFolder(message, args);
} else if (command === 'stopmonitor') {
stopMonitoringFolder(message, args);
} else if (command === 'setinterval') {
setIntervalForFolder(message, args);
}
});
10 replies
DIAdiscord.js - Imagine an app
Created by Deleted & Will Never Return on 7/27/2023 in #djs-questions
Pronouns
Is it possible to access a users Pronouns to display on a UserInfo command?
17 replies