Codename LogoCodename Logo

funkin.backend.utils.DUser

APIWiki

Static methods

View in GitHub

staticinit(userData:Star<DiscordUser>):DUser

View in GitHub

staticinitRaw(req:RawConstPointer<DiscordUser>):DUser

Variables

avatar:String

The user's avatar filename

bot:Bool

If the user is a bot or not

discriminator:Int

The #number from before discord changed to usernames only, if the user has changed to a username them its just a 0

flags:Int

Idk check discord docs

globalName:String

The user's display name

handle:String

The username + discriminator if they have it

premiumType:NitroType

If the user has nitro

userId:String

The user id, aka 860561967383445535

username:String

The user's username

Methods

View in GitHub

@:value({ size : 256 })getAvatar(size:Int = 256):BitmapData

Calling this function gets the BitmapData of the user