Exemple #1
0
        public async Task BanForeign(
            [Summary("The Id user to be banned.")]
            ulong userId,
            [Summary("The number of days of messages to be deleted.\n(Default: 1)")]
            int prune = 1,
            [Remainder]
            [Summary("The reason for the ban.\n(Default: \"No Reason Provided.\")")]
            string reason = "No Reason Provided.")
        {
            try
            {
                await _moderation.BanForeign(Context.Guild, userId, Context.User, prune, reason);

                await Context.Message.AddReactionAsync(new Emoji("✅"));
            }
            catch (Exception e)
            {
                await ReplyAsync(e.Message);
            }
        }