Skip to content

ClientUser

Extends

Constructors

new ClientUser(client, data, application)

1
new ClientUser(
2
client: UsingClient,
3
data: APIUser,
4
application: Pick<APIApplication, "id" | "flags">): ClientUser

Parameters

ParameterType
clientUsingClient
dataAPIUser
applicationPick<APIApplication, "id" | "flags">

Returns

ClientUser

Overrides

User.constructor

Source

seyfert/src/structures/ClientUser.ts:7

Properties

PropertyModifierTypeOverridesInherited from
accentColorpublicundefined | null | numberUser.accentColorUser.accentColor
applicationpublicPick<APIApplication, "id" | "flags">--
avatarpublicnull | stringUser.avatarUser.avatar
avatarDecorationpublicundefined | null | stringUser.avatarDecorationUser.avatarDecoration
bannerpublicundefined | null | stringUser.bannerUser.banner
botpublicbooleanUser.botUser.bot
clientreadonlyUsingClientUser.clientUser.client
discriminatorpublicstringUser.discriminatorUser.discriminator
emailpublicundefined | null | stringUser.emailUser.email
flagspublicundefined | UserFlagsUser.flagsUser.flags
globalNamepublicnull | stringUser.globalNameUser.globalName
idpublicstringUser.idUser.id
localepublicundefined | stringUser.localeUser.locale
mfaEnabledpublicundefined | booleanUser.mfaEnabledUser.mfaEnabled
premiumTypepublicundefined | UserPremiumTypeUser.premiumTypeUser.premiumType
publicFlagspublicundefined | UserFlagsUser.publicFlagsUser.publicFlags
systempublicundefined | booleanUser.systemUser.system
usernamepublicstringUser.usernameUser.username
verifiedpublicundefined | booleanUser.verifiedUser.verified

Accessors

createdAt

1
get createdAt(): Date

createdAt gets the creation Date instace of the current object.

Returns

Date

Source

seyfert/src/structures/extra/DiscordBase.ts:27


createdTimestamp

1
get createdTimestamp(): number

Create a timestamp for the current object.

Returns

number

Source

seyfert/src/structures/extra/DiscordBase.ts:20


name

1
get name(): string

Returns

string

Source

seyfert/src/structures/User.ts:14


tag

1
get tag(): string

Returns

string

Source

seyfert/src/structures/User.ts:10

Methods

avatarDecorationURL()

1
avatarDecorationURL(options?: CDNUrlOptions): undefined | string

Parameters

ParameterType
options?CDNUrlOptions

Returns

undefined | string

Inherited from

User.avatarDecorationURL

Source

seyfert/src/structures/User.ts:43


avatarURL()

1
avatarURL(options?: CDNUrlOptions): string

Parameters

ParameterType
options?CDNUrlOptions

Returns

string

Inherited from

User.avatarURL

Source

seyfert/src/structures/User.ts:36


bannerURL()

1
bannerURL(options?: CDNUrlOptions): undefined | string

Parameters

ParameterType
options?CDNUrlOptions

Returns

undefined | string

Inherited from

User.bannerURL

Source

seyfert/src/structures/User.ts:48


dm()

1
dm(force: boolean): Promise<DMChannel>

Open a DM with the user

Parameters

ParameterTypeDefault value
forcebooleanfalse

Returns

Promise<DMChannel>

Inherited from

User.dm

Source

seyfert/src/structures/User.ts:28


edit()

1
edit(body: RESTPatchAPICurrentUserJSONBody): Promise<ClientUser>

Parameters

ParameterType
bodyRESTPatchAPICurrentUserJSONBody

Returns

Promise<ClientUser>

Source

seyfert/src/structures/ClientUser.ts:20


fetch()

1
fetch(): Promise<ClientUser>

Fetch user

Returns

Promise<ClientUser>

Overrides

User.fetch

Source

seyfert/src/structures/ClientUser.ts:15


presence()

1
presence(): ReturnCache<undefined | Omit<GatewayPresenceUpdate, "user"> & Object & Object>

Returns

ReturnCache<undefined | Omit<GatewayPresenceUpdate, "user"> & Object & Object>

Inherited from

User.presence

Source

seyfert/src/structures/User.ts:53


toString()

1
toString(): string

Returns

string

Inherited from

User.toString

Source

seyfert/src/structures/User.ts:57


write()

1
write(body: Omit<RESTPostAPIChannelMessageJSONBody, "components" | "embeds" | "poll"> & SendResolverProps): Promise<Message>

Parameters

ParameterType
bodyOmit<RESTPostAPIChannelMessageJSONBody, "components" | "embeds" | "poll"> & SendResolverProps

Returns

Promise<Message>

Inherited from

User.write

Source

seyfert/src/structures/User.ts:32