remove permission

This commit is contained in:
derpystuff 2023-05-12 21:40:46 +02:00
parent 627c0877bb
commit db477d7a49

View file

@ -45,7 +45,6 @@ module.exports = {
limit: 1,
duration: 5000
},
permissionsClient: [Permissions.MANAGE_MESSAGES],
run: async (context, args) => {
await context.triggerTyping();
@ -59,13 +58,15 @@ module.exports = {
let perspectiveApi = await perspective(context, [args.input])
return await editOrReply(context, { embeds: [createEmbed("default", context, {
return await editOrReply(context, {
embeds: [createEmbed("default", context, {
description: `${msg}${iconPill("rules", "Scores")} ${codeblock("ansi", formatPerspectiveScores(perspectiveApi.response.body))}`,
footer: {
iconUrl: STATICS.perspectiveapi,
text: `Perspective • ${context.application.name}`
}
})] })
})]
})
} catch (e) {
await editOrReply(context, { embeds: [createEmbed("error", context, `Something went wrong.`)] })
console.log(e)