DiSkyOrg / DiSky

The best Skript add-on for Discord management! Slash commands, interaction, components, modal and much more available!
https://disky.me/
Apache License 2.0
42 stars 12 forks source link

Disky is Posting Embeds to Wrong Channels #214

Closed Dsa-123 closed 3 weeks ago

Dsa-123 commented 2 months ago

Versions

Description

image I don't know why this happen but I have recently updated my Disky version and it seems to be causing problems This is my code:

function discordPostLog(msg: string, type: string, p: player):

    if {_type} is "link":

        make embed:
            set title of embed to "Link Logs"
            set author of embed to "%{_p}%"
            set description of embed to {_msg}
            set author icon of embed to "https://minotar.net/helm/%{_p}%.png"
            set embed color of the embed to green
            set timestamp of embed to now
            set footer of embed to "AFKMining"

        post last embed to channel with id "1244341058037350471"

    else if {_type} is "item-stat":

        make embed:
            set title of embed to "Stat Logs"
            set author of embed to "%{_p}%"
            add {_msg}, "New Balance: %{balance::%{_p}'s uuid%}%", "Current Tool Level: %{toolLevel::%{_p}'s uuid%}%", "Current Prestige: %{prestige::%{_p}'s uuid%} ? 0%", "Current Grade: %{grade::%{_p}'s uuid%} ? 0%" and "Multipliers: **XP** %getXPMultiplier({_p})%x ||-----|| **Money** %getMoneyMultiplier({_p})%x" to {_l::*}
            set description of embed to join {_l::*} with nl
            set author icon of embed to "https://minotar.net/helm/%{_p}%.png"
            set embed color of the embed to black
            set timestamp of embed to now
            set footer of embed to "AFKMining"

        post last embed to channel with id "1244341124462674075"

Acknowledgment

EquipableMC commented 2 months ago

Does it happen every time or just at random?

Dsa-123 commented 2 months ago

Not everytime but it happens usually

ItsTheSky commented 2 months ago

Can you try using the "new" embed variable thing? (c.f. of https://disky.me/docs/messages/simple-messages/#simple-embed-message)