Skip to content

Commit

Permalink
Updated EnableCommand and DisableCommand examples (#18)
Browse files Browse the repository at this point in the history
Updated the examples that were inaccurate, and added comments to be more clear.
  • Loading branch information
RapidRabbit-11485 authored Dec 9, 2023
1 parent b928cb5 commit 803ba25
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions streamerbot/3.api/3.csharp/core/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ Enable an existing command
void EnableCommand(string id);
```
```csharp [Example]
// Enable the "shoutout" command
CPH.EnableCommand("shoutout");
// To retrieve the Id of the command, right click on the command on the Commands tab and select 'Copy Command Id'
// Id remains the same on import/export
// This would enable the command with Id '17b06f6a-2f25-4fd0-a0e6-48aacf5cc782' replace this with your own command Id
CPH.EnableCommand("17b06f6a-2f25-4fd0-a0e6-48aacf5cc782");
```
::

Expand All @@ -23,8 +25,10 @@ Disable an existing command
void DisableCommand(string id);
```
```csharp [Example]
// Disable the "shoutout" command
CPH.DisableCommand("shoutout");
// To retrieve the Id of the command, right click on the command on the Commands tab and select 'Copy Command Id'
// Id remains the same on import/export
// This would disable the command with Id '17b06f6a-2f25-4fd0-a0e6-48aacf5cc782' replace this with your own command Id
CPH.DisableCommand("17b06f6a-2f25-4fd0-a0e6-48aacf5cc782");
```
::

Expand Down

0 comments on commit 803ba25

Please sign in to comment.