> ## Documentation Index
> Fetch the complete documentation index at: https://docs.qwacks.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Godot SDK

> Add Flock to your Godot game with the official addon — from GDScript or C#.

The Flock Godot SDK connects your game to the Flock backend: player auth, save data, economy,
remote config, leaderboards, notifications, downloadable assets and analytics — set up from one
window in the editor, with typed GDScript and C# classes generated from your own dashboard content.

> [card] [Download the Godot SDK](https://github.com/QwackStack/FlockGodotSDK/releases)
>
> Get the latest addon release from GitHub.

## Requirements

* Godot **4.4.1 to 4.7.2**, the standard build, or the **.NET build** for C#. Every change to the SDK is
  tested on 4.4.1, 4.5.2, 4.6.3 and 4.7.2; Godot 4.3 and older are not supported.
* Nothing else: the addon brings everything it needs, C# included.

## Setup

**1. Install the addon**

Download `flock-godot-sdk-v<version>.zip` from the latest
[release](https://github.com/QwackStack/FlockGodotSDK/releases) (not GitHub's **Source code** archive)
and extract it into your project's folder, so you have `res://addons/flock/`.

Then turn on **Flock** under **Project → Project Settings → Plugins**. That adds a global `Flock`
object to your project (an autoload), so there is no node to add to a scene. A C# project needs no
extra step: your `.csproj` picks up the C# files inside the addon by itself.

**2. Configure**

Open **Project → Tools → Flock → Open Flock setup**. On a new project, press **Create config** on
its **Setup** tab: that makes `res://flock_config.tres`, the file the SDK reads its settings from.
Then fill in the fields from your game's page on the [dashboard](https://flock-saas.qwacks.com):

| Field | Value |
| - | - |
| **API URL** | Leave the default (`https://api-flock.qwacks.com`) unless told otherwise |
| **API key** | Identifies your game — treat it like a password |
| **Game** | Your game's name, exactly as the dashboard shows it |
| **Game version** | A version name that exists on the dashboard (e.g. `1.0.0`) |

Every edit is saved into `flock_config.tres` when you leave the field or press Enter. The SDK finds that file when the game
starts and initializes itself.

**3. Resolve the game version**

Press **Resolve version**. The version name is looked up and its **id is written into
`flock_config.tres`**, so the game never has to ask the server for it, and a game started offline
still gets a working SDK. The SDK will not start without this id.

The same press checks that the **Game** name matches the game your API key belongs to, and writes
nothing when it does not, so a key from the wrong game is caught here.

The window's checklist shows what is still missing. **Test connection** (also under
**Project → Tools → Flock**) checks the API URL and key (and the **Game** name, when you typed one), before you know a version
name.

![Flock setup window, Setup tab, with the credentials filled in and the checklist](https://mintcdn.com/qwacks/OzMDMSJYBiNDPtqZ/images/godot/setup-setup.png?fit=max\&auto=format\&n=OzMDMSJYBiNDPtqZ\&q=85\&s=999337f84d89ef08ee1e4717bc3de175)

The Setup tab: the credentials with the version resolved, the Create config, Resolve version and Test connection buttons, and the checklist.

> [!WARNING]
>
> The API key ships inside your exported game: `flock_config.tres` is part of it and can be read.
> Use a key for the right environment, and rotate it on the dashboard if it leaks.

## Your first call

With `flock_config.tres` in place, the SDK starts by itself when the game starts. Add this script to a
node in your first scene: once the SDK has started, it picks up the player's saved sign-in, and signs
the player in with this device only when there was none.

> [tab] GDScript
>
> ```gdscript theme={null}
> extends Node
>
> func _ready() -> void:
>     Flock.events.when_initialized(_on_flock_ready)
>
> func _on_flock_ready() -> void:
>     # Pick up the sign-in saved on an earlier launch. value is false when there was none.
>     var restored: FlockResult = await Flock.auth.restore_sign_in().completed
>     if not restored.value:
>         var signed_in: FlockResult = await Flock.auth.sign_in_with_device().completed
>         if signed_in.error_code() == "player.invalid_login_credentials":
>             # The first launch on this device: registering creates the player and signs them in.
>             signed_in = await Flock.auth.register_with_device().completed
>         if not signed_in.ok:
>             push_error(signed_in.error.describe())   # What is wrong, then a Fix: line.
>             return
>
>     var game: FlockResult = await Flock.game.get_game().completed
>     if game.ok:
>         print("Signed in as ", Flock.auth.player_id(), ", playing ", game.value.name)
>     else:
>         push_error(game.error.describe())
> ```

> [tab] C#
>
> ```csharp theme={null}
> using Flock;
> using Godot;
>
> public partial class FlockFirstCall : Node
> {
>     public override void _Ready()
>     {
>         FlockClient.Events.WhenInitialized(OnFlockReady);
>     }
>
>     private async void OnFlockReady()
>     {
>         // Pick up the sign-in saved on an earlier launch. Value is false when there was none.
>         var restored = await FlockClient.Auth.RestoreSignInAsync();
>         if (!restored.Value)
>         {
>             var signedIn = await FlockClient.Auth.SignInWithDeviceAsync();
>             if (signedIn.ErrorCode == "player.invalid_login_credentials")
>             {
>                 // The first launch on this device: registering creates the player and signs them in.
>                 signedIn = await FlockClient.Auth.RegisterWithDeviceAsync();
>             }
>             if (!signedIn.Ok)
>             {
>                 GD.PushError(signedIn.Error.ToString());   // What is wrong, then a Fix: line.
>                 return;
>             }
>         }
>
>         var game = await FlockClient.Game.GetGameAsync();
>         if (game.Ok)
>             GD.Print($"Signed in as {FlockClient.Auth.PlayerId}, playing {game.Value.Name}");
>         else
>             GD.PushError(game.Error.ToString());
>     }
> }
> ```

**Success** is `Signed in as` and the player's id in the Output panel.

With no id passed, the device calls use the id Godot gives for this device (`OS.get_unique_id()`).
Godot has none on the Web and on iOS, so there the calls fail with `flock.invalid_argument` and send
nothing: make an id yourself, save it in the game's files, and pass it to `sign_in_with_device(id)` and
`register_with_device(id)`. Two copies of the game on one computer have the same device id, and so are
one player: pass a different id in one of them. A new device means a new player, so offer
[account linking](https://docs.qwacks.com/guides/account-linking.md) (an email or a platform account) to players who want to get
back in on another device.

## Initialization

The SDK can start two ways. **Automatic** is the default and fits most games; **manual** gives you
control over *when* it starts (after a splash screen, or once a player has answered a consent
question).

> [tab] Automatic (default)
>
> Nothing to call: when the game starts, the `Flock` autoload reads `res://flock_config.tres` and
> initializes from it. The SDK sends its signals on the next frame, so a handler connected in
> `_ready()` still gets what the SDK announced while it started. `Flock.events.when_initialized()`
> runs its callable even when the SDK started before it was called, which a plain `connect()` cannot.
>
> ```gdscript theme={null}
> func _ready() -> void:
>     Flock.events.when_initialized(_on_flock_ready)
>     Flock.events.signed_in.connect(_on_signed_in)
>     Flock.events.sign_in_expired.connect(_on_sign_in_expired)
> ```
>
> Restoring a saved sign-in is yours to start: call `Flock.auth.restore_sign_in()`, as
> [Your first call](#your-first-call) does.

> [tab] Manual
>
> Untick **Auto initialize** on the setup window's **Configuration** tab (`auto_initialize` on
> `flock_config.tres`), then start the SDK yourself. `initialize()` returns straight away.
>
> ![Flock setup window, Configuration tab](https://mintcdn.com/qwacks/OzMDMSJYBiNDPtqZ/images/godot/setup-configuration.png?fit=max\&auto=format\&n=OzMDMSJYBiNDPtqZ\&q=85\&s=e7ec5c2a840db6489114b51044f44a80)
>
> The Configuration tab: Connection, HTTP, and Initialization with Persist sign in and Auto initialize.
>
> ```gdscript theme={null}
> var config: FlockConfig = load("res://flock_config.tres")
> var started: FlockResult = Flock.initialize(config)
> if not started.ok:
>     push_error(started.error.describe())
> ```
>
> ```csharp theme={null}
> FlockResult started = FlockClient.Initialize();   // reads res://flock_config.tres
> if (!started.Ok)
>     GD.PushError(started.Error.ToString());
> ```

> [!NOTE]
>
> A config the SDK cannot start from (no API URL or key, no game version id) fails `initialize()` with
> `flock.not_initialized` and a message naming what is missing, and the automatic start raises
> `Flock.events.initialization_failed`. Until the SDK has started, its services do not exist: in GDScript
> `Flock.auth` and the others are `null`, and in C# `FlockClient.Auth` and the others throw an
> `InvalidOperationException` saying to initialize first. Check `Flock.is_initialized()`
> (`FlockClient.IsInitialized` in C#), or wait for `when_initialized()` as above.

## GDScript and C\#

The SDK is **one client with two ways in**. Its core is GDScript, reached through the `Flock`
autoload; C# gets a typed layer, `FlockClient`, generated from that core and shipped inside the addon.
Both use the same client, so a player signed in from GDScript is signed in for C#, and the other way
round.

Every call that reaches the server returns a **`FlockRequest`** in GDScript: await its `completed`
signal (not the method), or connect to it. The answer is a **`FlockResult`** with `ok`, `value` and
`error`. In C# the same call is an `…Async` method that returns a `FlockResult<T>` with `Ok`, `Value`
and `Error`, and takes an optional `CancellationToken`.

```gdscript theme={null}
var result: FlockResult = await Flock.auth.sign_in_with_email(email, password).completed
```

```csharp theme={null}
var result = await FlockClient.Auth.SignInWithEmailAsync(email, password);
```

**Once the SDK has started, calls do not throw.** A failed call is a result whose `ok` is false, in both
languages, so a project that uses both handles a failure the same way on each side. Check `ok`: a
successful call can still answer `null` (a player with no saved data yet, for example).

Names map one to one, so a GDScript name tells you the C# one:

| GDScript | C# | Example |
| - | - | - |
| A call that reaches the server | PascalCase + `Async` | `get_standings` → `GetStandingsAsync` |
| A property | PascalCase | `player_name` → `PlayerName` |
| A check with no arguments | A property | `is_signed_in()` → `IsSignedIn` |
| A constant | Spelled the same | `STATUS_UNUSED` → `STATUS_UNUSED` |
| `int`, `float` | `long`, `double` | `size_bytes` → `long SizeBytes` |

C# code needs `using Flock;`, and `using Flock.Generated;` for the classes made from your dashboard
content ([Work with your game data](#work-with-your-game-data)). A project without the .NET build
ignores the C# files in the addon.

## Authenticate a player

Signing in does not create an account: registering is a separate `register_with_*` call, and a
register that creates the account also signs the player in.

> [tab] Device
>
> Sign in, and register on the first launch, as [Your first call](#your-first-call) shows.
>
> ```gdscript theme={null}
> var signed_in: FlockResult = await Flock.auth.sign_in_with_device().completed
> if signed_in.error_code() == "player.invalid_login_credentials":
>     signed_in = await Flock.auth.register_with_device().completed
> ```

> [tab] Email
>
> `email` and `password` come from your own sign-in and sign-up screens.
>
> ```gdscript theme={null}
> # Sign-up screen: creates the account and signs the player in. The name is optional.
> await Flock.auth.register_with_email(email, password, display_name).completed
>
> # Sign-in screen, on later launches:
> await Flock.auth.sign_in_with_email(email, password).completed
> ```
>
> Player names are unique in a game: `Flock.auth.is_name_available(name)` checks one before you
> register with it. `forgot_password()`, `reset_password()`, `send_email_verification()` and
> `verify_email()` cover account recovery.

> [tab] Google / Apple / Steam
>
> Pass the credential your platform sign-in produced to the matching call: Google an **ID token**
> (`sign_in_with_google`), Apple an **identity token** (`sign_in_with_apple`), Steam a **session ticket**
> (`sign_in_with_steam`). Each has a `register_with_*` call too. The SDK does not get these credentials
> for you, as Godot ships no Google, Apple or Steam sign-in: get them from the platform plugin you
> use.

Every sign-in and register call completes with a `FlockAuthInfo` (the player's id, how they signed in,
and whether the sign-in was restored). The tokens stay inside the SDK.

A player can add more ways to sign in to one account (`link_email`, `link_device`, `link_oauth`), list
them (`list_linked_accounts`) and remove one (`unlink`); see [Account linking](https://docs.qwacks.com/guides/account-linking.md).

**Keeping the sign-in.** The sign-in is saved in an encrypted file under `user://` (not the platform's
secure storage, which Godot has no access to), and `Flock.auth.restore_sign_in()` picks it up on the
next launch. Untick `persist_sign_in` to keep the sign-in in memory only, so players sign in on every
launch. A saved sign-in belongs to the API key it was made with: after the key changes, the player
signs in again.

Expired tokens are renewed for you, and only the server refusing the sign-in signs the player out: a
lost connection or a server that is restarting never does. Connect to the events to drive your UI:

```gdscript theme={null}
# Raised for a sign-in, a register that signed the player in, or a restored sign-in.
Flock.events.signed_in.connect(func(info: FlockAuthInfo) -> void:
    print(info.player_id, " signed in (", info.method, ")"))
# The saved sign-in can no longer be renewed: show your sign-in screen.
Flock.events.sign_in_expired.connect(func() -> void: print("Sign in again"))
```

```csharp theme={null}
FlockClient.Events.SignedIn += info => GD.Print($"{info.PlayerId} signed in ({info.Method})");
FlockClient.Events.SignInExpired += () => GD.Print("Sign in again");
```

## Work with your game data

**Project → Tools → Flock → Generate content code** turns your dashboard's configs, player templates,
shop items, currencies and achievements into typed classes. It reads the game version set in
`flock_config.tres` with your API key (no player sign-in) and writes into the config's **Generated
code path**, `res://flock/generated` by default. In a C# project it writes the same classes in C#
(namespace `Flock.Generated`) beside them; build the project afterwards.

| What it writes | For a dashboard item named | Gives you |
| - | - | - |
| A class per config | `Gameplay` | `GameplayConfig`, a typed member per field, and `fetch()` |
| A class per player template | `PlayerProgress` | `PlayerProgressTemplate`, a typed member per field, `fetch_mine()` and `save()` |
| `FlockShopItemId` | a shop item `Gem Pack` | `FlockShopItemId.GEM_PACK` (`GemPack` in C#), the item's id |
| `FlockCurrencyId` | a currency `Gold` | `FlockCurrencyId.GOLD` (`Gold` in C#) |
| `FlockAchievementId` | an achievement `First Win` | `FlockAchievementId.FIRST_WIN` (`FirstWin` in C#) |

The example below assumes a player template named `PlayerProgress` (with a `level` field), a config
named `Gameplay` (with `spawn_rate`) and a shop item `Gem Pack` on your dashboard. They are examples:
create them first ([Player Data](https://docs.qwacks.com/guides/player-data.md), [Remote Config](https://docs.qwacks.com/guides/remote-config.md),
[Shops and Inventory](https://docs.qwacks.com/guides/shops-and-inventory.md)), or use your own names.

> [tab] GDScript
>
> ```gdscript theme={null}
> # Player data: null until the player has a row for this template.
> var progress: FlockResult = await PlayerProgressTemplate.fetch_mine().completed
> if progress.ok and progress.value != null:
>     var row: PlayerProgressTemplate = progress.value
>     row.level = 5
>     await row.save().completed   # Writes every field back to the row.
>
> # Remote config: change values on the dashboard without a new build.
> var gameplay: FlockResult = await GameplayConfig.fetch().completed
> if gameplay.ok:
>     var spawn_rate: float = gameplay.value.spawn_rate
>
> # Shop: the generated id names the item.
> var bought: FlockResult = await Flock.shop.purchase(FlockShopItemId.GEM_PACK).completed
> ```

> [tab] C#
>
> ```csharp theme={null}
> using Flock;
> using Flock.Generated;
>
> // Player data: null until the player has a row for this template.
> var progress = await PlayerProgressTemplate.FetchMineAsync();
> if (progress.Ok && progress.Value != null)
> {
>     progress.Value.Level = 5;
>     await progress.Value.SaveAsync();   // Writes every field back to the row.
> }
>
> // Remote config: change values on the dashboard without a new build.
> var gameplay = await GameplayConfig.FetchAsync();
> if (gameplay.Ok)
> {
>     double spawnRate = gameplay.Value.SpawnRate;
> }
>
> // Shop: the generated id names the item.
> var bought = await FlockClient.Shop.PurchaseAsync(FlockShopItemId.GemPack);
> ```

`fetch()` gives a config's values with its patch applied. With a player signed in, a gameplay or
feature config comes as the server works it out for that player: its newest patch, then the overrides
of the segments the player is in, then the player's own. `save()` writes **every** field, because the server refuses a write that leaves one out.

> [!WARNING]
>
> **These classes do not exist until you generate them.** Run **Generate content code** again whenever
> the dashboard changes (a new template, a renamed field, a new shop item); the setup window says how
> many files it wrote and removed. It only replaces the files it wrote itself, so a file of your own in
> that folder is kept.

### Checking in CI

The generated files can fall behind the dashboard. This command, for your build pipeline (CI), tells
you when they have, without opening the editor. Import the project first, as a fresh checkout has no
class list yet:

```bash theme={null}
godot --headless --path . --import
godot --headless --path . --script res://addons/flock/editor/content_code.gd -- --check
```

| Exit | Meaning |
| - | - |
| `0` | The generated files match the dashboard |
| `2` | They do not: generate again (never generated, another game version, the content changed, or a generated file was edited or deleted by hand) |
| `1` | It could not tell: no `flock_config.tres`, no game version set, or the server could not be read |

`-- --write` instead of `-- --check` generates the files without the editor. Use the same Godot version
you generate with in the editor. A price or a value changed on the dashboard does not count as a
change: no price or value is written into the code.

## Explore features

> [card] [Players & auth](https://docs.qwacks.com/guides/players-and-auth.md)

> [card] [Account linking](https://docs.qwacks.com/guides/account-linking.md)

> [card] [Player data](https://docs.qwacks.com/guides/player-data.md)

> [card] [Shops & inventory](https://docs.qwacks.com/guides/shops-and-inventory.md)

> [card] [Leaderboards](https://docs.qwacks.com/guides/leaderboards.md)

> [card] [Notifications](https://docs.qwacks.com/guides/notifications.md)

> [card] [Remote config](https://docs.qwacks.com/guides/remote-config.md)

> [card] [Assets](https://docs.qwacks.com/guides/assets.md)

> [card] [Analytics & events](https://docs.qwacks.com/guides/analytics-and-events.md)

> [card] [Achievements](https://docs.qwacks.com/guides/achievements.md)

> [card] [Currencies & wallets](https://docs.qwacks.com/guides/currencies-and-wallets.md)

> [card] [Bans](https://docs.qwacks.com/guides/bans.md)

> [card] [Game patches](https://docs.qwacks.com/guides/game-patches.md)

> [!NOTE]
>
> Not in the Godot SDK yet: multiplayer, real-money purchases and web checkout, typed tracking-plan calls,
> the launch events and standard event parameters, and automatic exception capture. The guides' Godot
> tabs say where each stands.

## Advanced settings

The setup window's **Configuration** tab holds the settings a project must get right (connection,
HTTP and initialization); its **Advanced** tab holds the rest: the offline cache, the asset cache,
analytics, the content code folder, the editor checks and debug logs. Each field is a setting on
`flock_config.tres`, and the inspector edits the same values. The defaults are sensible — change them
only when you need to.

![Flock setup window, Advanced tab](https://mintcdn.com/qwacks/OzMDMSJYBiNDPtqZ/images/godot/setup-advanced.png?fit=max\&auto=format\&n=OzMDMSJYBiNDPtqZ\&q=85\&s=948b32241151d45b40687b54436c7707)

The Advanced tab, top to bottom: Offline Cache, Assets, Analytics, then Content Code, Editor and Diagnostics further down.

**Offline cache enabled** (on by default) saves game content to disk as it is read, so a game that has
been online once still starts offline, and keeps the player data writes queued while offline across a
relaunch. Money never waits in that queue: a fund grant or a purchase is sent once. Each guide's
Godot tab says what its feature keeps offline; [Player data](https://docs.qwacks.com/guides/player-data.md) covers the queue.

Two editor checks are on by default. **Play mode guard enabled** stops a run from the editor that could
not start the SDK (no autoload, no game version, an invalid config) and shows a dialog with a button
that opens the setup window. **Fail export if version unresolved** checks the game version on export;
see [Platform notes](#platform-notes).

**Verbose logging** prints the SDK's diagnostics to the Output panel, never the request and response
bodies, which carry passwords and tokens.

For analytics (sessions, events, consent, quit and crash reports), see
[Analytics & events](https://docs.qwacks.com/guides/analytics-and-events.md).

## Platform notes

Exported games are tested on **Windows, Linux, Android and the Web**, in the standard and .NET builds
(the Web in the standard build only, as Godot has no .NET export for the Web). macOS and iOS are not
tested yet.

* **Android:** nothing to set up. Godot's Android export leaves the internet permission off, so while
  the addon is enabled it turns `permissions/internet` on for every Android export.
* **The Web and iOS:** there is no device id, so pass your own to the device sign-in calls (see
  [Your first call](#your-first-call)).
* **Every platform:** an export whose `flock_config.tres` has no game version, or another version than
  the content code was generated for, ends with an error naming the fix. The export still writes its
  files (Godot gives an addon no way to stop it), so read the export's result, or run the
  [check in CI](#checking-in-ci).

## Error handling

Every failed call answers a `FlockResult` whose `error` is a **`FlockError`**. `describe()` gives what
is wrong (the server's own reason when it gave one), then a `Fix:` line telling you what to do next.
In C#, `Error.ToString()` gives the same with the code in front.

```gdscript theme={null}
var signed_in: FlockResult = await Flock.auth.sign_in_with_device().completed
if not signed_in.ok:
    push_error(signed_in.error.describe())
```

```text describe() on a Web export, where Godot has no device id theme={null}
This platform reports no device id (OS.get_unique_id() is unsupported on web and iOS). Pass a device_id you generate and persist yourself.
Fix: Change the argument the message names, then make the call again.
```

| Member | What it holds |
| - | - |
| `message` | What is wrong: the server's own reason when it gave one. |
| `hint()` | The fix on its own. Never empty: a code with no advice of its own gets the advice for its kind of failure. |
| `describe()` | `message`, then a `Fix:` line with `hint()`. |
| `code` | The error code as a string (`"shop.insufficient_funds"`). |
| `status` | The HTTP status, or `0` when the request never got an answer from the server. |

In C# these are `Message`, `Hint`, `Code` and `Status`.

> [!WARNING]
>
> Branch on the code, never on message text. Codes are a stable contract; wording is not and will
> change between versions.

`result.error_code()` (`ErrorCode` in C#) is the code, or an empty string on success, so you can compare
it directly:

```gdscript theme={null}
var bought: FlockResult = await Flock.shop.purchase(FlockShopItemId.GEM_PACK).completed
if bought.error_code() == "shop.insufficient_funds":
    show_not_enough_coins()   # Your own UI.
```

Server codes are named by feature (`shop.insufficient_funds`, `player.invalid_login_credentials`). The
SDK's own codes start with `flock.`, so a log line says which side found the problem:

| Code | Meaning |
| - | - |
| `flock.network_unreachable` | The request never reached the server. |
| `flock.timeout` | No answer came in time. An unreachable server usually shows up this way too. |
| `flock.invalid_response` | An answer came but could not be read, or lacked what it should hold. |
| `flock.not_initialized` | The SDK could not start, or a generated class was used before it started. |
| `flock.not_signed_in` | The call needs a signed-in player, and there is none. |
| `flock.player_already_signed_in` | A local player (`Flock.add_local_player()`, for several players on one machine) tried to sign in as a player already signed in here. |
| `flock.invalid_argument` | An argument was refused before anything was sent. |
| `flock.cancelled` | The call was cancelled. |
| `flock.asset_url_expired`, `flock.asset_decode_failed`, `flock.asset_not_saved` | An asset download's link expired, its file was not the kind asked for, or it could not be saved on the device. |
| `flock.unauthorized`, `flock.payment_required`, `flock.forbidden`, `flock.not_found`, `flock.conflict`, `flock.validation_failed`, `flock.rate_limited`, `flock.server_error` | An answer with that HTTP status and no Flock code of its own. Every failure Flock's game API sends carries a code, so these came from something in between (a proxy, a network login page, an API URL that points at another server), and the fix says so. |
| `flock.unknown` | Anything else. |

> [!NOTE]
>
> The fix is written for **you**, not your players — it names SDK calls, settings and dashboard steps.
> Show it in your own logs or debug overlay, and write separate copy for your players.
> In GDScript, `FlockErrorHints.for_code(code)` gives a code's own advice, or an empty string when it
> has none.

> [!TIP]
>
> The full API reference and a guide per feature live in the
> [SDK README](https://github.com/QwackStack/FlockGodotSDK#readme).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.