Skip to content

Create @types for TypeScript #8

Description

@WaifuForLaifu

Hi, I really like this addon, but each time when I do anything with it, TypeScript compiler yells at me that this package does not support any typings, no ES6 support, no anything. Because of that, I need to make my event listeners like:

reactionListener.on('reacted', (event: {msg: Message, emoji: { name: string, id: string | null, animated?: boolean}, userID: string}) => {
            //console.log(event);
            msg.channel.createMessage('You reacted with: ' + event.emoji.name);
});

That makes good rather ugly and chaotic. I would love to see official support for typings, at least at basic level.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions