Skip to content

Commit

Permalink
Make Plugin Work
Browse files Browse the repository at this point in the history
  • Loading branch information
A-Trash-Coder committed Aug 23, 2021
1 parent fab17ef commit 881e492
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,15 @@ module.exports = class EmbedLinksUtility extends Plugin {
var nonPermsShow = this.settings.get('nonPermsShow', true);
var hasPermsShow = this.settings.get('hasPermsShow', true);

if (!this.hasPermission(channel, Permissions.SEND_MESSAGES)) {
if (!this.hasPermission(channel, Permissions.SEND_MESSAGES) == 'On') {
return res;
}

if (channel.type == 1 || channel.type == 3) {
return res;
}

if (hasPerm) {
if (hasPerm == 'On') {
if (hasPermsShow) {
if (this.settings.get('showIcon')) {
var src = this.settings.get('hasPermsImage', 'https://img.icons8.com/flat_round/64/000000/checkmark.png');
Expand Down

0 comments on commit 881e492

Please sign in to comment.