Not registering events
Hello! I am having an issue where events (in this case, guildBanAdd) doesn't always register. When I am testing in my own server, ban logging works 100% of the time. When in production, it doesn't work 100% of the time (but has been confirmed working intermittently). I can only assume that in production multiple events are being fired quickly and it gets missed, or is slow? I am not sure why it is not always registering in production.
Further to this, when someone is banned later on and the event is registered by the bot, it will post the log, but the audit log conflicts, almost like it has grabbed the event from the earlier ban and newer ban. I know it conflicts as I have a check for if the ban executor matches the executor in the audit log. If they don't it just sends a generalised log with an 'Audit log incomplete' message to not send wrong information. I hope this makes sense.
We rarely use a 'discord ban' and usually use our 'bot ban'. This only affects 'discord bans' as we log through our bot when banning with it. The only time this affects a 'bot ban' is when a 'discord ban' has been used before it and it seems like it registers both events. it's quite confusing so not sure best how to explain.
Further to this, when someone is banned later on and the event is registered by the bot, it will post the log, but the audit log conflicts, almost like it has grabbed the event from the earlier ban and newer ban. I know it conflicts as I have a check for if the ban executor matches the executor in the audit log. If they don't it just sends a generalised log with an 'Audit log incomplete' message to not send wrong information. I hope this makes sense.
We rarely use a 'discord ban' and usually use our 'bot ban'. This only affects 'discord bans' as we log through our bot when banning with it. The only time this affects a 'bot ban' is when a 'discord ban' has been used before it and it seems like it registers both events. it's quite confusing so not sure best how to explain.