Forgive me if this is the wrong topic for this, i just feel like it belongs here…
Is :RemoveLastMessageFromChannel() supposed to do this?

I already did search on developer.roblox.com
ModuleScript:
local Util = require(script.Parent:WaitForChild("Util"))
function ProcessMessage(message, ChatWindow, ChatSettings)
if string.sub(message,1,5):lower() == "test" then
local currentChannel = ChatWindow:GetCurrentChannel()
if (currentChannel) then
currentChannel:RemoveLastMessageFromChannel()
end
return true
end
return false
end
return {
[Util.KEY_COMMAND_PROCESSOR_TYPE] = Util.COMPLETED_MESSAGE_PROCESSOR,
[Util.KEY_PROCESSOR_FUNCTION] = ProcessMessage
}