iBlitzkriegi / Vixio

Vixio, The Skript Addon made to fit all of your Discord needs.
http://www.vixio.space
40 stars 28 forks source link

Raw embeds #35

Closed ghost closed 6 years ago

ghost commented 6 years ago

I would like to have a feature to send and edit raw json embeds to have more control over what they do.

iBlitzkriegi commented 6 years ago

I'm not sure what you mean.

ghost commented 6 years ago

More precise would probably be "raw json messages". I would just like to be able to send raw json messages like this one https://hastebin.com/ukafixatum.json

HYPExMon5ter commented 6 years ago

But why? You can edit all that with vixio already

ghost commented 6 years ago

Would just be a compact alternative to the single editing effects

HYPExMon5ter commented 6 years ago

Compact? Looks a lot longer to me

iBlitzkriegi commented 6 years ago

In vixio two its done like this now:

discord command embed:
    description: Get a example embed.
    prefixes: {@prefix}
    bots: {@bot}
    usage: embed
    trigger:
        create embed:
            set the title of embed to title with text "Title"
            set the description of embed to "Description%nl%The title leads to the URL, if given"
            set the author info of the embed to author named "Author name (Can point to URL)" with no url and icon "https://cdn.discordapp.com/attachments/236641445363056651/405167105760296971/Logov2.jpg"
            set the colour of the embed to Cyan
            add split field named "Field Name" with value "Colour sets %nl%< that" to embed
            add split field named "Field Name" with value "Color is a java Color%nl%Not a string" to embed
            add split field named "Field Name" with value "Field value" to embed
            add field named "Non-inline field name" with value "The number of fields that can be shown on the same row is limited to 3, but is limited to 2 when an image is included" to embed
            set the image of embed to "https://media.discordapp.net/attachments/237757030708936714/390520880242884608/8xAac.png?width=508&height=522"
            set the thumbnail of embed to "https://cdn.discordapp.com/attachments/236641445363056651/405167105760296971/Logov2.jpg"
            set the footer of embed to footer with text "Footer text" and icon "https://cdn.discordapp.com/attachments/236641445363056651/405167105760296971/Logov2.jpg"
            set the timestamp of embed to now

Inside of a create embed scope, which I think is plenty compact enough. You just start the scope which creates a new embed and then reference it as the embed all throughout the scope.

Pikachu920 commented 6 years ago

JDA does not support this and it is a bad idea

ghost commented 6 years ago

Didn't know it doesn't support it. Otherwise it would also be useful to be able to use tools like https://embedbuilder.nadekobot.me/

Blueyescat commented 6 years ago

It is possible to make JSON to Vixio embed converter in Skript ^^