Skip to content
This repository has been archived by the owner on Mar 26, 2021. It is now read-only.

Commit

Permalink
Permission fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Wykerd committed Jun 17, 2020
1 parent 43bff01 commit 3b930f5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const items = require('../items.json');
import item_cache from './cache'

import User from './models/memberSchema'
import { client } from './client';

function limit(val, min, max) {
return val < min ? min : (val > max ? max : val)
Expand Down Expand Up @@ -72,6 +73,10 @@ export async function get_user_channel (message, member) {
id: message.author.id,
allow: ['VIEW_CHANNEL'],
},
{
id: client.user.id,
allow: ['VIEW_CHANNEL']
}
]
});

Expand Down

0 comments on commit 3b930f5

Please sign in to comment.