Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Command("Warnings")]
- [RequireUserPermission(GuildPermission.ManageMessages)]
- public async Task amtwarnings(IGuildUser user)
- {
- var userAccount = UserAccounts.UserAccounts.GetAccount((SocketUser)user);
- if (user == null) throw new ArgumentException("You must mention a user");
- if (user == null) await Context.Channel.SendMessageAsync("You must mention a user!");
- var embed = new EmbedBuilder();
- embed.WithColor(new Color(0xF44336));
- embed.Title = $"Warnings for: {user.Username}";
- embed.Description = $"**Username: **{user.Username}\n**Amount of warnings: **{userAccount.NumberOfWarnings}!";
- await Context.Channel.SendMessageAsync("", false, embed);
- }
Add Comment
Please, Sign In to add comment