示例#1
0
        public async Task CancelReminder([Summary("The name of the reminder you wish to cancel.")] string name)
        {
            bool didRemove = ReminderService.CancelReminder(Context.User, Context.Channel, name);

            if (!didRemove)
            {
                await ReplyAsync("", embed : EmbedService.MakeFailFeedbackEmbed("The specified reminder either could not be found, or you don't own it."), lifeTime : Config.FeedbackMessageLifeTime);
            }
            else
            {
                await ReplyAsync("", embed : EmbedService.MakeSuccessFeedbackEmbed($"The reminder {name.Bold().Underline()} has been canceled successfully."));
            }
        }