Skip to content

Commit

Permalink
refactor(RCON): add description for RegisterCommand methods
Browse files Browse the repository at this point in the history
fix #91
  • Loading branch information
FlashHit committed Dec 16, 2021
1 parent 4b456df commit bf6888a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions content/vext/ref/server/library/rcon.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ title: RCON
| ---- | ---- | ----------- |
| **command** | string | |
| **flags** | [RemoteCommandFlag](/vext/ref/shared/type/remotecommandflag) | |
| **callback** | callable | |
| **callback** | callable | A callback in the form `function(command: string, args: string{}, loggedIn: bool): string{}`. |

#### Returns

Expand All @@ -80,8 +80,8 @@ title: RCON
| ---- | ---- | ----------- |
| **command** | string | |
| **flags** | [RemoteCommandFlag](/vext/ref/shared/type/remotecommandflag) | |
| **context** | any | |
| **callback** | callable | |
| **context** | any | A context value to pass to the callback. |
| **callback** | callable | A callback in the form `function(context: any, command: string, args: string{}, loggedIn: bool): string{}`. |

#### Returns

Expand Down
3 changes: 3 additions & 0 deletions types/server/library/RCON.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ methods:
type: RemoteCommandFlag
callback:
type: callable
description: "A callback in the form `function(command: string, args: string{}, loggedIn: bool): string{}`."
returns:
type: int
-
Expand All @@ -41,8 +42,10 @@ methods:
type: RemoteCommandFlag
context:
type: any
description: A context value to pass to the callback.
callback:
type: callable
description: "A callback in the form `function(context: any, command: string, args: string{}, loggedIn: bool): string{}`."
returns:
type: int
-
Expand Down

0 comments on commit bf6888a

Please sign in to comment.