mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 06:03:04 -04:00
make development commands silently error
This commit is contained in:
parent
575bbaa73a
commit
9fa0fb1ee4
4 changed files with 3 additions and 48 deletions
|
@ -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{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue