Skip to content

Commit

Permalink
Banner link + naming changes (dest > target)
Browse files Browse the repository at this point in the history
  • Loading branch information
Khaaz committed Nov 11, 2018
1 parent 0ab6dbb commit 05e538e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div align="center">
<br />
<p>
<a href="https://khaaz.github.io"><img src="_image/banner.png" width="546" alt="AxonCore" /></a>
<a href="https://khaaz.github.io"><img src="_images/banner.png" width="546" alt="AxonCore" /></a>
</p>
<br />
<p>
Expand Down
6 changes: 3 additions & 3 deletions example/src/configs/templateConf.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
"error": {
"permBot": "I don't have sufficient permissions to do that! I need:",
"permSource": "You don't have sufficient permissions to do that! You need:",
"permDest": "This user is a mod/admin, I can't do that!",
"cooldown": "Please, slow down! Remaining:",
"general": "An unexpected error occured! Contact Bot developers."
"permTarget": "This user is a mod/admin, I can't do that!",
"cooldown": "Please, slow down! Remaining time:",
"general": "An unexpected error occured! Contact the bot developers."
}
}
}
2 changes: 1 addition & 1 deletion src/Conf/templateConf.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"error": {
"permBot": "I don't have sufficient permissions to do that! I need:",
"permSource": "You don't have sufficient permissions to do that! You need:",
"permDest": "This user is a mod/admin, I can't do that!",
"permTarget": "This user is a mod/admin, I can't do that!",
"cooldown": "Please, slow down! Remaining time:",
"general": "An unexpected error occured! Contact the bot developers."
}
Expand Down
9 changes: 5 additions & 4 deletions src/Structures/Command.js
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,7 @@ class Command extends Base {

/**
* Send an error message in case of invalid user permissions, delete it automatically after a delay.
* Uses the template message in config/template.
*
* @param {Object<Channel>} channel - The channel Object
* @param {Object<Member>} member - The member object
Expand All @@ -704,15 +705,15 @@ class Command extends Base {
}

/**
* Send an error message for Destination user permissions
* timeout // delay and auto delete message
* Send an error message incase of invalid target permissions (serverMod/serverAdmin).
* Uses the template message in config/template.
*
* @param {Object<Channel>} channel - The channel Object
* @returns {Promise<Message?>} Message Object
* @memberof Command
*/
sendDestPerms(channel) {
return this.sendError(channel, this.Template.message.error.permDest, { delete: true, delay: 9000 });
sendTargetPerms(channel) {
return this.sendError(channel, this.Template.message.error.permTarget, { delete: true, delay: 9000 });
}

/**
Expand Down

0 comments on commit 05e538e

Please sign in to comment.