From 1243e6617592a1818b92536b7ff48596fdfabaa9 Mon Sep 17 00:00:00 2001 From: Federico <38290480+FedeIlLeone@users.noreply.github.com> Date: Sat, 9 Dec 2023 20:31:04 +0100 Subject: [PATCH] feat: update constants and messages --- docs/plugins/modules/common/stores/messages.mdx | 6 ++++-- .../modules/common/utilities/constants.md | 17 +++++++++-------- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/docs/plugins/modules/common/stores/messages.mdx b/docs/plugins/modules/common/stores/messages.mdx index 0573e0f..97ab99e 100644 --- a/docs/plugins/modules/common/stores/messages.mdx +++ b/docs/plugins/modules/common/stores/messages.mdx @@ -8,7 +8,7 @@ import RequiredNotice from "@site/src/components/RequiredNotice.mdx"; -{/* [!]: `ChannelMessages`, `FetchMessagesOptions`, `LocalFetchComplete`, `MessageJumpOptions`, `UserServer` and all functions starting with an underscore aren't documented */} +{/* [!]: `ChannelMessages`, `FetchMessagesOptions`, `LocalFetchComplete`, `MessageJumpOptions`, `Poll`, `UserServer` and all functions starting with an underscore aren't documented */} ### Functions @@ -28,7 +28,7 @@ import RequiredNotice from "@site/src/components/RequiredNotice.mdx"; | `fetchNewLocalMessages` | `channelId`: string
`limit`: number | Promise\ | Fetches local messages (new version) | | `focusMessage` | `options`: [`FocusMessageOptions`](#FocusMessageOptions) | void | Fetches with a focused message | | `getMessage` | `channelId`: string
`messageId`: string | | Gets the message by its id | -| `getMessages` | `channelId`: string | `MessagesData` | Gets all messages in a channel, with a system to manage data | +| `getMessages` | `channelId`: string | `ChannelMessages` | Gets all messages in a channel, with a system to manage data | | `getSendMessageOptionsForReply` | `options`: [`SendMessageForReplyOptions`](#SendMessageForReplyOptions) | [`SendMessageOptionsForReply`](#SendMessageOptionsForReply) \| \{} | Gets options for a reply | | `jumpToMessage` | `options`: `MessageJumpOptions` | Promise\ | Jumps to a message | | `jumpToPresent` | `channelId`: string
`limit`: number | void | Jumps to the most recent message | @@ -41,6 +41,7 @@ import RequiredNotice from "@site/src/components/RequiredNotice.mdx"; | `sendGreetMessage` | `channelId`: string
`stickerId`: string
`options`: [`MessageGreetOptions`](#MessageGreetOptions) | Promise\<[`HTTPResponse`](../utilities/api#HTTPResponse) \| void> | Sends a greet message | | `sendInvite` | `channelId`: string
`inviteCode`: string
`analyticsTriggeredFrom`: string
`suggestedInvite`: [`InviteSuggestion`](#InviteSuggestion) | Promise\<[`HTTPResponse`](../utilities/api#HTTPResponse) \| void> | Sends an invite | | `sendMessage` | `channelId`: string
`message`: [`OutgoingMessage`](#OutgoingMessage)
`promise`: boolean
`options`: [`OutgoingMessageOptions`](#OutgoingMessageOptions) | Promise\<[`HTTPResponse`](../utilities/api#HTTPResponse) \| void> | Sends a message | +| `sendPollMessage` | `channelId`: string
`poll`: `Poll`
`options`: [`SendMessageOptionsForReply`](#SendMessageOptionsForReply) \| \{} | Promise\<[`HTTPResponse`](../utilities/api#HTTPResponse) \| void> | Sends a poll | | `sendStickers` | `channelId`: string
`stickersIds`: string[]
`content`: string
`options`: [`SendMessageOptionsForReply`](#SendMessageOptionsForReply) \| \{}
`tts`: boolean | Promise\<[`HTTPResponse`](../utilities/api#HTTPResponse) \| void> | Sends a sticker | | `startEditMessage` | `channelId`: string
`messageId`: string
`content`: string | void | Starts editing a message | | `suppressEmbeds` | `channelId`: string
`messageId`: string | Promise\ | Deletes an embed from a message | @@ -79,6 +80,7 @@ import RequiredNotice from "@site/src/components/RequiredNotice.mdx"; | `flags` | number | | Message flags | | `messageReference` | [`MessageReference`](#MessageReference) | | Contains information for a reply | | `nonce` | string | | Id of the message | +| `poll` | `Poll` | | The poll sent with the message | | `tts` | boolean | `false` | Whether the message is a TTS message | | `type` | number | `0` | Type of message | diff --git a/docs/plugins/modules/common/utilities/constants.md b/docs/plugins/modules/common/utilities/constants.md index 01f9dd4..cdd49ba 100644 --- a/docs/plugins/modules/common/utilities/constants.md +++ b/docs/plugins/modules/common/utilities/constants.md @@ -45,11 +45,12 @@ ColorGenerator.colors.BACKGROUND_PRIMARY.resolve({ theme: Themes.DARK, saturatio Props: -| Name | Type | Description | -| ------------------ | -------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ | -| `colors` | Record\ | Contains all CSS variables with the corresponding function to generate a color based on a given saturation | -| `radii` | Record\ | Contains border-radius values | -| `shadows` | Record\ | Contains all CSS variables for shadows with the corresponding function to get specific information | -| `spacing` | Record\ | Contains spacing values | -| `themes` | Record\ | Client themes | -| `unsafe_rawColors` | Record\ | Contains all CSS variables for specific colors with the corresponding function to generate a color based on a given saturation | +| Name | Type | Description | +| ------------------ | -------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ | +| `colors` | Record\ | Contains all CSS variables with the corresponding function to generate a color based on a given saturation | +| `modules` | Record\> | Contains modules used in the CSS, such as size variables | +| `radii` | Record\ | Contains border-radius values | +| `shadows` | Record\ | Contains all CSS variables for shadows with the corresponding function to get specific information | +| `spacing` | Record\ | Contains spacing values | +| `themes` | Record\ | Client themes | +| `unsafe_rawColors` | Record\ | Contains all CSS variables for specific colors with the corresponding function to generate a color based on a given saturation |