Asega
Asega
DIAdiscord.js - Imagine an app
Created by Asega on 3/22/2025 in #djs-questions
Internal Server Error
Is this on my side or the APIs
js
try {
const response = await fetch(url, {
method: "GET",
headers: {
"Authorization": `Bearer apikey`,
"Content-Type": "application/json"
}
});
if (!response.ok) throw new Error(`Error: ${response.statusText}`);

const data = await response.json();
console.log(data.robloxId);
userProfile.robloxID = data.robloxId
await userProfile.save()
} catch (error) {
console.error("Failed to get Roblox ID:", error);
return null;
}
}
js
try {
const response = await fetch(url, {
method: "GET",
headers: {
"Authorization": `Bearer apikey`,
"Content-Type": "application/json"
}
});
if (!response.ok) throw new Error(`Error: ${response.statusText}`);

const data = await response.json();
console.log(data.robloxId);
userProfile.robloxID = data.robloxId
await userProfile.save()
} catch (error) {
console.error("Failed to get Roblox ID:", error);
return null;
}
}
Failed to get Roblox ID: Error: Error: Internal Server Error
at Object.execute (C:\Users\Rafferty\Desktop\italianpersonbot\src\commands\NonMods\rank.js:48:37)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Failed to get Roblox ID: Error: Error: Internal Server Error
at Object.execute (C:\Users\Rafferty\Desktop\italianpersonbot\src\commands\NonMods\rank.js:48:37)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
6 replies
DIAdiscord.js - Imagine an app
Created by Asega on 6/28/2024 in #djs-questions
DJS Number Input
I know there is no number input for modals but how could I make it to where a text input could only be numbers and not let it be submitted unless it was numbers
5 replies
DIAdiscord.js - Imagine an app
Created by Asega on 11/23/2023 in #djs-voice
voiceAdapterCreator not working
can someone tell me why this is happening
adapterCreator: channel.guild.voiceAdapterCreator
^

TypeError: Cannot read properties of undefined (reading 'voiceAdapterCreator')
adapterCreator: channel.guild.voiceAdapterCreator
^

TypeError: Cannot read properties of undefined (reading 'voiceAdapterCreator')
const channel = message.member.voice.channelId
const connection = joinVoiceChannel({
channelId: channel,
guildId: channel.guild,
adapterCreator: channel.guild.voiceAdapterCreator
})
connection()
const channel = message.member.voice.channelId
const connection = joinVoiceChannel({
channelId: channel,
guildId: channel.guild,
adapterCreator: channel.guild.voiceAdapterCreator
})
connection()
DJS voice installed
12 replies
DIAdiscord.js - Imagine an app
Created by Asega on 8/10/2023 in #djs-questions
jackpot balance keeps making new data?
i do not know why but in my code it keeps making new data everytime even if it already exsists here is the code please help
2 replies
DIAdiscord.js - Imagine an app
Created by Asega on 8/9/2023 in #djs-voice
Not adding money owed when they win
2 replies
DIAdiscord.js - Imagine an app
Created by Asega on 8/2/2023 in #djs-voice
Trying to make an automatic join to VC but wont work
Code
client.on("ready",(c)=>{
const channel = c.channels.cache.get('1136337935201996850')
const connection = joinVoiceChannel({
channelId: channel.id,
guildId: channel.guild.id,
adapterCreator: channel.guild.voiceAdapterCreater
})

//connection();
c.user.setActivity({
name: 'Events & Giveaways!',
type: ActivityType.Playing,
})
});
client.on("ready",(c)=>{
const channel = c.channels.cache.get('1136337935201996850')
const connection = joinVoiceChannel({
channelId: channel.id,
guildId: channel.guild.id,
adapterCreator: channel.guild.voiceAdapterCreater
})

//connection();
c.user.setActivity({
name: 'Events & Giveaways!',
type: ActivityType.Playing,
})
});
error
const adapter = options.adapterCreator({
^

TypeError: options.adapterCreator is not a function
const adapter = options.adapterCreator({
^

TypeError: options.adapterCreator is not a function
7 replies