public async Task <bool> AskForSeasonNotificationRequestAsync(TvShow tvShow, TvSeason requestedSeason) { var message = $"Season {requestedSeason.SeasonNumber} has already been requested, you can click on the 🔔 reaction to be notified when it becomes available."; if (requestedSeason is FutureTvSeasons) { if (tvShow.AllSeasonsAvailable()) { message = $"All seasons are already available, you can click on the 🔔 reaction to be notified when future seasons becomes available."; } else if (tvShow.AllSeasonsAlreadyRequested()) { message = $"All seasons have been already requested, you can click on the 🔔 reaction to be notified when future seasons becomes available."; } else { message = $"Future seasons have already been requested, you can click on the 🔔 reaction to be notified when future seasons becomes available."; } } await _lastCommandMessage?.AddReactionAsync(new Emoji("🔔")); await ReplyToUserAsync(message); var reaction = await WaitForReactionAsync(Context, _lastCommandMessage, new Emoji("🔔")); return(reaction != null); }
public Task WarnAlreadyNotifiedForSeasonsAsync(TvShow tvShow, TvSeason requestedSeason) { if (requestedSeason is FutureTvSeasons) { if (tvShow.AllSeasonsAvailable()) { return(ReplyToUserAsync($"All seasons are available and you will be notified when new seasons become available.")); } else if (tvShow.AllSeasonsAlreadyRequested()) { return(ReplyToUserAsync($"All seasons have already been requested and you will be notified when new seasons become available.")); } else { return(ReplyToUserAsync($"Future seasons have already been requested and you will be notified when they becomes available.")); } } return(ReplyToUserAsync($"Season {requestedSeason.SeasonNumber} has already been requested and you will be notified when it becomes available.")); }