discord-php / DiscordPHP

An API to interact with the popular messaging app Discord
MIT License
985 stars 236 forks source link

fix messages thread stored as normal channel, fix ReactionRepository::delete() typehint #993

Closed SQKo closed 1 year ago

SQKo commented 1 year ago

It was reported that threads are not properly handled, apparently messages events mistakenly treat threads as normal channels.

Untested.

SQKo commented 1 year ago

Also changing type hinting for ReactionRepository::delete($part) argument to Reaction, since people are confused trying to put MessageReaction in it.

SQKo commented 1 year ago

This also includes fix for $threads->freshen()

Need backport to: