aoijs / aoi.js

aoi.js - The most advanced string-based package to create a Discord Bot fast and powerful.
https://aoi.js.org
Apache License 2.0
325 stars 128 forks source link

Bug: Button, SelectMenu Parser (v6.8.0) #609

Open lawerth opened 1 month ago

lawerth commented 1 month ago

Bug Type

Function

Bugged Function

$sendMessage[Hello!
 {actionRow:

  {button:Hello!:secondary:customID:false:$get[emoji]}
 }
]

$let[emoji;<:bitcoin:1064159459460517958>]

Version of aoi.js

v6.7.1

Version of Node.js

v21.4.0 (Current)

Excepted Output

The button in the code was supposed to work normally. But in the new version (v6.8.0) this code no longer works. It gives an "Invalid emoji" error. Please, correct it.

Relevant log output

No response

Code of Conduct

atlasfyber commented 1 month ago

As temporary solution, you can just add the emoji ID.

{button:Hello!:secondary:customID:false:1064159459460517958}

Or you can also use your $get function for this, if needed.

Faf4a commented 1 week ago

looking into this, does this still occur in 6.8?

atlasfyber commented 1 week ago

looking into this, does this still occur in 6.8?

Yup!