Mute User In a Room
    • Dark
      Light
    • PDF

    Mute User In a Room

    • Dark
      Light
    • PDF

    Article summary

    Mute a user in a room.

    Method

    Requires Auth

    Permission

    muteUserInRoom

    Yes

    mute-user

    Payload parameters

    Argument

    Example

    Required

    Description

    data

    { "rid":"siyr2oWQJBjQjhLwr",

    "username": "test.funke"

    }

    Required

    An object containing the room ID and username of the user to be muted.

    Example call

    {
        "msg": "method",
        "method": "muteUserInRoom",
        "id": "2",
        "params": [
            {
            "rid": "siyr2oWQJBjQjhLwr",
            "username": "test.fun"
            }
        ]
    }

    Example response

    Success

    {
        "msg": "result",
        "id": "2",
        "result": true
    }

    Errors

    • User not in the room: This occurs when the username doesn't belong to any user in the room.

    • No Permission: This occurs when the authenticated user does not have the mute-user permission.

    {
        "msg": "result",
        "id": "2",
        "error": {
            "isClientSafe": true,
            "error": "error-user-not-in-room",
            "reason": "User is not in this room",
            "details": {
                "method": "muteUserInRoom"
            },
            "message": "User is not in this room [error-user-not-in-room]",
            "errorType": "Meteor.Error"
        }
    }
    {
        "msg": "result",
        "id": "2",
        "error": {
            "isClientSafe": true,
            "error": "error-not-allowed",
            "reason": "Not allowed",
            "details": {
                "method": "muteUserInRoom"
            },
            "message": "Not allowed [error-not-allowed]",
            "errorType": "Meteor.Error"
        }
    }
    


    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.
    ESC

    Eddy AI, facilitating knowledge discovery through conversational intelligence