WoW:API GetBuildVersion: Difference between revisions
Jump to navigation
Jump to search
m ({{wowapi}}) |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{wowapi | {{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. | ||
local version = GetBuildVersion() | |||
== Parameters == | |||
=== Arguments === | |||
: none | |||
=== Returns === | |||
* version (string) - The current version string | |||
== 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); | ||
; | ; 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. | |||
== Notes == | |||
* Removed in patch 1.3.0. Subsumed by the more generic {{api|GetBuildInfo}} |
Revision as of 21:02, 12 February 2021
This is no longer a part of the World of Warcraft API.
|
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