Comments (5)
Your noPms: true
is inside the embed code. You need to place it in the registerCommand
code line.
from discord-selfbot.
Also, think you can make your code a little bit simpler, by doing something like:
module.exports = (self) => {
self.registerCommand('perms', function (msg, args) {
let perms = []
let userPerms = msg.channel.permissionsOf(msg.author.id).json
Object.keys(userPerms).forEach((key, index) => {
perms.push(`${userPerms[key] ? '+' : '-'}${key}`)
})
this.embed(msg, { // Send an embed
title: `${msg.author.username}'s Permissions`,
description: [
'```diff',
perms.join('\n'),
'```'
].join('\n'),
color: 4627433
})
}, {
noPms: true
})
}
Note: not tested as I just made it up. Seems like it would work. The noPms
on this code is in the right place, so check what is different from the one you posted.
from discord-selfbot.
Alright, seems to work fine now. Thank you!
from discord-selfbot.
Except for one thing, the simplified version you have doesn't seem to want to output all the denied permissions.
from discord-selfbot.
Ah ye, forgot it doesnt show them on the json cause they are undefined. Oh well, like I said it was made in the moment.
from discord-selfbot.
Related Issues (20)
- Game cycling broken HOT 3
- Is there a different way to make Rich Embeds? HOT 3
- selfbot returns "invalid ownerID. Must be a string of your own discord ID." HOT 5
- Run.bat isnt loading up correctly. HOT 2
- Bot cannot find eris. HOT 3
- WS Error HOT 1
- [Question] If possible, how can I generate a *new token for my account*? HOT 2
- Unclean WS close 4004 authentication failed. What does this mean, and how can I fix it? HOT 2
- Bot does not start HOT 1
- Misspelling in README HOT 1
- Selfbots are bannable HOT 2
- Getting this issue. how do I fix? HOT 4
- Invalid Owner ID HOT 3
- Syntax error
- Rich Game Cycling? HOT 2
- Commands not always listening?? HOT 2
- Playing and Streaming commands don't work HOT 1
- eris, module, disconnect error HOT 7
- can you do a updated one for microsoft edge? HOT 1
- Error when running "sudo npm start". HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from discord-selfbot.