示例#1
0
        public async Task ClanDescription([Remainder] string description)
        {
            description = description.Trim();
            if (string.IsNullOrWhiteSpace(description))
            {
                await Context.Channel.SendMessageAsync("",
                                                       embed : Utility.ResultFeedback(Utility.RedFailiureEmbed, Utility.SuccessLevelEmoji[2], $"Description must have... at least something in it."));

                return;
            }
            if (description.Length > 1500)
            {
                await Context.Channel.SendMessageAsync("",
                                                       embed : Utility.ResultFeedback(Utility.RedFailiureEmbed, Utility.SuccessLevelEmoji[2], $"Description should not be longer than 1500 characters!"));

                return;
            }
            await _clanService.EditClanDescription(Context, description);
        }