public async Task WarnMembers(IGuildUser user = null, int duration = 0, [Remainder] string reason = null) { duration *= 1000; if (user is null) { await ReplyAsync("Uyarmak istediğin kullanıcıyı belirtmelisin."); return; } var role = await Context.Guild.CreateRoleAsync("Uyarıldı", Context.Guild.EveryoneRole.Permissions, Color.DarkRed, false, RequestOptions.Default); await user.AddRoleAsync(role); if (reason is null) { await ReplyAsync(embed : await EmbedHandler.CreateModEmbed("❗❗❗ UYARILDIN ❗❗❗", "Sebep belirtilmedi fakat sen ne yaptığını gayet iyi biliyorsun. Tırmıklarım bak.!", "https://media.tenor.com/images/dd94d441c24a6a7f0a704f782f29c925/tenor.gif", (SocketGuildUser)user)); await Task.Delay(duration); await role.DeleteAsync(); return; } await ReplyAsync(embed : await EmbedHandler.CreateModEmbed("❗❗❗ UYARILDIN ❗❗❗", $"{reason} sebebiyle uyarıldın. Bir daha yapma tırmıklarım.!", "https://media.tenor.com/images/dd94d441c24a6a7f0a704f782f29c925/tenor.gif", (SocketGuildUser)user)); await Task.Delay(duration); await role.DeleteAsync(); }
public async Task BanMembers(SocketGuildUser user = null, [Remainder] string reason = null) { if (user is null) { await ReplyAsync("Yasaklamak istediğin kullanıcıyı belirtmelisin."); return; } if (reason is null) { await ReplyAsync(embed : await EmbedHandler.CreateModEmbed("❗❗❗ YASAKLANDI ❗❗❗", "sebep belirtilmedi fakat yaptıkları hiç hoş değildi. Tırmıklarım demiştim.!", "https://media.tenor.com/images/a0f3a98d1ac720bed581d3671be023b5/tenor.gif", user)); return; } await user.BanAsync(); await ReplyAsync(embed : await EmbedHandler.CreateModEmbed("❗❗❗ YASAKLANDI ❗❗❗", $"{reason} sebebiyle sunucudan yasaklandı. Tırmıklarım demiştim.!", "https://media.tenor.com/images/a0f3a98d1ac720bed581d3671be023b5/tenor.gif", user)); }