Is there a way of disabling slide to power off?

I have a terrible sleeping pattern and I just go to bed when I am tired. I have looked at lots of different alarms and I finally found a app called [redacted] it’s class but there are a few problems but I’ve fixed them obviously I wanted to know is there a way to disable slide to power off.
Hello and welcome to iMore! In regards to your question, I have no experience with this App. I would consult the App’s support site To find an answer to your question.
In order for slide to power off to appear, the power button needs to be hella down for a couple of seconds. Is that happening while you are sleeping?

Original thread: https://forums.imore.com/threads/is-there-a-way-of-disabling-slide-to-power-off.430484/