charlie
charlie
DIAdiscord.js - Imagine a boo! 👻
Created by charlie on 12/5/2023 in #djs-questions
(guild create channel) ---> TypeError [InvalidType]: Supplied parameter is not a User nor a Role.
okay managed to fix this, very odd. i added this before:
let user;
try {
user = await client.users.fetch(user_id);
} catch (error) {
console.error("Error fetching user:", error);
return false;
}
if (!user) {
return false;
}
let user;
try {
user = await client.users.fetch(user_id);
} catch (error) {
console.error("Error fetching user:", error);
return false;
}
if (!user) {
return false;
}
and used user.id in the permissions overwrite and it worked
6 replies
DIAdiscord.js - Imagine a boo! 👻
Created by charlie on 12/5/2023 in #djs-questions
(guild create channel) ---> TypeError [InvalidType]: Supplied parameter is not a User nor a Role.
the guild (server) is old, not sure exactly but many months
6 replies
DIAdiscord.js - Imagine a boo! 👻
Created by charlie on 12/5/2023 in #djs-questions
(guild create channel) ---> TypeError [InvalidType]: Supplied parameter is not a User nor a Role.
i am admin in the server and it works for me, but the other users are not admins
6 replies
DIAdiscord.js - Imagine a boo! 👻
Created by charlie on 12/5/2023 in #djs-questions
(guild create channel) ---> TypeError [InvalidType]: Supplied parameter is not a User nor a Role.
could it be a permission issue
6 replies