Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Command to send text to discord #182

Open
DBTDerpbox opened this issue Jan 28, 2022 · 0 comments
Open

Command to send text to discord #182

DBTDerpbox opened this issue Jan 28, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@DBTDerpbox
Copy link

DBTDerpbox commented Jan 28, 2022

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!"

@DBTDerpbox DBTDerpbox added the enhancement New feature or request label Jan 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant