Pretty self explanatory... Getting some mixed answers with a google search, mostly from older gens anyway. And didn’t find the question on here either surprisingly.
Sleep Talk calling Rest will only succeed if it's gen 2, when Sleep Talk was originally introduced. Ever since then, Sleep Talk will fail in that case.