added vc role to other server
This commit is contained in:
@@ -44,6 +44,13 @@ namespace Kehyeedra3
|
||||
var user = await guild.GetUserAsync(arg1.Id);
|
||||
await user.AddRoleAsync(role);
|
||||
}
|
||||
if (guild.Id == 912778610300039198)
|
||||
{
|
||||
Console.WriteLine($"{arg1.Username} joined voice on VCH");
|
||||
var role = guild.GetRole(914676573091811349);
|
||||
var user = await guild.GetUserAsync(arg1.Id);
|
||||
await user.AddRoleAsync(role);
|
||||
}
|
||||
}
|
||||
if (arg2.VoiceChannel != null && arg3.VoiceChannel == null)
|
||||
{
|
||||
@@ -55,6 +62,13 @@ namespace Kehyeedra3
|
||||
var user = await guild.GetUserAsync(arg1.Id);
|
||||
await user.RemoveRoleAsync(role);
|
||||
}
|
||||
if (guild.Id == 912778610300039198)
|
||||
{
|
||||
Console.WriteLine($"{arg1.Username} left voice on VCH");
|
||||
var role = guild.GetRole(914676573091811349);
|
||||
var user = await guild.GetUserAsync(arg1.Id);
|
||||
await user.RemoveRoleAsync(role);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user