function methods.InternalDestroy(f)for C,c in pairs(f.Channels)do c:InternalRemoveSpeaker(f)end f.eDestroyed:Fire()f.eDestroyed:Destroy()f.eSaidMessage:Destroy()f.eReceivedMessage:Destroy()f.eReceivedUnfilteredMessage:Destroy()f.eMessageDoneFiltering:Destroy()f.eReceivedSystemMessage:Destroy()f.eChannelJoined:Destroy()f.eChannelLeft:Destroy()f.eMuted:Destroy()f.eUnmuted:Destroy()f.eExtraDataUpdated:Destroy()f.eMainChannelSet:Destroy()f.eChannelNameColorUpdated:Destroy()end function methods.InternalAssignPlayerObject(C,f)C.PlayerObj=f end function methods.InternalSendMessage(c,f,C)local O,Z=pcall(function()c.eReceivedUnfilteredMessage:Fire(f,C)end)if not O and Z then print("\069\114\114\111\114 \115\101\110\100\105\110\103 \105\110\116\101\114\110\097\108 \109\101\115\115\097\103\101\058 "..Z)end end function methods.InternalSendFilteredMessage(c,f,C)local O,Z=pcall(function()c.eReceivedMessage:Fire(f,C)c.eMessageDoneFiltering:Fire(f,C)end)if not O and Z then print("\069\114\114\111\114 \115\101\110\100\105\110\103 \105\110\116\101\114\110\097\108 \102\105\108\116\101\114\101\100 \109\101\115\115\097\103\101\058 "..Z)end end

function methods:InternalDestroy()
	for i, channel in pairs(self.Channels) do
		channel:InternalRemoveSpeaker(self)
	end

	self.eDestroyed:Fire()

	self.eDestroyed:Destroy()
	self.eSaidMessage:Destroy()
	self.eReceivedMessage:Destroy()
	self.eReceivedUnfilteredMessage:Destroy()
	self.eMessageDoneFiltering:Destroy()
	self.eReceivedSystemMessage:Destroy()
	self.eChannelJoined:Destroy()
	self.eChannelLeft:Destroy()
	self.eMuted:Destroy()
	self.eUnmuted:Destroy()
	self.eExtraDataUpdated:Destroy()
	self.eMainChannelSet:Destroy()
	self.eChannelNameColorUpdated:Destroy()
end

function methods:InternalAssignPlayerObject(playerObj)
	self.PlayerObj = playerObj
end

function methods:InternalSendMessage(messageObj, channelName)
	local success, err = pcall(function()
		self.eReceivedUnfilteredMessage:Fire(messageObj, channelName)
	end)
	if not success and err then
		print("Error sending internal message: " ..err)
	end
end

function methods:InternalSendFilteredMessage(messageObj, channelName)
	local success, err = pcall(function()
		self.eReceivedMessage:Fire(messageObj, channelName)
		self.eMessageDoneFiltering:Fire(messageObj, channelName)
	end)
	if not success and err then
		print("Error sending internal filtered message: " ..err)
	end
end
