Bay Kedi
Bay Kedi
DIAdiscord.js - Imagine an app
Created by kps on 8/27/2024 in #djs-questions
Enum Integer Permissions Typescript
let sum: bigint;
Number(sum);
let sum: bigint;
Number(sum);
12 replies
DIAdiscord.js - Imagine an app
Created by kps on 8/27/2024 in #djs-questions
Enum Integer Permissions Typescript
make it a number then
12 replies
DIAdiscord.js - Imagine an app
Created by Bay Kedi on 8/8/2024 in #djs-questions
Routes.guildMembers() only shows one member
got it fixed
export async function guildMembers(req: Request, res: Response) {
try {
const params = new URLSearchParams()
params.append('limit', '5');
params.append('after', '155149108183695360')
const guildMembers = await rest.get(Routes.guildMembers(req.params.guildId), { query: params });
res.json(guildMembers);
}
catch (error) {
res.status(500).json({ error: error.message });
}
};
export async function guildMembers(req: Request, res: Response) {
try {
const params = new URLSearchParams()
params.append('limit', '5');
params.append('after', '155149108183695360')
const guildMembers = await rest.get(Routes.guildMembers(req.params.guildId), { query: params });
res.json(guildMembers);
}
catch (error) {
res.status(500).json({ error: error.message });
}
};
9 replies
DIAdiscord.js - Imagine an app
Created by Bay Kedi on 8/8/2024 in #djs-questions
Routes.guildMembers() only shows one member
im still getting one member
export async function guildMembers(req: Request, res: Response) {
try {
// @ts-ignore
const guildMembers = await rest.get(Routes.guildMembers(req.params.guildId), { query: { limit: 5, after: '155149108183695360' } });
res.json(guildMembers);
}
catch (error) {
res.status(500).json({ error: error.message });
}
};
export async function guildMembers(req: Request, res: Response) {
try {
// @ts-ignore
const guildMembers = await rest.get(Routes.guildMembers(req.params.guildId), { query: { limit: 5, after: '155149108183695360' } });
res.json(guildMembers);
}
catch (error) {
res.status(500).json({ error: error.message });
}
};
9 replies