Skip to content

Refactor the MessageAwaiter plugin #60

@huan

Description

@huan

The MessageAwaiter currently added a global Wechaty interface waitForMessage() which polluted the global Wechaty environment.

declare module 'wechaty' {
class Wechaty {
waitForMessage(args: MessageAwaiterArgs): Promise<Message>
}
}

Need to remove the above code by refactoring this plugin. Maybe it will be changed to a helper function.

CC: @ssine

Related to PR

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions