WoW:API GetRealmName: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
m (Removed "Details" section. It's not relevant to this function.)
 
m (Move page script moved page API GetRealmName to API GetRealmName without leaving a redirect)
 
(No difference)

Latest revision as of 04:46, 15 August 2023

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