Ejemplo n.º 1
0
        public async Task GetKicks(CommandContext ctx, DiscordUser User)
        {
            await ctx.Message.DeleteAsync();

            await ctx.TriggerTypingAsync();

            await new DiscordMessageBuilder()
            .WithContent($"{ctx.User.Mention}")
            .WithEmbed(CustomMethod.GetUserWarnings(ctx.Guild, User, true))
            .WithAllowedMention(new UserMention())
            .SendAsync(ctx.Channel);
        }
Ejemplo n.º 2
0
        public async Task MyWarnings(CommandContext ctx)
        {
            await ctx.Message.DeleteAsync();

            await ctx.TriggerTypingAsync();

            try
            {
                await ctx.Member.SendMessageAsync(embed : CustomMethod.GetUserWarnings(ctx.Guild, ctx.User));
            }
            catch
            {
                await new DiscordMessageBuilder()
                .WithContent($"{ctx.Member.Mention}, Could not contact you through DMs.")
                .WithAllowedMention(new UserMention())
                .SendAsync(ctx.Channel);
            }
        }