After Celestia sends all of Twilight's letters on friendship back to her, however, Twilight uses a memory spell to restore her friends, and together they use the Elements to imprison Discord once again.
After Celestia sends all of Twilight's letters on friendship back to her, Twilight regains her faith in her friends and lifts Discord's spell on them. The six then use the Elements to imprison Discord once again.