-1

I am programming a discord BOT in Python and I an working on a kick and ban command. I'm trying to make the BOT change the Audit Log of the server to add a "With reason: " to add the responsible moderator. Do anyone know how I can do that (like in this image).

jonrsharpe
  • 115,751
  • 26
  • 228
  • 437
TheOneMusic
  • 1,776
  • 3
  • 15
  • 39

1 Answers1

1

In discord.py rewrite you can use the ban coroutine

ban(user, *, reason=None, delete_message_days=1)

where the reason is :

reason (Optional[str]) – The reason the user got banned.

Tristo
  • 2,328
  • 4
  • 17
  • 28
  • 1
    [The kick command](https://discordpy.readthedocs.io/en/rewrite/api.html#discord.Guild.kick) The documentation is a good source of information – Tristo Jan 03 '19 at 16:17
  • 1
    Something similar, check this out https://stackoverflow.com/questions/50686388/how-to-install-discord-py-rewrite – Tristo Jan 03 '19 at 16:23