Technically, you can’t force your Discord activity status to be “Online” all the time. However, you can set a custom status message to notify other users of what you’re up to.
Also, you may use a third-party app that prevents your mouse from idling by moving it automatically every couple of minutes.