Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question/request expose platform file links to discord content #50

Open
supersaiyansubtlety opened this issue Jul 23, 2024 · 2 comments
Labels

Comments

@supersaiyansubtlety
Copy link

I'd like to put links to the files uploaded to each platform in discord.content rather than using embeds, since that gives me more control over the formatting.

Are these links exposed? I couldn't find where.
If not, could this be added?

@modmuss50
Copy link
Owner

This is similar to #28.

I really want to provide a way to fully customise the discord content but I am struggling to think of an ergomic way of doing it. Do you have any suggestions?

@supersaiyansubtlety
Copy link
Author

I think having a couple presets like you suggested in #28 would be good, paired with ways to override the content and/or the embed(s) that provide access to the links.

As for exposing the links, would setting the content/embeds like this make sense?

discord.supplyContent(links -> {
    // return String with links
})

discord.supplyEmbeds(links -> {
    // return Iterable<DiscordAPI.Embed> with links
})

where links has a getter for each link (and returns Optional/Provider/@Nullable)

IDK a lot about making groovy DSLs, so IDK if there's a nicer way to provide the links when they're ready.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants