WoW:API GetBuildVersion: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(use removedapi template)
m (Move page script moved page API GetBuildVersion to API GetBuildVersion without leaving a redirect)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{removedapi|1.3.0|It was replaced by [[API GetBuildInfo|GetBuildInfo]].}}
{{wowapi|removed=1.3.0|replace=Replaced by {{api|GetBuildInfo}}}}
 
<center>'''GetBuildVersion''' -''Documentation by [[user:zlixar|Zlixar]]''-</center>


Returns the current game version as a string.
Returns the current game version as a string.
version = GetBuildVersion();
----
;''Arguements''
:;None


----
local version = GetBuildVersion()
;''Returns''


;version : The current version string
== Parameters ==
=== Arguments ===
: none


----
=== Returns ===
;''Example''
* version (string) - The current version string


  version = GetBuildVersion();
== Example ==
  local version = GetBuildVersion();
  DEFAULT_CHAT_FRAME:AddMessage("Current game version is " .. version .. "!", .5, 0, 0);
  DEFAULT_CHAT_FRAME:AddMessage("Current game version is " .. version .. "!", .5, 0, 0);


;''Returns''
; Result
 
: Current game version is 1.2.1!
Current game version is 1.2.1!
 
----
;''Details''
:This only returns the version number, not the build number or any other information.


;REMOVED IN 1300
== Details ==
This only returns the version number, not the build number or any other information.


----
== Notes ==
{{WoW API}}
* Removed in patch 1.3.0. Subsumed by the more generic {{api|GetBuildInfo}}

Latest revision as of 04:45, 15 August 2023

WoW API < GetBuildVersion

Returns the current game version as a string.

local version = GetBuildVersion()

Parameters

Arguments

none

Returns

  • version (string) - The current version string

Example

local version = GetBuildVersion();
DEFAULT_CHAT_FRAME:AddMessage("Current game version is " .. version .. "!", .5, 0, 0);
Result
Current game version is 1.2.1!

Details

This only returns the version number, not the build number or any other information.

Notes

  • Removed in patch 1.3.0. Subsumed by the more generic GetBuildInfo