BlackWolfWoof/yagpdb-cc

Database/reset: dbresetkey: Cannot give argument to non-function $dbcount

l-zeuch opened this issue · 3 comments

As I'm not sure what the intention behind that code was, I'm hesitant to open a pull request.
However, this error has been showing up for several users, including me. See the screenshot for a full break down.

image of error

Relevant code:

{{editMessage nil .ExecData.id (cembed "author" (sdict "icon_url" "https://cdn.discordapp.com/emojis/714051544265392229.gif" "name" (print "This might take a while... (" (sub .ExecData.all ($dbcount .ExecData.key)) "/" .ExecData.all ")")) "description" "Please wait until the command is done running.\n**Do not run dbresetkey again until it is finished!**\nYou will be pinged if the reset is done :)" "color" 0xFAA61A)}}

As we can see, it is not an issue on user's end, rather an issue on the code side -- perhaps a missing or slipped parenthesis.

For me it works perfectly fine. I have no idea where the error might be. Any idea what could have happened?

I mean i know it has to do with .ExecData.key but that is just ($args.Get 0)

Did I ever fix this?
Note to myself check if it is fixed