galacticwarrior9 / IslamBot

A Discord bot that supports Qur'an, hadith, prayer times, tafsir and more.
GNU General Public License v3.0
87 stars 36 forks source link

Have buttons under Hadith, Quran, and Tafsir embeds to navigate to the next hadith/ayah in the book/Quran #75

Open itzmk21 opened 10 months ago

itzmk21 commented 10 months ago

Having buttons under a Hadith embed to navigate to the next hadith in the current collection or under a Quran embed to navigate to the next ayah in the current surah would be beneficial for the exact reason page navigation exists for the Mushaf command. Users will be able to simply read through the translation of the Quran (or Tafsir or Ahaadith in a collection) for the entire surah (or hadith collection) in one go without having to always type in the surah name then next ayah number (or hadith number) they desire.

Sometimes embeds require page navigators - these proposed navigators would be underneath them.

Would need to consider the limit of the number of ayahs in a surah or number of hadith in a collection. Also need to consider when a user does the Quran command with multiple ayahs in the embed - pressing "Next Ayah" or maybe "Next Ayahs" in that scenario would have to account for how many ayahs were in the original embed.