I do not know whether the Prophet ﷺ forbade the eating of donkey-meat (temporarily) because they were the beasts of burden for the people, and he disliked that their means of transportation should be lost, or he forbade it on the day of Khaibar permanently.
لاَ أَدْرِي أَنَهَى عَنْهُ رَسُولُ اللَّهِ ﷺ مِنْ أَجْلِ أَنَّهُ كَانَ حَمُولَةَ النَّاسِ فَكَرِهَ أَنْ تَذْهَبَ حَمُولَتُهُمْ أَوْ حَرَّمَهُ فِي يَوْمِ خَيْبَرَ لَحْمَ الْحُمُرِ الأَهْلِيَّةِ