discord-php / DiscordPHP

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

Add Part::getDiscord() #1159

Closed SQKo closed 1 year ago

SQKo commented 1 year ago

Since v10 has separated its concern from referencing Http & Factory client to just one Discord in constructor, we can add this getter method to be used by public.

To be noted It is not good idea to use mutator as this is not part of attributes, and the Discord property must not be changed.

It has been tested and can be merged once approved.