WoW API: GetRealmName

WoW API < GetRealmName

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

realmName = GetRealmName()

ArgumentsEdit

None

ReturnsEdit

realmName
String - The name of the realm.

ExampleEdit

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