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) {
  final MineralClient client = ioc.use<MineralClient>();
  return client.users.cache.get(params[optionName]);
}