Two of my grandsons introduced me to Discord a couple of weeks ago. Here's one of my world-famous sketches showing the connections to/from Discord on my home set-up.
I can communicate with Discord using...
(A) My PC, laptop or tablet
(B) MQTT in a Node-RED flow
(C) A http-request node that 'posts' a request - webhook (to shut down my Bot)
I also have my Bot (written in Python running on a RPi) that interacts with Discord.
The Bot's commands interface to some of my cameras, some LEDs, a servo motor and a couple of relays. I can control the Bot from a Node-RED dashboard (see below).
Isn't life FUN when you are retired???