Rap star Kodak Black has thanked Donald Trump for granting him a pardon.