UpdateMessageData

Represents the data of an update message.

Fields

PropertyTypeDescription
slugsUpdateMessageDataSlugsAn object containing the slugs of the updated addon for each supported platform.
platforms("modrinth" | "curseforge")[]An array of platforms where the addons is available.
namesUpdateMessageDataNamesAn object containing the names of the updated addon for each supported platform.
changesUpdateMessageDataChangesAn object containing the changes made to the addon for each platform.
UpdateMessageDataSlugs

Represents the addons' slugs in an update message.

Fields

PropertyTypeDescription
modrinth?string | nullThe slug of the addon on the Modrinth platform.
curseforge?string | nullThe slug of the addon on the Curseforge platform.
UpdateMessageDataNames

Represents the addons' names in an update message.

Fields

PropertyTypeDescription
modrinth?string | nullThe name of the addon on the Modrinth platform.
curseforge?string | nullThe name of the addon on the Curseforge platform.
UpdateMessageDataChanges

Represents the addons' changes in an update message.

Fields

PropertyTypeDescription
modrinth?UpdateMessageDataChangesDataThe changes made to the addon on the Modrinth platform, or undefined if there are no changes.
curseforge?UpdateMessageDataChangesDataThe changes made to the addon on the Curseforge platform, or undefined if there are no changes.
UpdateMessageDataChangesData

Represents the addons' changes in an update message.

Fields

PropertyTypeDescription
slug?UpdateMessageDataChangesDataStringThe slug of the addon, with the old and new values.
authors?UpdateMessageDataChangesDataAuthorsThe authors of the addon, with the old and new values.
downloads?UpdateMessageDataChangesDataNumberThe number of downloads of the addon, with the old and new values.
description?UpdateMessageDataChangesDataStringThe description of the addon, with the old and new values.
icon?UpdateMessageDataChangesDataStringThe icon URL of the addon, with the old and new values.
name?UpdateMessageDataChangesDataStringThe name of the addon, with the old and new values.
version?UpdateMessageDataChangesDataStringThe version of the addon, with the old and new values.
versions?UpdateMessageDataChangesDataStringArrayThe versions of the addon, with the old and new values.
categories?UpdateMessageDataChangesDataStringArrayThe categories of the addon, with the old and new values.
follows?UpdateMessageDataChangesDataNumberThe number of follows of the addon, with the old and new values.
created?UpdateMessageDataChangesDataStringThe creation date of the addon, with the old and new values.
modified?UpdateMessageDataChangesDataStringThe last modified date of the addon, with the old and new values.
color?UpdateMessageDataChangesDataNumberThe color of the addon, with the old and new values.
license?UpdateMessageDataChangesDataStringThe license of the addon, with the old and new values.
clientSide?UpdateMessageDataChangesDataSideThe client-side support type of the addon, with the old and new values.
serverSide?UpdateMessageDataChangesDataSideThe server-side support type of the addon, with the old and new values.
modloaders?UpdateMessageDataChangesDataModloadersArrayThe modloaders supported by the addon, with the old and new values.
UpdateMessageDataChangesDataString

Represents the addons' changes in an update message for string values.

Fields

PropertyTypeDescription
oldstring | nullThe previous value of the string property, or null if it did not exist.
newstring | nullThe new value of the string property, or null if it does not exist.
UpdateMessageDataChangesDataAuthors

Represents the addons' changes in an update message for the authors value.

Fields

PropertyTypeDescription
oldAddonAuthor[] | nullThe previous list of authors, or null if it did not exist.
newAddonAuthor[] | nullThe new list of authors, or null if it does not exist.
UpdateMessageDataChangesDataNumber

Represents the addons' changes in an update message for number values.

Fields

PropertyTypeDescription
oldnumber | nullThe previous value of the number property, or null if it did not exist.
newnumber | nullThe new value of the number property, or null if it does not exist.
UpdateMessageDataChangesDataStringArray

Represents the addons' changes in an update message for string[] values.

Fields

PropertyTypeDescription
oldstring[] | nullThe previous array of strings, or null if it did not exist.
newstring[] | nullThe new array of strings, or null if it does not exist.
UpdateMessageDataChangesDataSide

Represents the addons' changes in an update message for the clientSide and serverSide values.

Fields

PropertyTypeDescription
old"unknown" | "required" | "optional" | "unsupported" | nullThe previous clientSide or serverSide support type, or null if it did not exist.
new"unknown" | "required" | "optional" | "unsupported" | nullThe new clientSide or serverSide support type, or null if it does not exist.
UpdateMessageDataChangesDataModloadersArray

Represents the addons' changes in an update message for the modloaders value.

Fields

PropertyTypeDescription
old("modloader" | "quilt" | "fabric" | "forge" | "neoforge" | "liteloader" | "rift" | "cauldron" | "any")[] | nullThe previous array of modloaders, or null if it did not exist.
new("modloader" | "quilt" | "fabric" | "forge" | "neoforge" | "liteloader" | "rift" | "cauldron" | "any")[] | nullThe new array of modloaders, or null if it does not exist.
CommandMessageData

Represents the data of a command in a command message.

Fields

PropertyTypeDescription
command"getAddon" | "getAddons"The command being requested.
argsCommandMessageDataArgsAn object containing the arguments for the command, where keys are argument names and values are their respective values.
CommandMessageDataArgs

Represents the args of a command in a command message.

Fields

PropertyTypeDescription
[string]string | numberThe value of the argument, which can be a string or a number.
CommandErrorMessageData

Represents the data of an error in a command error message.

Fields

PropertyTypeDescription
messagestringAn message explaining the error that occurred.