Skip to content

Set-TwitterMutedUser

SYNOPSIS

Allows the authenticating user to mute or unmute another user.

SYNTAX

Mute (Default)

Set-TwitterMutedUser -User <User> [-Mute] [<CommonParameters>]

Unmute

Set-TwitterMutedUser -Unmute -User <User> [<CommonParameters>]

DESCRIPTION

Allows the authenticating user to mute or unmute another user.

EXAMPLES

Example 1

PS > Get-TwitterUser -UserName BluebirdPS | Set-TwitterMutedUser

Mutes the specified user.

Example 2

PS > Get-TwitterUser -UserName BluebirdPS | Set-TwitterMutedUser -Unmute

Unmutes the specified user.

NOTE: If you are not muting the user, an attempt to unmute will result in an error.

PARAMETERS

-User

The user object, returned by Get-TwitterUser, to be muted or unmuted.

Type: User
Parameter Sets: UnmuteByUser, MuteByUser
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-Mute

Mute the specified user.

Type: SwitchParameter
Parameter Sets: MuteByUserName, MuteByUser
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Unmute

Unmute the specified user.

Type: SwitchParameter
Parameter Sets: UnmuteByUserName, UnmuteByUser
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

BluebirdPS.APIV2.UserInfo.User

OUTPUTS

None

NOTES

Online Version

Get-TwitterMutedUser

Get-TwitterUser

Api Reference - POST mutes/users/create

Api Reference - POST mutes/users/destroy