This will not give you a choice in which to open Discord or Aliucord.
Verified links will always open in Discord if not disabled.
Guide (miui optimization off)
1. Turn off miui optimization in developer settings
if there is no such setting press reset to default values in autofill section
2. Hold down program icon in mi/poco launcher and press app info
3. Press "Open by default"
If you don't see "Open by default"
enable (optional) back miui optimization and move to Guide using Activity Launcher (android 12 only)
4. Press "Add link" and add all the links
5. If you see some links grayed out, navigate to Discord the same way as shown in step 2 and disable "open supported links"
Guide using Activity Launcher
Activity Launcher | Playstore
1. Open Activity Launcher,search and launch this:
com.android.settings.Settings$AppDashboardActivity
2. If Aliucord or Discord isn't on the list, press "See all apps"
3. Find Aliucord/Discord on the list and press it
4. Press "Open by default"
5. Press "Add link" and add all the links
6. If you see some links grayed out, navigate to Discord the same way as shown in step 1-4 and disable "open supported links" and redo step 5