external help file: Builtin-help.xml Module Name: Builtin online version: schema: 2.0.0


Add-CommandPermission

SYNOPSIS

Adds a permission to a command.

SYNTAX

Add-CommandPermission -Bot <Object> [-Command] <String> [-Permission] <String> [<CommonParameters>]

DESCRIPTION

{{ Fill in the Description }}

EXAMPLES

EXAMPLE 1

!add-commandpermission --command myplugin:mycommand --permission myplugin:read

Add the permission [myplugin:read] to the [myplugin:mycommand] command.

PARAMETERS

-Bot

{{ Fill Bot Description }}

Type: Object
Parameter Sets: (All)
Aliases:

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

-Command

The fully qualified command name [pluginname:commandname] to add the permission to.

Type: String
Parameter Sets: (All)
Aliases: Name

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

-Permission

The fully qualified permission name [pluginname:permissionname] to add to the command.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 2
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

OUTPUTS

NOTES