SirNuny
SirNuny
DIAdiscord.js - Imagine an app
Created by SirNuny on 6/20/2024 in #djs-questions
Images randomly not loading
I'll just remove that feature then. Thanks!
9 replies
DIAdiscord.js - Imagine an app
Created by SirNuny on 6/20/2024 in #djs-questions
Images randomly not loading
What I'm confused about is that it does sometimes work, but sometimes there's no image. But there's nothing I can do about this?
9 replies
DIAdiscord.js - Imagine an app
Created by SirNuny on 6/20/2024 in #djs-questions
Images randomly not loading
That's exactly what I've done, isn't it?
9 replies
DIAdiscord.js - Imagine an app
Created by SirNuny on 6/20/2024 in #djs-questions
Images randomly not loading
No description
9 replies
DIAdiscord.js - Imagine an app
Created by SirNuny on 6/10/2024 in #djs-questions
Authorize modal
But if I use interaction.awaitModalSubmit() and two modals are shown at the same time, then it messes up one of them
8 replies
DIAdiscord.js - Imagine an app
Created by SirNuny on 5/30/2024 in #djs-questions
RequestAbortedError when uploading files
Thank you a lot!
6 replies
DIAdiscord.js - Imagine an app
Created by SirNuny on 5/30/2024 in #djs-questions
RequestAbortedError when uploading files
Fixed, found gelp in #djs-help-v14
6 replies
DIAdiscord.js - Imagine an app
Created by SirNuny on 5/30/2024 in #djs-questions
RequestAbortedError when uploading files
No description
6 replies
DIAdiscord.js - Imagine an app
Created by SirNuny on 4/3/2024 in #djs-voice
Bot stops playing when rejoining another channel
That's bringing me to the next issue: player.on(VoiceClient.AudioPlayerStatus.Idle will trigger when resubscribing, which causes an error because it triggers the same function as connection.on(VoiceClient.VoiceConnectionStatus.Ready at the same time.
3 replies
DIAdiscord.js - Imagine an app
Created by SirNuny on 12/3/2023 in #djs-questions
command.permissions.has() always returns true
Well that's propably going to take too much time to process, so I'll try it another way. Thank you for the help
10 replies
DIAdiscord.js - Imagine an app
Created by SirNuny on 12/3/2023 in #djs-questions
command.permissions.has() always returns true
I was trying to use this in a help command, so the user only gets to see commands he/she can use
10 replies
DIAdiscord.js - Imagine an app
Created by SirNuny on 12/3/2023 in #djs-questions
command.permissions.has() always returns true
Oh yeah I'm just checking whether the user has permissions to that specific command
10 replies
DIAdiscord.js - Imagine an app
Created by SirNuny on 12/3/2023 in #djs-questions
command.permissions.has() always returns true
You're right, when using await it doesn't return true anymore. But now it returns false at every command. Should the permissionId be the ID of a role which has permissions to the command?
10 replies
DIAdiscord.js - Imagine an app
Created by SirNuny on 12/3/2023 in #djs-questions
command.permissions.has() always returns true
await client.guilds.cache.get(guildId).commands.fetch().then(commands => {
commands.forEach(slashCommand => {
...
await client.guilds.cache.get(guildId).commands.fetch().then(commands => {
commands.forEach(slashCommand => {
...
10 replies
DIAdiscord.js - Imagine an app
Created by SirNuny on 12/2/2023 in #djs-questions
Modal submiting
That's a good idea. What's the limit of a customId again?
5 replies
DIAdiscord.js - Imagine an app
Created by SirNuny on 6/12/2023 in #djs-voice
Bot disconnects from vc after a few days on external host
Oh sorry, I thought you just meant I should make sure it's in the ready function. I'll try that
4 replies
DIAdiscord.js - Imagine an app
Created by SirNuny on 6/12/2023 in #djs-voice
Bot disconnects from vc after a few days on external host
This is the code
client.on('ready', async () => {
console.log(`${client.user.tag} started`);

client.user.setActivity('/help', { type: Discord.ActivityType.Playing });
music(client);
});
client.on('ready', async () => {
console.log(`${client.user.tag} started`);

client.user.setActivity('/help', { type: Discord.ActivityType.Playing });
music(client);
});
In the music function, the player and connection are created and the bot should join the vc and start playing music.
4 replies
DIAdiscord.js - Imagine an app
Created by SirNuny on 4/6/2023 in #djs-voice
Check whether resource is valid
Can't find something usefull in there..
6 replies
DIAdiscord.js - Imagine an app
Created by SirNuny on 4/6/2023 in #djs-voice
Check whether resource is valid
You can add a resource with a random string, so not every resource is playable
6 replies
DIAdiscord.js - Imagine an app
Created by SirNuny on 4/6/2023 in #djs-questions
Command localizations in guilds
Thanks, exactly what I was looking for
3 replies