This commit is contained in:
Christopher Cookman 2024-04-09 16:19:22 -06:00
parent 2843c1aeb6
commit 7e6d106f4d
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42

View file

@ -186,7 +186,7 @@ client.on('messageCreate', async (message) => {
return { return {
"name": role.name, "name": role.name,
"color": role.hexColor, "color": role.hexColor,
"permissions": role.permissions.toArray() "permissions": role.permissions.bitfield.toString(2)
}; };
}) })
}; };
@ -279,10 +279,11 @@ client.on('messageCreate', async (message) => {
clearInterval(typing); clearInterval(typing);
sessions[message.channelId].processing = false; sessions[message.channelId].processing = false;
console.log(`${colors.red("[ERROR]")} An error occured: ${colors.red(err.response.status)}`); console.log(`${colors.red("[ERROR]")} An error occured: ${colors.red(err.response.status)}`);
console.log(err.response.data);
return message.channel.send({ return message.channel.send({
"embeds": [{ "embeds": [{
"title": "Error", "title": "Error",
"description": `An error occured: \njson\n\`\`\`{${JSON.stringify(err, null, "\t")}}\`\`\``, "description": `An error occured, Full details sent to the bot owner.`,
"color": 0xFF0000 "color": 0xFF0000
}] }]
}) })