DEV: correct argument names for addGlobalNotice (#14582)

DEV: correct argument names for addGlobalNotice (#14582)

diff --git a/app/assets/javascripts/discourse/app/lib/plugin-api.js b/app/assets/javascripts/discourse/app/lib/plugin-api.js
index ed86e5d..fcc0a94 100644
--- a/app/assets/javascripts/discourse/app/lib/plugin-api.js
+++ b/app/assets/javascripts/discourse/app/lib/plugin-api.js
@@ -1243,8 +1243,8 @@ class PluginApi {
    * api.addGlobalNotice("text", "foo", { html: "<p>bar</p>" })
    *
    **/
-  addGlobalNotice(id, text, options) {
-    addGlobalNotice(id, text, options);
+  addGlobalNotice(text, id, options) {
+    addGlobalNotice(text, id, options);
   }
 
   /**

GitHub sha: be7dcf694e8ff6ae2bbe11446309d2aeada8e0a1

This commit appears in #14582 which was approved by davidtaylorhq. It was merged by jjaffeux.