DevPortal

normalname in key2name ?

Home Forums Developing with SmartBots HTTP API normalname in key2name ?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #372
    Heyter Nitely
    Participant

    Hey,

    I just noticed after getting an error in one of my script that https://www.mysmartbots.com/dev/docs/HTTP_API/Bot_Commands/key2name seems to not return any normalname argument (which is true according to the documentation), it is intended ? Cause there is the request_case option on the function.

    In this case, it will be nice for key2name to return normalname with the argument request_case, we won’t need to add any additionnal condition to be sure to get the exact name.
    Code

    Thank you

    #373
    Glaznah Gassner
    Keymaster

    Hey Heyter,

    The key2name API returns normalized name by default (the case depends on SL though). We’ve added the normalname output value to make the key2name compatible with name2key.

    Please check, is this what you mean?

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.