skyra-project/skyra

bug: events.ban-add and events.ban-remove not creating moderation logs

SQKo opened this issue · 3 comments

SQKo commented

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

  1. Ban or Unban someone manually from Discord

Expected behavior

It should post the moderation log when I manually ban or unban someone.

Screenshots
Screenshot 2022-02-01 at 22-10-28 Skyra Settings

Screenshot 2022-02-01 at 22-11-17 Discord - A New Way to Chat with Friends Communities

Screenshot 2022-02-01 at 22-10-01 Skyra Settings

Screenshot 2022-02-01 at 22-11-59 Discord - A New Way to Chat with Friends Communities

Additional context

It was previously working last time around 09/21/2021
Screenshot 2022-02-01 at 22-13-42 Discord - A New Way to Chat with Friends Communities

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.

SQKo commented

This seems fixed with ban add, but still not working ban remove, can anyone confirm this?

Edit: Seems OK now

This seems fixed with ban add, but still not working ban remove, can anyone confirm this?

Edit: Seems OK now

I did the testing anyway, works on my end. Glad it's working now.

image