discord-php / DiscordPHP

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

Add $member->kick() and improve $member->ban() #1147

Closed key2peace closed 1 year ago

key2peace commented 1 year ago

Add $member->kick(optional audit log reason), with permission checks

SQKo commented 1 year ago

There is already $guild->members->delete($member, $reason), if you insist to add, please just call the same function after getting the guild from cache instead of duplicating whole codes.