@quenty/chatproviderservice 9.18.1-canary.520.d3b0387.0 → 9.18.1-canary.520.f23602e.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -3,13 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
## [9.18.1-canary.520.
|
|
6
|
+
## [9.18.1-canary.520.f23602e.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/chatproviderservice@9.18.0...@quenty/chatproviderservice@9.18.1-canary.520.f23602e.0) (2024-11-14)
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
### Bug Fixes
|
|
10
10
|
|
|
11
11
|
* Create properties from metadata instead of caching ([f23602e](https://github.com/Quenty/NevermoreEngine/commit/f23602e73a41ce4135ca18bc4ab7f01e935b2cab))
|
|
12
|
-
* pcall metadata in case it isn't a hex color ([0c6df93](https://github.com/Quenty/NevermoreEngine/commit/0c6df93f4e611dcdcf8c1fde454ee4bf7fa43ef0))
|
|
13
12
|
|
|
14
13
|
|
|
15
14
|
### Features
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/chatproviderservice",
|
|
3
|
-
"version": "9.18.1-canary.520.
|
|
3
|
+
"version": "9.18.1-canary.520.f23602e.0",
|
|
4
4
|
"description": "Provide wrapper around chat system to allow tags to be set",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"publishConfig": {
|
|
56
56
|
"access": "public"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "f23602e73a41ce4135ca18bc4ab7f01e935b2cab"
|
|
59
59
|
}
|
|
@@ -38,10 +38,7 @@ function ChatProviderServiceClient:Start()
|
|
|
38
38
|
|
|
39
39
|
local metadata = textChatMessage.Metadata
|
|
40
40
|
if metadata then
|
|
41
|
-
local isValidColor =
|
|
42
|
-
return Color3.fromHex(metadata)
|
|
43
|
-
end)
|
|
44
|
-
|
|
41
|
+
local isValidColor = Color3.fromHex(metadata)
|
|
45
42
|
if isValidColor then
|
|
46
43
|
local overrideProperties = Instance.new("TextChatMessageProperties")
|
|
47
44
|
overrideProperties.Text = `<font color="#{metadata}">{textChatMessage.Text}</font>`
|
|
@@ -67,12 +64,6 @@ function ChatProviderServiceClient:Start()
|
|
|
67
64
|
end
|
|
68
65
|
end
|
|
69
66
|
|
|
70
|
-
--[=[
|
|
71
|
-
Sends a system message to the provided TextChannel.
|
|
72
|
-
@param channel TextChannel
|
|
73
|
-
@param message string
|
|
74
|
-
@param color Color3?
|
|
75
|
-
]=]
|
|
76
67
|
function ChatProviderServiceClient:SendSystemMessage(channel: TextChannel, message: string, color: Color3?)
|
|
77
68
|
assert(typeof(channel) == "Instance" and channel.ClassName == "TextChannel", "[ChatProviderServiceClient.SendSystemMessage] - Bad channel")
|
|
78
69
|
assert(typeof(message) == "string", "[ChatProviderServiceClient.SendSystemMessage] - Bad message")
|