Caneless
Caneless
DIAdiscord.js - Imagine an app
Created by Caneless on 4/8/2024 in #djs-questions
Issue with roles
The role id it should have to get 2x xp 1226982509074579548
8 replies
DIAdiscord.js - Imagine an app
Created by Caneless on 4/8/2024 in #djs-questions
Issue with roles
What it logs
8 replies
DIAdiscord.js - Imagine an app
Created by Caneless on 4/8/2024 in #djs-questions
Issue with roles
[Map Iterator] {
'1216848932748136500',
'1216849687349297343',
'1225907718586503270',
'1225907902561255466',
'1226272267135225896',
'1226283313946431498',
'1226982516456427581',
'1226990131186110505',

[Map Iterator] {
'1216848932748136500',
'1216849687349297343',
'1225907718586503270',
'1225907902561255466',
'1226272267135225896',
'1226283313946431498',
'1226982516456427581',
'1226990131186110505',

8 replies
DIAdiscord.js - Imagine an app
Created by Caneless on 4/8/2024 in #djs-questions
Issue with roles
It returns user has role when user does not
8 replies
DIAdiscord.js - Imagine an app
Created by Caneless on 4/8/2024 in #djs-questions
Issue with roles
Code i have
8 replies
DIAdiscord.js - Imagine an app
Created by Caneless on 4/8/2024 in #djs-questions
Issue with roles
console.log(msg.member.roles.cache.keys())
if(msg.member.roles.cache.has("1226982509074579548")){
console.log("User has role")
toAdd = levelsdata.levelgains.permsg*2
await db.add(`${msg.guild.id}_${msg.author.id}_xp`, toAdd);
}else {
toAdd = levelsdata.levelgains.permsg
await db.add(`${msg.guild.id}_${msg.author.id}_xp`, toAdd);
}
console.log(msg.member.roles.cache.keys())
if(msg.member.roles.cache.has("1226982509074579548")){
console.log("User has role")
toAdd = levelsdata.levelgains.permsg*2
await db.add(`${msg.guild.id}_${msg.author.id}_xp`, toAdd);
}else {
toAdd = levelsdata.levelgains.permsg
await db.add(`${msg.guild.id}_${msg.author.id}_xp`, toAdd);
}
8 replies
DIAdiscord.js - Imagine an app
Created by Caneless on 10/1/2022 in #djs-voice
Spotify to play music
Okay, then i know i should not do that
10 replies
DIAdiscord.js - Imagine an app
Created by Caneless on 10/1/2022 in #djs-voice
Spotify to play music
https://www.npmjs.com/package/spotify-get package https://sourceb.in/ODYAuJHL77 That is the code https://sourceb.in/TJgI270qb2 what toPlay is And error
Error: Node type 'track' does not exist!
at getNode (C:\Users\sound\Documents\Developing\Discord\Julian's Bot\node_modules\@discordjs\voice\dist\index.js:1735:11)
at findPipeline (C:\Users\sound\Documents\Developing\Discord\Julian's Bot\node_modules\@discordjs\voice\dist\index.js:1831:37)
at createAudioResource (C:\Users\sound\Documents\Developing\Discord\Julian's Bot\node_modules\@discordjs\voice\dist\index.js:1917:31)
at playSpotify (C:\Users\sound\Documents\Developing\Discord\Julian's Bot\Commands\Music\play.js:140:26)
Error: Node type 'track' does not exist!
at getNode (C:\Users\sound\Documents\Developing\Discord\Julian's Bot\node_modules\@discordjs\voice\dist\index.js:1735:11)
at findPipeline (C:\Users\sound\Documents\Developing\Discord\Julian's Bot\node_modules\@discordjs\voice\dist\index.js:1831:37)
at createAudioResource (C:\Users\sound\Documents\Developing\Discord\Julian's Bot\node_modules\@discordjs\voice\dist\index.js:1917:31)
at playSpotify (C:\Users\sound\Documents\Developing\Discord\Julian's Bot\Commands\Music\play.js:140:26)
10 replies
DIAdiscord.js - Imagine an app
Created by Caneless on 10/1/2022 in #djs-voice
Spotify to play music
And error
Error: Node type 'track' does not exist!
at getNode (C:\Users\sound\Documents\Developing\Discord\Julian's Bot\node_modules\@discordjs\voice\dist\index.js:1735:11)
at findPipeline (C:\Users\sound\Documents\Developing\Discord\Julian's Bot\node_modules\@discordjs\voice\dist\index.js:1831:37)
at createAudioResource (C:\Users\sound\Documents\Developing\Discord\Julian's Bot\node_modules\@discordjs\voice\dist\index.js:1917:31)
at playSpotify (C:\Users\sound\Documents\Developing\Discord\Julian's Bot\Commands\Music\play.js:140:26)
Error: Node type 'track' does not exist!
at getNode (C:\Users\sound\Documents\Developing\Discord\Julian's Bot\node_modules\@discordjs\voice\dist\index.js:1735:11)
at findPipeline (C:\Users\sound\Documents\Developing\Discord\Julian's Bot\node_modules\@discordjs\voice\dist\index.js:1831:37)
at createAudioResource (C:\Users\sound\Documents\Developing\Discord\Julian's Bot\node_modules\@discordjs\voice\dist\index.js:1917:31)
at playSpotify (C:\Users\sound\Documents\Developing\Discord\Julian's Bot\Commands\Music\play.js:140:26)
10 replies
DIAdiscord.js - Imagine an app
Created by Caneless on 10/1/2022 in #djs-voice
Spotify to play music
10 replies
DIAdiscord.js - Imagine an app
Created by Caneless on 10/1/2022 in #djs-voice
Spotify to play music
10 replies
DIAdiscord.js - Imagine an app
Created by Caneless on 10/1/2022 in #djs-voice
Spotify to play music
I tried that
10 replies
DIAdiscord.js - Imagine an app
Created by Caneless on 10/1/2022 in #djs-voice
Spotify to play music
10 replies