mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-11-03 03:39:48 +01:00
feat(verification): remove roles on join for non vegan
This commit is contained in:
parent
544d6bafd8
commit
63bce0d405
@ -117,6 +117,15 @@ class VerificationJoinVCListener extends Listener {
|
||||
+ 'If you leave this voice channel, you will automatically be given the non-vegan role where you gain access to this server and if you\'d like to verify as a vegan again, you\'d have to contact a Mod, which could be done via ModMail.');
|
||||
// Adds to the database that the user joined verification
|
||||
await joinVerification(channel.id, member);
|
||||
|
||||
// Remove all roles from the user
|
||||
await member.roles.remove([
|
||||
IDs.roles.vegan.vegan,
|
||||
IDs.roles.trusted,
|
||||
IDs.roles.nonvegan.nonvegan,
|
||||
IDs.roles.nonvegan.convinced,
|
||||
IDs.roles.nonvegan.vegCurious,
|
||||
]);
|
||||
}
|
||||
|
||||
// Check how many voice channels there are
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user