User
public struct User
User Type
-
Parent class
Declaration
Swift
public internal(set) weak var sword: Sword?
-
Avatar hash
Declaration
Swift
public let avatar: String?
-
Whether or not this user is a bot
Declaration
Swift
public let isBot: Bool?
-
Discriminator of user
Declaration
Swift
public let discriminator: String?
-
Email of user (will probably be empty forever)
Declaration
Swift
public let email: String?
-
ID of user
Declaration
Swift
public let id: Snowflake
-
Whether of not user has mfa enabled (will probably be empty forever)
Declaration
Swift
public let isMfaEnabled: Bool?
-
Username of user
Declaration
Swift
public let username: String?
-
Whether user is verified or not
Declaration
Swift
public let isVerified: Bool?
-
Gets the link of the user’s avatar
Declaration
Swift
public func avatarUrl(format: FileExtension = .png) -> String?
-
Gets DM for user
Declaration
Swift
public func getDM(then completion: @escaping (DM?, RequestError?) -> ())