Host
public enum Host: Int
The host the bot is running on.
-
Used when the bot is running on ‘stackoverflow.com’
Declaration
Swift
case stackOverflow
-
Used when the bot is running on ‘stackexchange.com’
Declaration
Swift
case stackExchange
-
Used when the bot is running on ‘meta.stackexchange.com’
Declaration
Swift
case metaStackExchange
-
Returns the domain for the specified host
Declaration
Swift
public var domain: String
-
Returns the chat domain for the specified host
Declaration
Swift
public var chatDomain: String
-
Returns the domain URL for the host
Declaration
Swift
public var url: URL
-
Returns the URL for the chat host
Declaration
Swift
public var chatHostURL: URL