cats
cats
DIAdiscord.js - Imagine an app
Created by cats on 11/16/2024 in #djs-questions
can't set role to user (user.roles.add is not a function)
Oh ok, Thanks that fixed it, forgot to add it in the dev portal
12 replies
DIAdiscord.js - Imagine an app
Created by cats on 11/16/2024 in #djs-questions
can't set role to user (user.roles.add is not a function)
it's not a user installed app, and sorry where to check if it's added to the bot scope or not?
12 replies
DIAdiscord.js - Imagine an app
Created by cats on 11/16/2024 in #djs-questions
can't set role to user (user.roles.add is not a function)
it should be like this right? that's my current setup
import { Client, GatewayIntentBits } from 'npm:discord.js';

const client = new Client({ intents: [GatewayIntentBits.Guilds] });
import { Client, GatewayIntentBits } from 'npm:discord.js';

const client = new Client({ intents: [GatewayIntentBits.Guilds] });
12 replies
DIAdiscord.js - Imagine an app
Created by cats on 11/16/2024 in #djs-questions
can't set role to user (user.roles.add is not a function)
Ok, I noticed that it returns False when interaction.inCachedGuild() is called, and from what I understand it needs to be cached for it to work correctly. How can this be achieved?
12 replies
DIAdiscord.js - Imagine an app
Created by cats on 11/16/2024 in #djs-questions
can't set role to user (user.roles.add is not a function)
I understand, It was just an example.
12 replies