Ejemplo n.º 1
0
        public override async Task Set()
        {
            await Target.SendMessageAsync($"You have been banned from {Guild.Name}\r\nThis ban will be removed after {Program.FormatTimeSpan(Duration.Value)}");

            await Guild.AddBanAsync(Target, 0, $"By {Operator.Id}: {Reason}");

            var txt = await Service.GetAdminChannel(Guild);

            await txt.SendMessageAsync(embed : GetBuilder()
                                       .WithTitle("User Temp-banned")
                                       .Build());
        }
Ejemplo n.º 2
0
        public async Task BanMember()
        {
            var Member = await GetUser();

            if (Member != null)
            {
                EmbedMaker Maker = new EmbedMaker();
                Maker.setTitle("Ban Command").setDesctiption($"{Author.Username} has banned {Member.Username}");
                await Guild.AddBanAsync(Member);

                await Channel.SendMessageAsync("", false, Maker);
            }
        }