示例#1
0
        public async Task UpdateReason([Remainder] string reason)
        {
            var splitted = reason.Split(' ', 2);
            int caseNr;

            if (!int.TryParse(splitted[0], out caseNr))
            {
                await ReplyAsync("", embed : Utility.ResultFeedback(Utility.RedFailiureEmbed,
                                                                    Utility.SuccessLevelEmoji[2], "Format is incorrect. Please follow the instructions!").WithDescription("the format is `caseNr YourReason`"));

                return;
            }
            await _modService.AddReason(Context, caseNr, splitted[1]);
        }
示例#2
0
 public async Task AddReason([Summary("Reason to update"), Remainder] string reason)
 {
     await _modService.AddReason(Context, reason);
 }