What's the difference between saying Goodbye and Goodnight?

So my boyfriend texted me tonight like most nights, but instead of saying goodnight like usual he texted me a goodbye instead. Is there a difference between the two? I just hate the word goodbye, so it sorta freaked me out to see a goodbye versus a goodnight.
What's the difference between saying Goodbye and Goodnight?
Post Opinion