makara-filip / ts-messenger-api

The unofficial API for FB Messenger communication
MIT License
51 stars 13 forks source link

changeThreadEmoji doesn't throw error when using invalid emoji #4

Closed ghost closed 3 years ago

ghost commented 3 years ago

Describe the bug As title says.

To Reproduce Part of your code causing the issue or the steps to reproduce the behavior:

    session.changeThreadEmoji('valid thread id here', 'something that is not emoji here').then(() => {
        console.log('success!');
    }).catch(err => {
        console.error(err);
    });

Expected behavior An error should be thrown

Actual behavior success is present

Environment (please complete the following information):