Yoshod / Sersi

http://discord.gg/TgrPmDwVwq
GNU General Public License v3.0
3 stars 1 forks source link

[BUG] Ban Vote Not Creating Ban Moderation Log #186

Closed Yoshod closed 8 months ago

Yoshod commented 8 months ago

Describe the bug A user who has been banned via a moderation ban vote has not had a ban message sent to the Mod Logs or Sersi Logs.

To Reproduce Steps to reproduce the behavior:

  1. Initiate a vote ban
  2. Ban the user
  3. No message

Expected behavior An embed outlining the ban should be sent to the logs.

Additional context There are logs for ban votes in the testing server so perhaps a new update broke them?

Yoshod commented 8 months ago

Issue appears to the result of the following error: Ignoring exception in on_vote_ban Traceback (most recent call last): File "/home/sersi/.local/lib/python3.10/site-packages/nextcord/client.py", line 497, in _run_event await coro(*args, **kwargs) File "/home/sersi/Live/cogs/moderation/ban.py", line 731, in on_vote_ban yes_list = "\n• ".join(yes_voters) TypeError: sequence item 0: expected str instance, int found

Should be fixed in 5eb2368