Skip to content

Removing channel members doesn't send a system message #163

@jcmartel-spordle

Description

@jcmartel-spordle

When adding users to a channel, you can pass on the option to also send a system message to the channel (I use it to notifiy channel members with a message like " has been added to this channel". The documentation cover this pretty well. The documentation also states that this is possible when removing members from a channel.

Image

However, the removeMembers function in Channel.php only accepts an array of userIds, and nothing else. Comparing it to addMembers, it seems like it's missing a second parameter $options to be able to pass on options such as a system message.

Image

Would it be possible to add the $options optional parameter in the removeMembers function, so that it behaves similarly to the addMembers function?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions