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

@ -11,10 +11,7 @@ module.exports = {
usage: 'reload'
},
onBefore: context => context.user.isClientOwner,
onCancel: context =>
context.reply(
`${context.user.mention}, you are lacking the permission \`BOT_OWNER\`.`
),
onCancel: ()=>{},
run: async (context) => {
await context.triggerTyping();
const time = Date.now();