Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SlackMessagePostedListener Not Working #298

Open
roxanne-thiri opened this issue Jan 9, 2022 · 0 comments
Open

SlackMessagePostedListener Not Working #298

roxanne-thiri opened this issue Jan 9, 2022 · 0 comments

Comments

@roxanne-thiri
Copy link

Hello, can anyone help me for using SlackMessagePostedListener?
Previous RTM API version was working well to handle SlackMessagePostedListener.
However, the new Granular Scope with WebSocket Mode won't be listening any event that is created. This below part is not able to reach no matter how I put the scopes for the bot and tried to subscribe the Event API as well.

If you have any idea, please kindly help me.

		SlackMessagePostedListener messagePostedListener = new SlackMessagePostedListener()
	    {
			@Override
			public void onEvent(SlackMessagePosted event, SlackSession session) {
				// This part is not able to reach no matter how I put the scopes for the bot and tried to subscribe the Event API as well
				System.out.println(event.getChannel().getName());
			}
	    };
		session.addMessagePostedListener(messagePostedListener);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant