WoW API: GetRealmName

From AddOn Studio
Jump to navigation Jump to search

WoW API < GetRealmName

Returns the name of the realm (aka server) the player is currently on.

realmName = GetRealmName()

Arguments[edit]

None

Returns[edit]

realmName
String - The name of the realm.

Example[edit]

local realmName = GetRealmName()
DEFAULT_CHAT_FRAME:AddMessage("You are currently on realm: " .. realmName)
> You are currently on realm: Gorgonnash