Represents the data of an update message.
| Property | Type | Description |
|---|---|---|
| slugs | UpdateMessageDataSlugs | An object containing the slugs of the updated addon for each supported platform. |
| platforms | ("modrinth" | "curseforge")[] | An array of platforms where the addons is available. |
| names | UpdateMessageDataNames | An object containing the names of the updated addon for each supported platform. |
| changes | UpdateMessageDataChanges | An object containing the changes made to the addon for each platform. |
Represents the addons' slugs in an update message.
| Property | Type | Description |
|---|---|---|
| modrinth? | string | null | The slug of the addon on the Modrinth platform. |
| curseforge? | string | null | The slug of the addon on the Curseforge platform. |
Represents the addons' names in an update message.
| Property | Type | Description |
|---|---|---|
| modrinth? | string | null | The name of the addon on the Modrinth platform. |
| curseforge? | string | null | The name of the addon on the Curseforge platform. |
Represents the addons' changes in an update message.
| Property | Type | Description |
|---|---|---|
| modrinth? | UpdateMessageDataChangesData | The changes made to the addon on the Modrinth platform, or undefined if there are no changes. |
| curseforge? | UpdateMessageDataChangesData | The changes made to the addon on the Curseforge platform, or undefined if there are no changes. |
Represents the addons' changes in an update message.
| Property | Type | Description |
|---|---|---|
| slug? | UpdateMessageDataChangesDataString | The slug of the addon, with the old and new values. |
| authors? | UpdateMessageDataChangesDataAuthors | The authors of the addon, with the old and new values. |
| downloads? | UpdateMessageDataChangesDataNumber | The number of downloads of the addon, with the old and new values. |
| description? | UpdateMessageDataChangesDataString | The description of the addon, with the old and new values. |
| icon? | UpdateMessageDataChangesDataString | The icon URL of the addon, with the old and new values. |
| name? | UpdateMessageDataChangesDataString | The name of the addon, with the old and new values. |
| version? | UpdateMessageDataChangesDataString | The version of the addon, with the old and new values. |
| versions? | UpdateMessageDataChangesDataStringArray | The versions of the addon, with the old and new values. |
| categories? | UpdateMessageDataChangesDataStringArray | The categories of the addon, with the old and new values. |
| follows? | UpdateMessageDataChangesDataNumber | The number of follows of the addon, with the old and new values. |
| created? | UpdateMessageDataChangesDataString | The creation date of the addon, with the old and new values. |
| modified? | UpdateMessageDataChangesDataString | The last modified date of the addon, with the old and new values. |
| color? | UpdateMessageDataChangesDataNumber | The color of the addon, with the old and new values. |
| license? | UpdateMessageDataChangesDataString | The license of the addon, with the old and new values. |
| clientSide? | UpdateMessageDataChangesDataSide | The client-side support type of the addon, with the old and new values. |
| serverSide? | UpdateMessageDataChangesDataSide | The server-side support type of the addon, with the old and new values. |
| modloaders? | UpdateMessageDataChangesDataModloadersArray | The modloaders supported by the addon, with the old and new values. |
Represents the addons' changes in an update message for string values.
| Property | Type | Description |
|---|---|---|
| old | string | null | The previous value of the string property, or null if it did not exist. |
| new | string | null | The new value of the string property, or null if it does not exist. |
Represents the addons' changes in an update message for the authors value.
| Property | Type | Description |
|---|---|---|
| old | AddonAuthor[] | null | The previous list of authors, or null if it did not exist. |
| new | AddonAuthor[] | null | The new list of authors, or null if it does not exist. |
Represents the addons' changes in an update message for number values.
| Property | Type | Description |
|---|---|---|
| old | number | null | The previous value of the number property, or null if it did not exist. |
| new | number | null | The new value of the number property, or null if it does not exist. |
Represents the addons' changes in an update message for string[] values.
| Property | Type | Description |
|---|---|---|
| old | string[] | null | The previous array of strings, or null if it did not exist. |
| new | string[] | null | The new array of strings, or null if it does not exist. |
Represents the addons' changes in an update message for the clientSide and serverSide values.
| Property | Type | Description |
|---|---|---|
| old | "unknown" | "required" | "optional" | "unsupported" | null | The previous clientSide or serverSide support type, or null if it did not exist. |
| new | "unknown" | "required" | "optional" | "unsupported" | null | The new clientSide or serverSide support type, or null if it does not exist. |
Represents the addons' changes in an update message for the modloaders value.
| Property | Type | Description |
|---|---|---|
| old | ("modloader" | "quilt" | "fabric" | "forge" | "neoforge" | "liteloader" | "rift" | "cauldron" | "any")[] | null | The previous array of modloaders, or null if it did not exist. |
| new | ("modloader" | "quilt" | "fabric" | "forge" | "neoforge" | "liteloader" | "rift" | "cauldron" | "any")[] | null | The new array of modloaders, or null if it does not exist. |
Represents the data of a command in a command message.
| Property | Type | Description |
|---|---|---|
| command | "getAddon" | "getAddons" | The command being requested. |
| args | CommandMessageDataArgs | An object containing the arguments for the command, where keys are argument names and values are their respective values. |
Represents the args of a command in a command message.
| Property | Type | Description |
|---|---|---|
| [string] | string | number | The value of the argument, which can be a string or a number. |
Represents the data of an error in a command error message.
| Property | Type | Description |
|---|---|---|
| message | string | An message explaining the error that occurred. |