make development commands silently error

This commit is contained in:
derpystuff 2023-04-01 14:02:58 +02:00
parent 575bbaa73a
commit 9fa0fb1ee4
4 changed files with 3 additions and 48 deletions

View file

@ -17,10 +17,7 @@ module.exports = {
{ default: false, name: "force", type: "bool", help: "Force update" }
],
onBefore: context => context.user.isClientOwner,
onCancel: context =>
context.reply(
`${context.user.mention}, you are lacking the permission \`BOT_OWNER\`.`
),
onCancel: ()=>{},
run: async (context, args) => {
let response = await editOrReply(context, createEmbed("loading", context, "Updating bot..."))
try{