it is rude
it is rude
Explore posts from servers
DIAdiscord.js - Imagine an app
Created by it is rude on 9/7/2023 in #djs-questions
Mobile Status
bruh
4 replies
DIAdiscord.js - Imagine an app
Created by it is rude on 9/7/2023 in #djs-questions
/home/container/src/commands/music/Play.js:21 try } ^SyntaxError: Unexpected token '}'
I’ve fixed that
9 replies
DIAdiscord.js - Imagine an app
Created by it is rude on 9/7/2023 in #djs-questions
/home/container/src/commands/music/Play.js:21 try } ^SyntaxError: Unexpected token '}'
ping me if you answer.
9 replies
DIAdiscord.js - Imagine an app
Created by it is rude on 9/7/2023 in #djs-questions
/home/container/src/commands/music/Play.js:21 try } ^SyntaxError: Unexpected token '}'
I also know that the try {} doen't have a bracket.
9 replies
DIAdiscord.js - Imagine an app
Created by it is rude on 9/7/2023 in #djs-questions
/home/container/src/commands/music/Play.js:21 try } ^SyntaxError: Unexpected token '}'
} catch (e) {
message.channel.send({ content: `${client.emoji.cross} | Found some error please try other source` });
// Log the error
console.error(`Error: ${e.message}`);
}
}
module.exports = Play;
} catch (e) {
message.channel.send({ content: `${client.emoji.cross} | Found some error please try other source` });
// Log the error
console.error(`Error: ${e.message}`);
}
}
module.exports = Play;
9 replies
DIAdiscord.js - Imagine an app
Created by it is rude on 9/7/2023 in #djs-questions
/home/container/src/commands/music/Play.js:21 try } ^SyntaxError: Unexpected token '}'
Point to note: There is more than one bracket missing..
9 replies
DIAdiscord.js - Imagine an app
Created by it is rude on 9/5/2023 in #djs-questions
TypeError
What is it that causing the bot not to join?
20 replies
DIAdiscord.js - Imagine an app
Created by it is rude on 9/5/2023 in #djs-questions
TypeError
FeelsBadMan
20 replies
DIAdiscord.js - Imagine an app
Created by it is rude on 9/5/2023 in #djs-questions
TypeError
v14
20 replies
DIAdiscord.js - Imagine an app
Created by it is rude on 9/5/2023 in #djs-questions
TypeError
You can see the ID pulled from DB is the same as the voice channel ID that logs no such ID found
20 replies
DIAdiscord.js - Imagine an app
Created by it is rude on 9/5/2023 in #djs-questions
TypeError
const { EmbedBuilder } = require("discord.js");
const delay = require("delay");
const AvonClientEvent = require("../../structures/Eventhandler");

class AvonVoiceStateUpdate extends AvonClientEvent {
get name() {
return 'voiceStateUpdate';
}

async run(os, ns) {
console.log('voiceStateUpdate event fired');

let player = this.client.poru.players.get(ns.guild.id);
if (!player && os.id !== this.client.user.id) return;

let db = await this.client.data.get(`${ns.guild.id}-247`);
if (!db || db === null) this.client.data.set(`${ns.guild.id}-247`, `disabled`);

console.log(`24/7 Mode: ${db}`);

if (os.id === this.client.user.id && !ns.channelId && db === 'enabled') {
const voiceChannelId = await this.client.data.get(`${ns.guild.id}-voice`);
console.log(`VoiceChannel ID from DB: ${voiceChannelId}`);

try {
const guild = await this.client.guilds.fetch(ns.guild.id);
const voiceChannel = await guild.channels.fetch(voiceChannelId);

console.log(`Fetched voiceChannel object: ${JSON.stringify(voiceChannel, null, 2)}`);

if (voiceChannel && (voiceChannel.type === 'GUILD_VOICE' || voiceChannel.type === 'GUILD_STAGE_VOICE')) {
const botMember = guild.members.cache.get(this.client.user.id);

if (botMember && botMember.voice) {
if (!botMember.voice.channelId || botMember.voice.channelId !== voiceChannelId) {
await delay(2000); // Delay for 2 seconds
await botMember.voice.setChannel(voiceChannelId).catch(err => console.error(`Failed to join the channel: ${err}`));
console.log('Successfully joined the voice channel.');
} else {
console.log('Bot is already in the voice channel.');
}
} else {
console.error(`Bot member or voice state not found in the guild: ${guild.id}`);
}
} else {
console.error(`No such voice channel found with ID: ${voiceChannelId}`);
}
} catch (err) {
console.error(`Failed to fetch or join voice channel: ${err}`);
}
}
}
}

module.exports = AvonVoiceStateUpdate;
const { EmbedBuilder } = require("discord.js");
const delay = require("delay");
const AvonClientEvent = require("../../structures/Eventhandler");

class AvonVoiceStateUpdate extends AvonClientEvent {
get name() {
return 'voiceStateUpdate';
}

async run(os, ns) {
console.log('voiceStateUpdate event fired');

let player = this.client.poru.players.get(ns.guild.id);
if (!player && os.id !== this.client.user.id) return;

let db = await this.client.data.get(`${ns.guild.id}-247`);
if (!db || db === null) this.client.data.set(`${ns.guild.id}-247`, `disabled`);

console.log(`24/7 Mode: ${db}`);

if (os.id === this.client.user.id && !ns.channelId && db === 'enabled') {
const voiceChannelId = await this.client.data.get(`${ns.guild.id}-voice`);
console.log(`VoiceChannel ID from DB: ${voiceChannelId}`);

try {
const guild = await this.client.guilds.fetch(ns.guild.id);
const voiceChannel = await guild.channels.fetch(voiceChannelId);

console.log(`Fetched voiceChannel object: ${JSON.stringify(voiceChannel, null, 2)}`);

if (voiceChannel && (voiceChannel.type === 'GUILD_VOICE' || voiceChannel.type === 'GUILD_STAGE_VOICE')) {
const botMember = guild.members.cache.get(this.client.user.id);

if (botMember && botMember.voice) {
if (!botMember.voice.channelId || botMember.voice.channelId !== voiceChannelId) {
await delay(2000); // Delay for 2 seconds
await botMember.voice.setChannel(voiceChannelId).catch(err => console.error(`Failed to join the channel: ${err}`));
console.log('Successfully joined the voice channel.');
} else {
console.log('Bot is already in the voice channel.');
}
} else {
console.error(`Bot member or voice state not found in the guild: ${guild.id}`);
}
} else {
console.error(`No such voice channel found with ID: ${voiceChannelId}`);
}
} catch (err) {
console.error(`Failed to fetch or join voice channel: ${err}`);
}
}
}
}

module.exports = AvonVoiceStateUpdate;
20 replies
DIAdiscord.js - Imagine an app
Created by it is rude on 9/5/2023 in #djs-questions
TypeError
Log after disconnect the bot manually
VoiceChannel ID from DB: 1016197435925741600
Fetched voiceChannel object: {
"type": 13,
"guild": "1013525707919478784",
"guildId": "1013525707919478784",
"parentId": "1013525708443762740",
"permissionOverwrites": [],
"messages": [],
"nsfw": false,
"flags": 0,
"id": "1016197435925741600",
"name": "Assia",
"rawPosition": 0,
"rtcRegion": null,
"bitrate": 64000,
"userLimit": 10000,
"videoQualityMode": null,
"lastMessageId": "1148655757114482875",
"rateLimitPerUser": 0,
"topic": null,
"createdTimestamp": 1662350748760
}
No such voice channel found with ID: 1016197435925741600
VoiceChannel ID from DB: 1016197435925741600
Fetched voiceChannel object: {
"type": 13,
"guild": "1013525707919478784",
"guildId": "1013525707919478784",
"parentId": "1013525708443762740",
"permissionOverwrites": [],
"messages": [],
"nsfw": false,
"flags": 0,
"id": "1016197435925741600",
"name": "Assia",
"rawPosition": 0,
"rtcRegion": null,
"bitrate": 64000,
"userLimit": 10000,
"videoQualityMode": null,
"lastMessageId": "1148655757114482875",
"rateLimitPerUser": 0,
"topic": null,
"createdTimestamp": 1662350748760
}
No such voice channel found with ID: 1016197435925741600
20 replies
DIAdiscord.js - Imagine an app
Created by it is rude on 9/5/2023 in #djs-questions
TypeError
also DiscordAPIError[10008]: Unknown Message at handleErrors (/home/container/node_modules/@discordjs/rest/dist/index.js:640:13) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async SequentialHandler.runRequest (/home/container/node_modules/@discordjs/rest/dist/index.js:1021:23) at async SequentialHandler.queueRequest (/home/container/node_modules/@discordjs/rest/dist/index.js:862:14) at async REST.request (/home/container/node_modules/@discordjs/rest/dist/index.js:1387:22) at async MessageManager.delete (/home/container/node_modules/discord.js/src/managers/MessageManager.js:255:5) at async Message.delete (/home/container/node_modules/discord.js/src/structures/Message.js:816:5) { requestBody: { files: undefined, json: undefined }, rawError: { message: 'Unknown Message', code: 10008 }, code: 10008, status: 404, method: 'DELETE', url: 'https://discord.com/api/v10/channels/958143858280112191/messages/1148672688961888337' } I don't understand why I keep thing this API error, I have the bot's perm, the message ID which the bot is trying to delete and such.
20 replies
DIAdiscord.js - Imagine an app
Created by it is rude on 9/5/2023 in #djs-questions
TypeError
using the code for the join command, its weird because when I use the dc command its able to rejoin the vc but when I manually disconnect it from vc it is unable to join back saying ID is not found (log), but I did more debugging and the ID the bot pulls from the DB is the same.
20 replies
DIAdiscord.js - Imagine an app
Created by it is rude on 9/5/2023 in #djs-questions
TypeError
well I've tried that but no it doesn't work.
20 replies
DIAdiscord.js - Imagine an app
Created by it is rude on 9/5/2023 in #djs-questions
TypeError
to my understanding the only platform that will be against the TOS is youtube. but thanks for the heads up.
20 replies
DIAdiscord.js - Imagine an app
Created by it is rude on 9/5/2023 in #djs-questions
TypeError
Thats 2 different ways, making it join and reconnect itself.
20 replies
DIAdiscord.js - Imagine an app
Created by it is rude on 9/5/2023 in #djs-questions
TypeError
is there a alt way, I could make my bot attempt a rejoin?
20 replies
DIAdiscord.js - Imagine an app
Created by it is rude on 9/4/2022 in #djs-voice
Headers Timeout Error
Already solved.
7 replies
DIAdiscord.js - Imagine an app
Created by it is rude on 9/4/2022 in #djs-voice
Headers Timeout Error
discord: [email protected] node: v16.16.0
7 replies