Also, this is probably the best way to do what you want.
- Create a discord bot
- Make bot listen for messages/command
- On message/command open a rcon connection to your server
- Send rcon command to server from the bot
- Listen for rcon command on server
- On rcon message, print whatever to chat