LF Help with Exit Party/Group Macro

This is the Macro that I used to use at the end of Dungeon or WQ groups but seems to have broken in SHadowlands.

/run LeaveParty()
/stopmacro [btn:1]
/bye [@none]
/s Thanks for the Group!

The last two lines always did have issues and if I could fix that it would be great but not as necessary as the first parts.

Thanks!

Update the first line to:
/run C_PartyInfo.LeaveParty()

Thanks.
I tried it a few times doing some HH run for people LF the mount.
The Goodbye command now works as well.

I still hope I can someday get the goodbye message to work.

Put the message first?

Ya, I did that a while back.
I had to change it to a /yell as I couldn’t find a way to make it say the message in different types of groups.

/Yell Thanks for the Group!
/bye [@none]
/run C_PartyInfo.LeaveParty()

Thanks for all the help.
So many get into groups, run the event and leave without a word. I guess I am too old and want to say Hello and good bye.

/gr
https://www.curseforge.com/wow/addons/macro-talk