Skip to main content
Module

x/smallbot_matrix/mod.ts>SmallBot#getUserProfile

Small Matrix Little Bot for Deno
Latest
method SmallBot.prototype.getUserProfile
Re-export
import { SmallBot } from "https://deno.land/x/smallbot_matrix@0.1.2/mod.ts";

Returns MatrixUserProfileResponse containing the current display name of the userId

const profile = await client.getUserProfile(event.sender);

Parameters

userId: string

ID of the user to retrieve the profile