Skip to content

Unable to use loadEmojis hook to modify emojis definition #3700

@deleolajide

Description

@deleolajide

Describe the bug

Image

To Reproduce
Steps to reproduce the behaviour:

Use

api.listen.on('loadEmojis', (context, json) => {

});

to extend emojis with stickers that have URLs and have no cp attribute, this exception occurs

Expected behavior
Ignore the null value of cp

Screenshots
see above

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions