thecatcore / Fabric---Discord-Link

MIT License
75 stars 31 forks source link

Command to send text to discord #182

Open DBTDerpbox opened 2 years ago

DBTDerpbox commented 2 years ago

Is your feature request related to a problem? In my server, users are able to opt-in to a Join Ping role, which the Mod pings them whenever anyone joins, which works well enough until someone starts relog spamming to flood pings, I was going to write a datapack that sends a message to the discord channel if someone joined without spamming relogs, but this would be very out of place with /tellraw @a in-game, would also be useful for displaying certain things like who won a match in the channel when the Minecraft handles it differently

The suggestion A command that requires OP that sends text to the discord channel FDL is linked with, example syntax could be /tellrawdiscord "Hello World!", and it would only be visible to the discord channel, not from Minecraft. It would also respect tellraw syntax, for example /tellrawdiscord ["",{"selector":"@a[tag=Winner]"}," Has won!"] would output Steve Has won!

Alternatives I doubt this is easier, but if it somehow is, a selector with tellraw would also work, something like /tellraw @a[type=discord] "Hello World!"