bug: events.ban-add and events.ban-remove not creating moderation logs
SQKo opened this issue · 3 comments
Describe the bug
The event for ban & unban when done by other bots/manual are not posting moderation log.
Bot has enough permission (ban, audit log) for this action.
The configuration setting for channels.logs.moderation
is enabled.
The configuration setting for events.ban-add
and events.ban-remove
are also set to a channel where Skyra can send messages.
To Reproduce
- Ban or Unban someone manually from Discord
Expected behavior
It should post the moderation log when I manually ban or unban someone.
Additional context
It was previously working last time around 09/21/2021
Support message link: https://discord.com/channels/254360814063058944/382531782387695616/938087109091270697
Update: Found the cause. The guildBanAdd
event has an object payload that isn't expanded in the function's arguments. By correcting this, I was able to get logs for one ban, but no future bans despite both checks now returning fine. Will continue working.
This seems fixed with ban add, but still not working ban remove, can anyone confirm this?
Edit: Seems OK now