nvm
This commit is contained in:
parent
8a2f5d6fbe
commit
7b8f2621ad
|
@ -215,6 +215,8 @@ client.on('message', async (message) => {
|
||||||
const logs = client.channels.get(process.env.LOGS!);
|
const logs = client.channels.get(process.env.LOGS!);
|
||||||
const privileged = message.member?.hasPermission(message.channel?.server!, 'ManageMessages');
|
const privileged = message.member?.hasPermission(message.channel?.server!, 'ManageMessages');
|
||||||
|
|
||||||
|
if (!Object.keys(COMMANDS).includes(args[0]?.toLowerCase())) return;
|
||||||
|
|
||||||
if (!privileged && db.data?.blocked.includes(message.author_id)) {
|
if (!privileged && db.data?.blocked.includes(message.author_id)) {
|
||||||
console.log('Ignoring nerd');
|
console.log('Ignoring nerd');
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue