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

Private Text Event not firing #19

Open
MrDj200 opened this issue Mar 19, 2018 · 3 comments
Open

Private Text Event not firing #19

MrDj200 opened this issue Mar 19, 2018 · 3 comments
Labels

Comments

@MrDj200
Copy link

MrDj200 commented Mar 19, 2018

Hello there,

I can't get the PrivateTextNotification to work.
I ran the line

await TSClient.RegisterTextPrivateNotification();

and subbed to the TextMessage event:

TSClient.Subscribe<TextMessage>(data =>
{
	CommandStuff.CommandManager.ExecuteCommand(data);
});

But I still get the Error of Insufficient client Permission(yes, I am Admin, and I can text my old Java Bot)
The Permission I'm apparently missing is i_client_needed_private_textmessage_power.

Do you happen to know the reason for the fail?
Really hope to get some help over here :D

-Dj

@nikeee
Copy link
Owner

nikeee commented Mar 19, 2018

I'll need some time to get a decent test setup.

@MrDj200
Copy link
Author

MrDj200 commented Mar 20, 2018

I got a "kinda" fix.
When the Bot messages the Client first, it works, but you cant message it before that..

Example

Sry for the Germanized pic

@nikeee nikeee added the bug label Apr 9, 2018
@asunayuukii
Copy link

asunayuukii commented Aug 23, 2018

i know why. If the bot write a message he will think it is a command and will do something with his own message. it will be a endless loop. u musst add these:
unbenan2nt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants