import { APIUser, UserFlags as APIUserFlags, LocaleString, UserAvatarFormat, UserBannerFormat, UserPremiumType } from "discord-api-types/v10"; import BitField from "../basic/BitField.mjs"; /** A user */ export declare class User { /** The user's id */ id: string; /** The user's username, not unique across the platform */ username: string; /** The user's 4-digit discord-tag */ discriminator: string; /** The user's avatar hash */ avatar: string | null; /** The user's banner color encoded as an integer representation of hexadecimal color code */ accentColor?: number | null; /** The user's banner hash */ banner?: string | null; /** Whether the user belongs to an OAuth2 application */ bot?: boolean; /** The user's email (not available on all user objects) */ email?: string | null; /** The flags on a user's account */ flags?: UserFlags; /** The user's chosen language option */ locale?: LocaleString; /** Whether the user has two factor enabled on their account (not available on all user objects) */ mfaEnabled?: boolean; /** The type of Nitro subscription on a user's account */ premiumType?: UserPremiumType; /** The public flags on a user's account */ publicFlags?: UserFlags; /** Whether the user is an Official Discord System user (part of the urgent message system) */ system?: boolean; /** Whether the email on this account has been verified (not available on all user objects) */ verified?: boolean; constructor(user: APIUser); /** The date that the user was created */ get createdAt(): Date; /** The avatar url for the user */ avatarURL(config?: { extension: UserAvatarFormat; size: number; }): string | null; /** The url for the user's banner */ bannerURL(config?: { extension: UserBannerFormat; size: number; }): string | null; /** The url for the user's default avatar */ get defaultAvatarURL(): string; /** The url for the user's current display avatar */ displayAvatarURL(config?: { extension: UserAvatarFormat; size: number; }): string; } export declare class UserFlags extends BitField { constructor(flags: number); /** Whether the user has a flag */ has(flag: bigint | APIUserFlags): boolean; /** Weather the user even has any flags */ isEmpty(): boolean; } export default User;