ChatToChannel
public bool ChatToChannel(ChannelType type, string message);
파라미터
Value | Type | Description |
---|---|---|
type | ChannelType (enum) | 메세지를 전송할 채널의 종류. ChannelType.Public(일반) 혹은 ChannelType.Guild(길드) |
message | String | 전송할 채팅 메세지 |
설명
현재 접속한 채널에 메세지를 보냅니다. 채팅 메세지의 최대 길이는 512byte입니다.
Example
Backend.Chat.ChatToChannel(ChannelType.Guild, "안녕하세요. 반갑습니다.");
송신을 시도한 채팅 메시지의 길이가 512byte를 초과한 경우
Maximum chat size is 512 byte
채팅 채널에 접속하지 않았는데 메시지 송신을 시도한 경우
Not connected. (0)
채팅 채널 접속이 완료되지 않았는데 (OnJoinChannel 이벤트가 호출되지 않았는데) 메시지 송신을 시도한 경우
Not connected. (1)