# TextChannel(ロブロックス クラス) > Represents a text chat channel. - URL:https://roblox.minecraft-okinawa.com/reference/classes/TextChannel/ - 公式:https://create.roblox.com/docs/reference/engine/classes/TextChannel - 受け継いでいるクラス:Instance ## プロパティ - `TextChannel.DirectChatRequester: Player`:The TextChannel will only deliver messages to users that can send direct messages to the DirectChatRequester. ## メソッド - `TextChannel:AddUserAsync(userId: User): Tuple`:Adds a TextSource to the TextChannel given userId of a Player. - `TextChannel:DisplaySystemMessage(systemMessage: string, metadata: string): TextChatMessage`:Displays a system message to the user. - `TextChannel:SendAsync(message: string, metadata: string): TextChatMessage`:Sends a TextChatMessage to the server. - `TextChannel:SetDirectChatRequester(requester: Player): ()`:Sets the Class.TextChannel.DirectChatRequester|DirectChatRequester for the TextChannel. The TextChannel will only deliver messages to users that can send direct messages to the DirectChatRequester. ## イベント - `TextChannel.MessageReceived(incomingMessage: TextChatMessage)`:Fires when Class.TextChannel:DisplaySystemMessage() is invoked on the client, or when the client receives a valid Class.TextChannel:SendAsync() response from the server. ## コールバック - `TextChannel:OnIncomingMessage(message: TextChatMessage): Tuple`:Called when TextChannel is receiving an incoming message. - `TextChannel:ShouldDeliverCallback(message: TextChatMessage, textSource: TextSource): Tuple`:Called for each client when TextChannel is receiving an incoming message to determine whether or not it should be delivered to that client. 英語の説明とメンバー一覧:Roblox Creator Documentation(CC BY 4.0)。日本語の解説はこのサイト独自のものです。 執筆:鈴木孝昌(現役プロジェクトマネージャー/プログラミング講師)/運営:沖縄マイクラ部 プログラミングスクール「クロスウェーブ」(https://minecraft-okinawa.com/)