WoW:API GetBuildVersion: Difference between revisions

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


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


:;None
local version = GetBuildVersion()


----
== Parameters ==
;''Returns''
=== Arguments ===
: none


;version : The current version string
=== Returns ===
* version (string) - The current version string


----
== Example ==
;''Example''
  local version = GetBuildVersion();
 
  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 ==
;''Details''
This only returns the version number, not the build number or any other information.
:This only returns the version number, not the build number or any other information.


{{Template:WoW API}}
== Notes ==
[[Category:API Functions|GetBuildVersion]]
* Removed in patch 1.3.0. Subsumed by the more generic {{api|GetBuildInfo}}
[[Category:API Core Functions|GetBuildVersion]]

Latest revision as of 04:45, 15 August 2023

WoW API < GetBuildVersion

Returns the current game version as a string.

local version = GetBuildVersion()

Parameters[edit]

Arguments[edit]

none

Returns[edit]

  • version (string) - The current version string

Example[edit]

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

Details[edit]

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

Notes[edit]

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