#Limits is set to `2` in the database but the bot still bans after one channel create..
1 messages · Page 1 of 1 (latest)
im trying to change the limit
basically the bot bans whnever a user creates a certain amount of channels
therefore whenever a user creates whatever limits is set to
it bans
Well, you're just looping and kicking/banning every user that matches your audit log
.rtfm Guild.audit_logs
You're misunderstanding how limit= works
That is not at all how the limit parameter works.
How would i go about this then
Guild.audit_logs has a user kwarg to filter
Combined with the action kwarg will only returns the entries by that user
Flatten it, check the len, do the punishments
i fixed it
just one issue
the limit is set to 2 as of rn.. but it doesnt ban on the 2nd channel create but instead the 3rd
why is that
Read my messages.
thats what im trying to do
wym
i did
doesnt answer my questio n
what im trying to do works
i just dont see why it adds a +1 limit to the limits
It doesn't work if it doesn't do what you want
You clearly don't know what you're doing