TwurpleAuthenticationGetting dataExamplesFAQMigration

extractUserName

Definition

extractUserName(user)

Extracts the username from an argument that is possibly an object containing that name.

ParameterTypeRequiredDefaultDescription
user
UserNameResolvable

A user name or a user or channel object.

Aliased type: string | UserNameResolveableType

none

The username or object.

Return type: string