Using D2M, You can connect your Discord chat to your Minecraft server chat!

Make a rcon setup to your server (check Getting Started) and then choose a message where people can send messages to your minecraft server in and run in it: /d2m action:add channel:#rcon ✅ Successfully setted up D2M! /send message:hello
You will then recieve hello in the minecraft server.

To remove d2m from a channel run the del option:
/d2m action:del ✅ Successfully removed D2M!
To check if this channel has d2m setup and to which rcon channel:
/d2m action:info This is a D2M channel to: #rcon