SteamKit2.SteamFriends.KickChatMember C# (CSharp) Method

KickChatMember() public method

Kicks the specified chat member from the given chat room.
public KickChatMember ( SteamID steamIdChat, SteamID steamIdMember ) : void
steamIdChat SteamID The SteamID of chat room to kick the member from.
steamIdMember SteamID The SteamID of the member to kick from the chat.
return void
        public void KickChatMember( SteamID steamIdChat, SteamID steamIdMember )
        {
            SteamID chatId = steamIdChat.ConvertToUInt64(); // copy the steamid so we don't modify it

            var kickMember = new ClientMsg<MsgClientChatAction>();

            if ( chatId.IsClanAccount )
            {
                // this steamid is incorrect, so we'll fix it up
                chatId.AccountInstance = ( uint )SteamID.ChatInstanceFlags.Clan;
                chatId.AccountType = EAccountType.Chat;
            }

            kickMember.Body.SteamIdChat = chatId;
            kickMember.Body.SteamIdUserToActOn = steamIdMember;

            kickMember.Body.ChatAction = EChatAction.Kick;

            this.Client.Send( kickMember );
        }
        /// <summary>