Compare commits
No commits in common. "6f658b7fcb71495c1ec7886a40a4c93c883a48a1" and "4bcd5d174d7ddc398994fb7c6423cf921901b38d" have entirely different histories.
6f658b7fcb
...
4bcd5d174d
|
@ -103,11 +103,6 @@ systemctl start discord-account-verification
|
||||||
|
|
||||||
To configure discord account verification, please modify the configurations of the systemd service according to your needs.
|
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
|
## 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.
|
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:
|
if user:
|
||||||
delete_user = c.execute("DELETE FROM users WHERE id = :id", {"id": match})
|
delete_user = c.execute("DELETE FROM users WHERE id = :id", {"id": match})
|
||||||
conn.commit()
|
conn.commit()
|
||||||
role = discord.utils.get(interaction.guild.roles, name="Vérifiés")
|
role = discord.utils.get(interaction.guild.roles, name="Vérifié")
|
||||||
member = interaction.guild.get_member(int(match))
|
member = interaction.guild.get_member(int(match))
|
||||||
await member.remove_roles(role)
|
await member.remove_roles(role)
|
||||||
await interaction.response.send_message(
|
await interaction.response.send_message(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user