Skip to main content

Method

client.users.me(args: GetSelfParameters): Promise<GetSelfResponse>

Parameters

auth
string
Bearer token for authentication. If not provided, the client-level auth is used.

Response

Returns a User object representing the bot user.
object
string
Always "user".
id
string
The ID of the bot user.
type
string
Always "bot".
bot
object
Details about the bot, including owner information and workspace details.
name
string | null
The name of the bot.
avatar_url
string | null
The avatar URL of the bot.

Example

const bot = await client.users.me({})

console.log(bot.name)
console.log(bot.bot)

Build docs developers (and LLMs) love