getUser method

User? getUser(
  1. String optionName
)

Returns an instance of User or null if the command has the designed option

Example :

User? user = interaction.getUser('option_name');

Implementation

User? getUser (String optionName) {
  return client.users.cache.get(params[optionName]);
}