/prune
Prunes x amount of members from the provided guild
Last updated
Prunes x amount of members from the provided guild
Last updated
const axios = require('axios');
(async () => {
return await axios.post('https://bdfddata.rickyjs.xyz/<version>/guild/prune', {
days: 30,
reason: 'They dead lolz'
}, {
headers: {
'apikey': <YOUR-API-KEY>,
'bot-token': <YOUR-BOT-TOKEN>,
'guild-id': '1064098700307218463',
}
}).then(res=>res.data)
})(){
status: 200,
details: {pruned: x } // 'x' is replaced with the number of pruned members IF count is true
} {
status: 400
error: 'Cannot read ... (This can vary)'
}{
status: 401,
details: { message: '401: Unauthorized', code: 0 }
}