JulianRJC
JulianRJC
DIAdiscord.js - Imagine an app
Created by JulianRJC on 9/11/2024 in #djs-questions
File Sending
├─┬ [email protected] │ └── [email protected] deduped └── [email protected] Node: v21.4.0
4 replies
DIAdiscord.js - Imagine an app
Created by JulianRJC on 6/16/2024 in #djs-questions
Discord Login
I have the scopes for "identify" And "Guilds"
5 replies
DIAdiscord.js - Imagine an app
Created by JulianRJC on 6/16/2024 in #djs-questions
Discord Login
data: { message: '401: Unauthorized', code: 0 }
5 replies
DIAdiscord.js - Imagine an app
Created by JulianRJC on 6/16/2024 in #djs-questions
Discord Login
app.get("/servers", async (req, res) => {
if (isLoggedIn === false) {
return res.redirect('/');
}
const userGuildResponse = await axios.get("https://discord.com/api/users/@me/guilds", {
headers: {
Authorization: `Bearer ${req.session.user.access_token}`
}
})

const userGuilds = userGuildResponse.data.filter(guild => {
return (guild.permissions & 0x20) === 0x20; // Check "MANAGE_GUILD" permission
});

res.render('auth/servers', { guilds: userGuilds });

})
app.get("/servers", async (req, res) => {
if (isLoggedIn === false) {
return res.redirect('/');
}
const userGuildResponse = await axios.get("https://discord.com/api/users/@me/guilds", {
headers: {
Authorization: `Bearer ${req.session.user.access_token}`
}
})

const userGuilds = userGuildResponse.data.filter(guild => {
return (guild.permissions & 0x20) === 0x20; // Check "MANAGE_GUILD" permission
});

res.render('auth/servers', { guilds: userGuilds });

})
5 replies
DIAdiscord.js - Imagine an app
Created by MerfAvenger on 5/20/2024 in #djs-questions
AudioPlayer Stuck in Buffering Status
#djs-voice
5 replies
DIAdiscord.js - Imagine an app
Created by sraech on 5/13/2024 in #djs-questions
Trying to get a list of members of a role
Does he have the Guild intent?
35 replies