it should be elevated and iced continuously. if it doesn't improve somewhat in 24hrs, go to urgent care/ED because it may be broken.
it should also be wrapped and braced.
DO NOT walk on it or put any weight on it.
Edit: even if you didn’t break it, you have severely sprained it, and very likely tore some ligaments. You will need crutches for at least two weeks. Put as a little weight on it as possible during recovery or it will take longer to recover. Ibuprofen for the swelling, keep it wrapped and braced, and ice it when you’re not on it while keeping it elevated.