Compare commits
2 Commits
4bcd5d174d
...
6f658b7fcb
Author | SHA1 | Date | |
---|---|---|---|
6f658b7fcb | |||
407c3ab070 |
|
@ -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.
|
||||
|
|
2
main.py
2
main.py
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue
Block a user