You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having a GetFirstMessageAsync() and GetLastMessageAsync() would greatly reduce the complexity of the above snippet.
The text was updated successfully, but these errors were encountered:
Rekkonnect
changed the title
Extension methods on IMessageChannel to get the first and last message of the channel as an IMessage
Extension methods on IMessageChannel to get the first and last message of the channel as an IMessage
Jan 2, 2021
I think it's not really that common (especially the former method) and you can always make an extension method, if it's used commonly enough throughout your code.
I've already made those extension methods in my code, but would it really hurt to have them in the API itself? Besides, they don't add any clutter, as they're only extension methods, and can only be consumed.
I believe that this functionality is relatively common among several bots, and having to do
quickly becomes confusing to read.
Having a
GetFirstMessageAsync()
andGetLastMessageAsync()
would greatly reduce the complexity of the above snippet.The text was updated successfully, but these errors were encountered: