-
Notifications
You must be signed in to change notification settings - Fork 61
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
Added ParseRawIrcMessage to TwitchClient.cs to access IrcParser #217
Conversation
…ternal parsing of IRC messages using the internal IrcParser class.
There actually is a method for that the naming is just awful. |
The method also triggers the events, which is not desired in my case.
This is already implemented for the most events like: TwitchLib.Client/TwitchLib.Client/Exceptions/FailureToReceiveJoinConfirmationException.cs Lines 24 to 28 in 0442183
TwitchLib.Client/TwitchLib.Client.Models/GiftedSubscription.cs Lines 182 to 232 in 0442183
TwitchLib.Client/TwitchLib.Client.Models/ChatMessage.cs Lines 329 to 387 in 0442183
TwitchLib.Client/TwitchLib.Client.Models/SentMessage.cs Lines 51 to 71 in 0442183
If this path is taken, I can gladly adjust the pull request. |
In that case I understood your requirement wrong. My bad. |
if this PR #216 gets accepted and goes online, the |
I don't think this is a right change. Instead, we could simply make |
This can be closed in favour of #247 once it is merged - we can now publicly expose (now static) |
superseded by #247 |
I want to test my wrapper for TwitchLib, and in order to do so, I need to manually create events that require an IrcMessage as a constructor parameter. (Announcement, CommunitySubscription, ContinuedGiftedSubscription) Unfortunately, accessing the IrcParser externally was not possible due to its internal class setting. Therefore, the "ParseRawIrcMessage" method was added to allow external parsing of IRC messages using the IrcParser.
An alternative approach would be to create an additional constructor that includes all necessary properties of the class as parameters.
Happy to discuss this request.