Compare commits

..

2 Commits

Author SHA1 Message Date
6f658b7fcb Update main.py 2023-06-26 16:39:44 +02:00
407c3ab070 Update README.md 2023-06-26 16:24:21 +02:00
2 changed files with 6 additions and 1 deletions

View File

@ -103,6 +103,11 @@ systemctl start discord-account-verification
To configure discord account verification, please modify the configurations of the systemd service according to your needs.
Do not forget to create an application in the Discord Developer Portal and to give the permissions:
- Manage Roles
- Send Messages
- Use Slash Commands
## License
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

View File

@ -229,7 +229,7 @@ async def unverify(interaction: discord.Interaction, id: str) -> None:
if user:
delete_user = c.execute("DELETE FROM users WHERE id = :id", {"id": match})
conn.commit()
role = discord.utils.get(interaction.guild.roles, name="Vérifié")
role = discord.utils.get(interaction.guild.roles, name="Vérifiés")
member = interaction.guild.get_member(int(match))
await member.remove_roles(role)
await interaction.response.send_message(