Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Permissions and not able to kick players who haven't messaged or done anything in the server #3

Open
kentdelrosario opened this issue Dec 6, 2020 · 0 comments

Comments

@kentdelrosario
Copy link

Describe the bug
So far, what I'm experiencing on the code is that it kicks users, but only once they have messaged at least once on the server and become inactive after a certain amount of time. But, in the command prompt, it will show that the bot is missing permissions, as shown in the roles section in the discord management, it does have all the permissions, along with administrator. Adding to that, the "Test" role doesn't have anything specific at all like administrator because it has no checked permissions, nor does the "@everyone" role. I believe it's trying to kick the bot itself, even though it's to be exempted?

To Reproduce
Steps to reproduce the behavior:

  1. Here's my index.js [https://pastebin.com/raw/mdmpKYxN] that checks who's inactive every 2.5 seconds, to test out whether it's working, but even if at the same speed as the default one, it's still the same.
  2. I run a cmd titled [kick.bat] which has "node index.js" on it, so it runs the bot locally.
  3. After a while, it will send screenshots similar as to this one in the photo that says "Discord Cleaner will be kicked"

Screenshots
image
image
image

Additional context
Though, when someone does send a message, it will kick the user after a certain amount of time, but I was hoping it would kick them even if they didn't send a message, even if they were offline or didn't do anything in the server at all. Like reacting to messages, joining voice chats, and such.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant