#Permissions denied
1 messages · Page 1 of 1 (latest)
hey ;/
@rare vessel Depends on the permissions of the person. Is the person you are trying to ban the owner of the server? Also, I am not sure if bots are just made that way. I recommend you try getting someone to join, give them no admin permissions, and then attempt to ban them. If that doesn't work, then we'll have to figure what the issue is.
the user i banned was another bot
since it was just to test
let me try that too
also look in logs
it said banned my bot
no its something with the code
it just sent tat in the channel
but it didnt ban anyone
i only got that error on my console
bot did 0 actions
once again code
Is sorrow#6644 also the bot that we see above?
You can't ban yourself...
Even if you're an admin,
You cannot ban yourself.
Someone else has to ban you.
noo
The bot account tried to ban itself.
this is my account which isnt admin
im in my alts server
alt has owner ship
and i ahve admin
bot is above me
could you please look into the code
because idk why it says my bots name in the embed
yep
Okay.
and bot1 at very top
different
why would ban the actual bot
so basically im testing bans on bots cus i cant find any actual members to help me test it
bots like dyno mee6
Did Bot 2 have any admin permissions?
Could you possibly remove the admin permissions and try banning then?
nope look
same thing :(((
why does it say my bots name evrytime
@rare vessel When does this event fire? I see it firing every time someone is banned.
i added mudae bot
yea
everytime it bans or kicks
But what is the point of banning someone who is already banned or kicked?
it kicks the user if he is not whitelisted
They are already banned.
what
Shouldn't the event be onMemberAdded?
The event fires whenever someone leaves.
And it checks the reason.
If the reason is because they were banned,
The bot tries to ban them again.
did you see the code?
basically
its an anti nuke
so it bans anyone who breaks the limits set
we can set limits and if anyone is mass kicking/banning members frm the server
it bans them
when they bypass the limits
Try console.log() the entry.id.
console.log(entry.id)?
Where is this message coming from by the way? I could not see any of these embeds in your code.
thats jus the setting the anti nuke limits code
only the first embed
How about the second one?
second one is there in the code right
It isn't.
nvm
The print statement is,
But not the actual thing.
Okay,
theres one of roleDelete channelCreate
they all seem to work
perfectly
only this ban and kick is broken
thats what got me confused
Add console.log(entry.id) before role.guild.members.ban(entry.id, . .
Important one is creating a role I guess since that is the one we are working with.
Let me know how your output looks like.
okay
here
look
it didnt log anything in my console
when i create roles
i pu tthe limit as 3
but it shows 0/0
entire code
No no.
The output.
Did it print "🤡 banned rip bozo " at all?
And if so, what did it print under it?
no nothing
its just connected to database
let me try banning
it seems to print banned rip bozo
when i do ban
I can't really resolve any errors if you show me the bottom part of the debug.
I need to know the actual error message.
im sorry let me try again
Example:
module.exports = Structures.extend('Message', Message => {
^
TypeError: Cannot read property 'extend' of undefined
at Object.<anonymous> (C:\Users\Batman212369\Desktop\Discord Bots\RHS-Bot\node_modules\discord.js-
Another example:
a
bbbbbbbbbbbb
C:\Users\Batman212369\Desktop\Discord Bots\JS-Bot\node_modules\discord.js\src\rest\RequestHandler.js:298
throw new DiscordAPIError(data, res.status, request);
^
DiscordAPIError: Unknown interaction
at RequestHandler.execute (C:\Users\Batman212369\Desktop\Discord Bots\JS-Bot\node_modules\discord.js\src\rest\RequestHandler.js:298:13)
You can blur the user, I just need to know the actual error.
yes
sorry
i tried it now
it gives no error
the above one was a silly mistake on my part
now it just sends 0/0 message in logs
it doesnt print banned rip bozp
because it doesnt break the limits
see it always says 0/0
usually it says 1/3
2/3
3/3
and then banned rip bozo embed
now it just spams the same 0/0 embed
@minor ember
plz ping me when ur back
i need help D:
Weird.
Didn't we only change a single line that said "console.log()"?
It shouldn't have affected it like that.
@rare vessel add the console.log(entry.id) line in the ban thing as well (right under the bozo thing).
And try there.
look it doesnt log anything
it just sends the 0/0
embed
let me try ban now
roleCreate just spams 0/0 embed
but when i delete roles
it works
sends correct number like 1/2
and on 2/2 it bans
its perfect
but the ban,kick,role create is broken
let me try ban
see what it logs
dude i honestly dont know whats going on....
i banned the bot on my alt
and it banned me on my main account nibbler
the bot seems to be faster than discord audit logs for some reason too it banned me right when i banned a bot on my alt account
@minor ember
do you have any idea
if db.delete a thing?
quick.db package btw
idk if u use it ;/
nnvm it is
i checked
man what is this problem ;/
At this point, I suggest you try to use a debugger in order to go step-by-step through the process to see where it starts freaking out.
ok fine
ill figure something out ;/
@minor ember thank you so much fo your time
i really appreciate it man youre so nice 😄
Aye, thank you. I am glad I could help (although we didn't solve it, we went through different steps). Best of luck with debugging!