MineralClient.from constructor

MineralClient.from({
  1. required dynamic payload,
})

Implementation

factory MineralClient.from({ required dynamic payload }) {
  return MineralClient(
    User.from(payload['user']),
    GuildManager(),
    DmChannelManager(),
    UserManager(),
    payload['session_id'],
    Application.from(payload['application']),
    ioc.use<ShardManager>().intents,
    CommandService(null),
  );
}