Add parameter retrieval methods to bot library
This commit is contained in:
parent
e4ff11c005
commit
96797a17bc
5 changed files with 78 additions and 0 deletions
|
@ -22,6 +22,20 @@
|
|||
*/
|
||||
public abstract static function execute(Bot $bot, array $parameters=[]): mixed;
|
||||
|
||||
/**
|
||||
* Retrieves a list of required parameters for a specific operation.
|
||||
*
|
||||
* @return array|null An array of required parameters.
|
||||
*/
|
||||
public abstract static function getRequiredParameters(): ?array;
|
||||
|
||||
/**
|
||||
* Retrieves the optional parameters for a request.
|
||||
*
|
||||
* @return array|null An array of optional parameters.
|
||||
*/
|
||||
public abstract static function getOptionalParameters(): ?array;
|
||||
|
||||
/**
|
||||
* Builds a cURL handle for making a POST request to a bot's endpoint.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue