mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-12 16:13:05 -04:00
remove permission
This commit is contained in:
parent
627c0877bb
commit
db477d7a49
1 changed files with 27 additions and 26 deletions
|
@ -45,7 +45,6 @@ module.exports = {
|
||||||
limit: 1,
|
limit: 1,
|
||||||
duration: 5000
|
duration: 5000
|
||||||
},
|
},
|
||||||
permissionsClient: [Permissions.MANAGE_MESSAGES],
|
|
||||||
run: async (context, args) => {
|
run: async (context, args) => {
|
||||||
await context.triggerTyping();
|
await context.triggerTyping();
|
||||||
|
|
||||||
|
@ -59,13 +58,15 @@ module.exports = {
|
||||||
|
|
||||||
let perspectiveApi = await perspective(context, [args.input])
|
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))}`,
|
description: `${msg}${iconPill("rules", "Scores")} ${codeblock("ansi", formatPerspectiveScores(perspectiveApi.response.body))}`,
|
||||||
footer: {
|
footer: {
|
||||||
iconUrl: STATICS.perspectiveapi,
|
iconUrl: STATICS.perspectiveapi,
|
||||||
text: `Perspective • ${context.application.name}`
|
text: `Perspective • ${context.application.name}`
|
||||||
}
|
}
|
||||||
})] })
|
})]
|
||||||
|
})
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
await editOrReply(context, { embeds: [createEmbed("error", context, `Something went wrong.`)] })
|
await editOrReply(context, { embeds: [createEmbed("error", context, `Something went wrong.`)] })
|
||||||
console.log(e)
|
console.log(e)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue